当前位置:Gxlcms > 数据库问题 > centos7 apache php mysql

centos7 apache php mysql

时间:2021-07-01 10:21:17 帮助过:19人阅读

env: centos 7
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

  1. <code>kill -s 9 17034
  2. ps aux | grep yum
  3. rm -f /var/run/yum.pid</code>

%%%%%%%%%%%%%% Https Apache Parts: %%%%%%%%%%

PHP Apahce Mysql centos 7:
https://blog.csdn.net/baibaigao/article/details/89406201

  1. <code> yum -y install httpd
  2. systemctl start httpd
  3. systemctl stop firewalld
  4. touch /var/www/html/index.html
  5. vim /var/www/html/index.html
  6. systemctl restart httpd</code>

%%%%%%%%%%%%%% PHP Parts: %%%%%%%%%%

  1. <code>yum -y install php
  2. mv index.html index.php
  3. <?
  4. php phpinfo();
  5. ?>
  6. systemctl restart httpd
  7. </code>

%%%%%%%%%%%%% Mysql Parts: %%%%%%%%%

  1. <code>yum list installed | grep mysql
  2. yum -y remove mysql-libs.x86_64
  3. wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
  4. yum -y localinstall mysql-community-release-el7-5.noarch.rpm
  5. yum install mysql-community-server
  6. systemctl start mysql
  7. systemctl status mysql</code>
  1. <code>hostnamectl set-hostname webtest86
  2. systemctl enable httpd
  3. systemctl enable mysqld
  4. systemctl disable firewalld</code>

#############针对织梦系统:#############

  1. <code>yum -y install php-gd
  2. yum install -y php-mysql</code>

err: ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
https://www.cnblogs.com/kerrycode/p/3861719.html

  1. <code>mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
  2. mysql -u root mysql
  3. select Host, User, Password,password_expired from user where user=‘root‘ and host=‘root‘ or host=‘localhost‘;
  4. update user set password=PASSWORD(‘pass@w4erd‘) where user=‘root‘ and host=‘root‘ or host=‘localhost‘;
  5. </code>

织梦引导中文件夹权限不能为写的方法:
setenforce 0

centos7 apache php mysql

标签:rest   name   pac   ble   方法   for   safe   sys   ast   

人气教程排行