Home >Backend Development >PHP Tutorial >nginx source package installation nginx rewrite nginx php where is nginx.conf

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

WBOY
WBOYOriginal
2016-07-29 08:51:161175browse

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

After the download is completed, start decompressing the corresponding package

tar -zxvf nginx-1.7.8.tar.gz

  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

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

    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.

Statement:
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