Nginx and Apache access method

Source: Internet
Author: User

Ifconfig

Enter IP in the browser to access

CentOS Installation Nginx Environment

1: Enter CD/USR/LOCAL/SRC//download file into this directory

2:wget http://nginx.org/download/nginx-1.8.1.tar.gz

LS Look at the installation package

3: Unzip the installation package with tar, TAR-ZXVF nginx-1.8.1.tar.gz//Tips: Install package name on the Ngin press TAB to automatically complete

CD nginx-1.8.1 (mkdir 775 nginx)//Enter the Unzip directory

4:./configure--prefix=/usr/local/nginx (Nginx specified installation directory is automatically generated)

5:make

6:make Install

The installation is complete at this time.

Nginx Start-Up and restart

1. Start Nginx:

#/usr/local/nginx/sbin/nginx-t to see if the configuration information is correct

#/usr/local/nginx/sbin/nginx

2. Smooth start Nginx

#/usr/local/nginx/sbin/nginx-s Reload

3. View Nginx Process:

#ps-ef|grep Nginx

Note: CD. Return to the previous layer

CD/Return root directory

Nginx and Apache access method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.