mac下 mysql / nginx 問題總彙

"ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"

解決1mysql

mysqld stop nginx

mysql.server startsql

 

解決2ruby

https://ruby-china.org/topics/794socket

 

 

nginx 啓動不了 nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)

sudo nginx -c /usr/local/conf/nginx.confpost

 

sudo nginx -t 能夠查看載入了哪一個配置文件,上面這個錯誤是由於真正的配置在/usr/local/etc/nginx/conf.d下,裏面的配置文件寫錯了,昨天花了挺多時間找錯誤,今天總算水落石出。spa

相關文章
相關標籤/搜索