MAC OS Nginx php-fpm相關

Nginx 命令

sudo nginx // 啓動Nginx php

#從新加載|重啓|中止|退出 html

sudo nginx -s reload|reopen|stop|quitmysql

 

#上傳文件限制更改:nginx

進入nginx.confsql

client_max_body_size 50M;
client_body_temp_path /tmp;
apache

再修改php.inisegmentfault

post_max_size = 50mruby

upload_max_filesize = 50msocket

max_execution_time = 600php-fpm

max_input_time = 600

php.ini和nginx.conf的文件大小限制最好同樣

php-fpm命令

sudo service php56-fpm stop

sudo service php56-fpm start

sudo service php56-fpm restart

 

或者進入/usr/local/opt/php56/sbin

執行sudo php56-fpm restart

 

php.ini/php-fpm.conf路徑 : /usr/local/etc/php/5.6

 

 

Apache中止開始啓動命令

 

打開終端

重啓apache:sudo /usr/sbin/apachectl restart

關閉apache:sudo /usr/sbin/apachectl stop

開啓apache:sudo /usr/sbin/apachectl start

 

Apache log path:

/private/var/log/apache2/

-----------------------------

php ini 5.6path: /usr/local/etc/php/5.6/php.ini

apache config path: /etc/apache2/httpd.conf

 --------------------------------------------------------------

brew 安裝好mysql以後提示ERROR 2002 (HY000): Can't connect to local MySQL server through socket '

以後命令行執行一下brew info mysql來進行自動配置, 而後就能夠啓動了

mysql.server start

 --------------------------------------------------------------

 

 

好文章:

解決phpinfo 和 php -v版本不對問題

http://segmentfault.com/q/1010000000308315

  

http://ju.outofmemory.cn/entry/121119

http://blog.liuweifeng.net/install-nginx-php-fpm-mysql-and-phpmyadmin-on-os-x-mavericks-using-homebrew/

http://www.cnblogs.com/caowei/p/mac-path_2013-08-26.html

http://www.sundabao.com/mac-os-x-mavericks-or-yosemite-%E5%AE%89%E8%A3%85nginx%E3%80%81php%E3%80%81mysql%E3%80%81phpmyadmin/

 http://jvdc.me/fix-502-bad-gateway-error-on-nginx-server-after-upgrading-php/

http://blog.frd.mn/install-nginx-php-fpm-mysql-and-phpmyadmin-on-os-x-mavericks-using-homebrew/

相關文章
相關標籤/搜索