- php 错误
[crit] 10271#10271: *156 connect() to unix:/dev/shm/php-cgi.sock failed (2: No such file or directory) while connecting to upstream
解决方法:
--- 原本mysqli.default_socket = 后面是空的,找到mysql.sock文件路径 ,添加上去就可以了。
# vim php.ini
mysqli.default_socket = /var/lib/mysql/mysql.sock