摘要: 当配置nginx的nginx.conf 时,可参照如下配置: server { listen 80; server_name www.advancephp2017.com; access_log logs/advance.access.log; root /home/andrewghost/www/ 阅读全文
posted @ 2017-03-05 21:14 南岛的森林 阅读(668) 评论(0) 推荐(0) 编辑
摘要: 重启虚拟机后,再次重启nginx会报错“/var/run/nginx/nginx.pid" no such file or directory。google无门, 很多人的方法是: /usr/local/nginx/sbin/nginx -c --conf-path=/usr/local/nginx 阅读全文
posted @ 2017-03-05 21:06 南岛的森林 阅读(13078) 评论(1) 推荐(0) 编辑
摘要: configure参数nginx和php是编译安装的关键。记录下来备用: php: ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=mysqlnd--with-my 阅读全文
posted @ 2017-03-05 20:49 南岛的森林 阅读(265) 评论(0) 推荐(0) 编辑