2017-10-08 34 views
0

当我在我的MacOS上运行nginx时。未加载库:MacOS无法运行nginx

➜ nginx nginx 

dyld的在/ usr/local/bin目录/ nginx的 原因:/usr/local/opt/[email protected]/lib/libssl.1.1.dylib 从引用图像没有发现 [1] 10170 abort nginx

回答

0

请先安装HomeBrew http://brew.sh/。它是MacOS的软件包管理器,可以轻松安装各种Unix应用程序。 MacOS会提示你先安装Xcode命令行工具(除非你已经安装了它们)。 安装后,下面的命令,如果必要的话,将告诉你如何完成安装:

brew doctor 
//Then updates all packages with: 
brew update 
brew upgrade 
//Then Install Nginx 
brew install nginx 
// Then automatically launch Nginx at startup with: 
sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons 
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist 

祝你好运!

+0

谢谢,但它不起作用。 – Mergades