一,安装Nginx
apt-get install nginx
1,配置nginx
nginx所有的配置在 /etc/nginx/nginx.conf中
nginx.conf配置里面包括了
include /etc/nginx/conf.d/*.conf;
sudo apt-get install php5-fpm
sudo apt-get install php5-gd # Popular image manipulation library; used extensively by Wordpress and it's plugins.sudo apt-get install php5-cli # Makes the php5 command available to the terminal for php5 scriptingsudo apt-get install php5-curl # Allows curl (file downloading tool) to be called from PHP5sudo apt-get install php5-mcrypt # Provides encryption algorithms to PHP scriptssudo apt-get install php5-mysql # Allows PHP5 scripts to talk to a MySQL Databasesudo apt-get install php5-readline # Allows PHP5 scripts to use the readline function
查看php5运行进程
ps -waux | grep php5
打开关闭php5进程
sudo service php5-fpm stopsudo service php5-fpm startsudo service php5-fpm restartsudo service php5-fpm status
配置php5监听端口 /etc/php5/fpm/pool.d/www.conf
把
listen = /var/run/php5-fpm.sock 改为
listen = 127.0.0.1:9000
联系客服