一、參考文章 Example installation on CentOS 8
有時間再翻譯一下,記錄下自己安裝的過程。
若安裝CentOS及Mysql8參考上一篇文章:CentOS8安裝MySQL8.0.23
二、SQLSTATE[HY000] [2002] No such file or directory
找到php.ini的安裝位置:
find / -name php.ini
打開php.ini找到pdo_mysql.default_socket,修改其值為.sock文件的路徑
保存退出,然后重啟Apache(執行systemctl restart httpd.service),或者nginx下重啟php-fpm即可。
如果還不行,再重啟下服務器。
安裝完成后出現了一個提示,暫時無影響。
Gateway Timeout
The gateway did not receive a timely response from the upstream server or application.
正常訪問如下:
參考資料: