nginx source package installation nginx rewrite nginx php where is nginx.conf

WBOY
Release: 2016-07-29 08:51:16
Original
1157 people have browsed it

First go to http://nginx.org/download/ to download the nginx version package you need. Use wget to download

If you need to redirect the installation of the corresponding package

yum -y install pcre*<pre name="code" class="plain">wget http://nginx.org/download/nginx-1.7.8.tar.gz
Copy after login

After the download is completed, start decompressing the corresponding package

tar -zxvf nginx-1.7.8.tar.gz
Copy after login

  1. After decompression is completed, use cd to switch to the corresponding source code directory
  2. Run
  3. ./configure --prefix=/usr/local/nginx \
    --with-http_ssl_module 
    --with-http_stub_status_module --with-pcre
    Copy after login

    如果没有报错直接运行 make && make install 
    cd /usr/local/nginx/sbin
    ./nginx 启动对应的nginx服务
    Copy after login

    After successful startup, use the browser to access the corresponding IP.
  4. If you can’t access, please turn off the server’s firewall or add port 80 mapping

The above introduces the nginx source package installation, including nginx content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!