When I run nginx on my MacOS.
➜ nginx nginx
dyld: Library not loaded: /usr/local/opt/[email protected]/lib/libssl.1.1.dylib Referenced from: /usr/local/bin/nginx Reason: image not found [1] 10170 abort nginx
When I run nginx on my MacOS.
➜ nginx nginx
dyld: Library not loaded: /usr/local/opt/[email protected]/lib/libssl.1.1.dylib Referenced from: /usr/local/bin/nginx Reason: image not found [1] 10170 abort nginx
Please start by installing HomeBrew http://brew.sh/. It is a package manager for MacOS that allows to easily install various Unix applications.
MacOS will prompt you to first install Xcode Command Line Tools (unless you have them already).
After installation, the following command, if necessary, will tell you how to complete the installation:
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
Good luck!
brew install openssl
to fix this. – rustyMagnet