
我想在 OpenBSD 上安裝自訂編譯的 nginx,但運行它時遇到問題,因為 nginx 已安裝在預設的 OpenBSD (5.6) 安裝中。
在某種程度上,就像我設法混合了兩者的檔案和配置,但主程式是作業系統安裝的原始程式。
我已經在這兩個指令的幫助下編譯並安裝了 nginx:https://github.com/SpiderLabs/ModSecurity/wiki/Reference-Manual#Installation_for_NGINX和http://wiki.nginx.org/OnOpenBSD
我嘗試過 pkg_delete 但沒有結果。也google了一下沒有結果。
在安裝我的版本之前如何刪除它?
謝謝!
答案1
這很奇怪,因為從 5.6 開始Nginx 從基本作業系統移至 ports。
但無論如何,這些是與 Nginx 相關的檔案應該被刪除:
rm -f /etc/rc.d/nginx
rm -f /usr/sbin/nginx
rm -f /usr/share/man/man8/nginx.8
rm -f /usr/share/man/man5/nginx.conf.5
您可能還想確保刪除 rc.d 中 nginx 的痕跡。