In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "Mac OS compilation and installation of Nginx detailed steps", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Mac OS compilation and installation of Nginx detailed steps" bar!
First, set up a temporary directory nginx-src and download the source code of the required software to configure the download software.
Mkdir nginx-srccd nginx-srcwget http://nginx.org/download/nginx-1.17.8.tar.gzwget https://ftp.pcre.org/pub/pcre/pcre-8.41.tar.gzwget https://www.openssl.org/source/openssl-1.1.0g.tar.gztar zxvf * .gzcd nginx-1.17.8./configure-with-pcre=../pcre-8.41/-with-http_ssl_module-with-openssl=../ Openssl-1.1.0g-prefix=/Users/winterlau/nginx
Here we install nginx in the / Users/winterlau/nginx directory. Please use the absolute path specified by prefix.
Error handling
If you are executing a configure script, the Times has the following error:
Checking for OS + Darwin 19.2.0 x86_64checking for C compiler... Not found./configure: error: C compiler cc is not found
The following error occurred when trying to execute gcc
Xcrun: error: invalid active developer path (/ Library/Developer/CommandLineTools), missing xcrun at: / Library/Developer/CommandLineTools/usr/bin/xcrun
Execute: xcode-select-- install operate according to the prompts of the interface
Continue with the installation
. / configure-with-pcre=../pcre-8.41/-with-http_ssl_module-with-openssl=../openssl-1.1.0g-prefix=/Users/winterlau/nginx
You can see the relevant information as follows:
Configuration summary + using PCRE library:.. / pcre-8.41/ + using OpenSSL library:.. / openssl-1.1.0g + using system zlib library
Start compilation and installation
Makemake install
Start Nginx and test
Since the default nginx runs on port 80, administrator privileges are required:
Cd.. /.. / nginxsudo sbin/nginx
Open a browser to access http://localhost
Thank you for reading, the above is the "Mac OS compilation and installation of Nginx detailed steps" of the content, after the study of this article, I believe you on the Mac OS compilation and installation of Nginx detailed steps of this problem have a deeper understanding, the specific use of the need for you to practice and verify. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.