php的配置寫在 php.ini,可在phpinfo()中查看php
//查找已安裝 yum list installed | grep php // php卸載 yum -y remove php56* yum remove httpd* php*
可用的資源: centos 安裝php56+nginxhtml
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便可mysql
sudo service php-fpm reload sudo service php-fpm restart
systemctl start mysqld.service
初始密碼獲取:sql
cat /var/log/mysqld.log | grep -i 'temporary password'centos