Nginx錯誤解決小結

2021-07-05 22:22:20 字數 609 閱讀 3375

問題1:

[root@tony_ts_tian sbin]# ./nginx

./nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: no such file or directory

解決1:

在lib下:

[root@tony_ts_tian lib]# ln -s /usr/local/lib/libpcre.so.1 /lib64/

問題2:

nginx伺服器導致css無法解析不起效果,用ie居然可以,360和火狐都不行:

解決2:

配置nginx的時候將/etc/nginx/nginx.conf的一行include /etc/nginx/mime.types;誤刪了;

路徑檢查好.

另外,如果是springmvc專案,servlet的攔截的url路徑也會影響,例如:/ 和*.html

Nginx錯誤解決小結

問題1 root tony ts tian sbin nginx nginx error while loading shared libraries libpcre.so.1 cannot open shared object file no such file or directory 解決1 ...

nginx的幾個錯誤解決方法

今年春節,注定是這麼多年最讓我難忘的乙個!因為我半夜還在維護伺服器!公司有一定的基礎使用者量,春節期間使用者量暴增,導致伺服器鴨梨山大報警了!沒辦法,這些都是應該經歷的。下面就總結一下nginx的一些問題,希望以後不要再犯同樣的錯誤。官方解釋 ngx null string,499,client h...

nginx 405 錯誤解決 (js高亮)

nginx遇到post請求靜態檔案會得到405錯誤 用upstream 把post轉成get方式 比如高亮 code.html,注意把js高亮的js放到結尾了,先載入html public class demo 新增 nginx.conf 新增upstream static backend serv...