解決mac公升級後nginx啟動問題

2021-06-23 02:55:20 字數 718 閱讀 8290

在mac上安裝了nginx,用起來好好的,後來公升級了下mac,發現很多命令都不能用了,包括之前安裝的node,grunt,nginx等,重新安裝這些之後都好了

但是啟動nginx,出現以下情況:

chunbomac:~ lichunbo$ sudo nginx

password:

dyld: library not loaded: /usr/local/lib/libpcre.1.dylib

referenced from: /usr/local/bin/nginx

reason: image not found

看了網上的方法,有用brew doctor說按照上面給的提示做了就好,但是我按著做了還是不行,在/usr/local/lib/資料夾下找不到libpcre.1.dylib檔案,網上也沒有太多提及,折騰好久之後,解除安裝了pcre,然後重灌nginx,奇蹟發生了,終於可以了

chunbomac:~ lichunbo$ sudo brew uninstall pcre

uninstalling /usr/local/cellar/pcre/8.35...

chunbomac:~ lichunbo$ sudo brew uninstall nginx

uninstalling /usr/local/cellar/nginx/1.6.0_1...

chunbomac:~ lichunbo$ sudo brew install nginx

nginx啟動 重啟 關閉 公升級

cd usr local nginx sbin nginx 二 重啟 更改配置重啟nginx kill hup 主程序號或程序號檔案路徑 或者使用 cd usr local nginx sbin nginx s reload 判斷配置檔案是否正確 nginx t c usr local nginx ...

mac電腦公升級後 ssh無法連線解決辦法

前幾天碰到的問題總結一下,如上圖,macos系統版本為10.15.4的時候,git專案ssh方式的 倉庫無法連線,無響應狀態,沒有錯誤提示,就很尷尬。測試ssh配置是否正確 輸入命令 ssh tv git qiyi com 後是gitlab網域名稱 連線超時,提示版本 openssh 8.1p1,l...

ubuntu 公升級後執行nginx報錯

ubuntu 公升級後執行nginx報錯 usr local nginx sbin nginx error while loading shared libraries libssl.so.0.9.8 cannot open shared object file no such file or di...