In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
First, summarize all the steps: yum install libaio ncurses gcc gcc-c++ cmake ncurses-devel wgetyum install pcre-devel zlib-develwget http://nginx.org/download/nginx-1.16.1.tar.gz # download the source package tar-zxvf nginx-1.16.1.tar.gzcd nginx-1.16.1./configure-- prefix=/opt/nginx1.16 # here specify the installation directory make & & make installuseradd www-s / bin/falsevi / opt/nginx1.16/conf / nginx.conf # modify the configuration file # remove the previous pound sign and change it to user www on the first line / opt/nginx1.16/sbin/nginx # start nginx# the following is optional / opt/nginx1.16/sbin/nginx-s stop # stop / opt/nginx1.16/sbin/nginx-s reload # reload configuration 1. Install the compiler and rely on yum install libaio ncurses gcc gcc-c++ cmake ncurses-devel wgetyum install pcre-devel zlib-devel
These dependencies are required to compile nginx, otherwise the compilation cannot be completed.
two。 Download the source package and extract wget http://nginx.org/download/nginx-1.16.1.tar.gz # download the source package tar-zxvf nginx-1.16.1.tar.gzcd nginx-1.16.13. Compile and install. / configure-- prefix=/opt/nginx1.16 # here specify the installation directory make & & make install
You can make an installation directory before compilation, so that all data, configurations, and programs will be placed in this directory.
It may not be specified, as shown below
. / configuremake & & make install
This will install to the default location
4. Add the user useradd www-s / bin/falsevi / opt/nginx1.16/conf/nginx.conf # used by nginx to modify the configuration file # remove the previous pound sign and change it to user www on the first line
By default, nginx does not use root users to run scripts for websites, but uses nobody, because once malicious scripts are executed, the consequences are very serious.
However, the permissions of nobidy are very small. We usually create a new nginx user or www user as a nginx user.
5. Start and restart / opt/nginx1.16/sbin/nginx # start nginx/opt/nginx1.16/sbin/nginx-s stop # stop / opt/nginx1.16/sbin/nginx-s reload # reload configuration
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.