deploy apache php mysql
[root@localhost ~]# yum -y install httpd
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 17034.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 178 M RSS (521 MB VSZ)
Started: Tue Mar 31 10:13:25 2020 - 55:00 ago
State : Sleeping, pid: 17034
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 178 M RSS (521 MB VSZ)
Started: Tue Mar 31 10:13:25 2020 - 55:02 ago
State : Sleeping, pid: 17034
kill -s 9 17034
ps aux | grep yum
rm -f /var/run/yum.pid
%%%%%%%%%%%%%% Https Apache Parts: %%%%%%%%%%
PHP Apahce Mysql centos 7:
https://blog.csdn.net/baibaigao/article/details/89406201
yum -y install httpd
systemctl start httpd
systemctl stop firewalld
touch /var/www/html/index.html
vim /var/www/html/index.html
systemctl restart httpd
%%%%%%%%%%%%%% PHP Parts: %%%%%%%%%%
yum -y install php
mv index.html index.php
<?
php phpinfo();
?>
systemctl restart httpd
%%%%%%%%%%%%% Mysql Parts: %%%%%%%%%
yum list installed | grep mysql
yum -y remove mysql-libs.x86_64
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum -y localinstall mysql-community-release-el7-5.noarch.rpm
yum install mysql-community-server
systemctl start mysql
systemctl status mysql
hostnamectl set-hostname webtest86
systemctl enable httpd
systemctl enable mysqld
systemctl disable firewalld
#############针对织梦系统:#############
yum -y install php-gd
yum install -y php-mysql
err: ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
https://www.cnblogs.com/kerrycode/p/3861719.html
mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
mysql -u root mysql
select Host, User, Password,password_expired from user where user=‘root‘ and host=‘root‘ or host=‘localhost‘;
update user set password=PASSWORD(‘pass@w4erd‘) where user=‘root‘ and host=‘root‘ or host=‘localhost‘;
织梦引导中文件夹权限不能为写的方法:
setenforce 0