标签:art 使用 yum pac remove nginx res pos arch
php的配置写在 php.ini,可在phpinfo()中查看
//查找已安装
yum list installed | grep php
// php卸载
yum -y remove php56*
yum remove httpd* php*
可用的资源:
centos 安装php56+nginx
sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
sudo yum install -y nginx
sudo systemctl start nginx.service
// 开机启动
sudo systemctl enable nginx.service
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAM $document_root$fastcgi_script_name;
include fastcgi_params;
}
sudo service php-fpm reload
sudo service php-fpm restart
重启php-fpm即可
sudo service php-fpm reload
sudo service php-fpm restart
systemctl start mysqld.service
初始密码获取:
cat /var/log/mysqld.log | grep -i ‘temporary password‘
centos7 nginx+php5.6+mysql安装与配置
标签:art 使用 yum pac remove nginx res pos arch
原文地址:https://www.cnblogs.com/magma/p/10851129.html