Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ CentOS 7 source code to compile and install Nginx process record     - Using VMware vSphere Client Linux virtual machine installation CentOS6.4 system (Linux)

- The Java development environment to build under Ubuntu 14.04 (Linux)

- Linux Nginx installation and configuration instructions (Server)

- Linux automatically install service components and optimize the kernel parameters (Linux)

- Understanding and Memcached MongoDB arbitration node, Zookeeper, Redis Recovery Programme Thoughts (Database)

- MySQL display operation control tips (Database)

- 10 Nginx safety tips (Linux)

- In-depth understanding of capture Node.js garbage collection and memory leaks (Programming)

- Android Get App version number and version name (Programming)

- Linux Demo dd IO test (Linux)

- CentOS 6.6 running level (Linux)

- Java multi-threaded in a three way (inheritance, implementation, anonymous inner classes) (Programming)

- Installation CD audio file extraction tool Flacon (Linux)

- Vi / Vim prompt solutions do not have permission to save time (Linux)

- CentOS 6.2 install git error Perl5 (Linux)

- Web server security policy (Linux)

- Internal class broadcasting needs public and static (Programming)

- Based Corosync + Pacemaker + DRBD + LNMP Web server to achieve high availability cluster (Server)

- Linux Command Tutorial: Ubuntu apt-get command (Linux)

- Try to use Lets Encrypt (Linux)

 
         
  CentOS 7 source code to compile and install Nginx process record
     
  Add Date : 2018-11-21      
         
         
         
  Preface: CentOS system to compile and install each LNMP environment to a new server, or to change the computer needs to be done here only to do a record. A reference for beginners!

First, pre-installation environment

Here is CentOS 7 system.
We default to download the software on the / data / soft (can be set according to personal preference)
The default server applications installed in / data / apps below (according to personal preferences)
First, start the installation
1.
yum -y install wget pcre openssl * gd gd2 gd-devel gd2-devel gcc gcc-c ++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers make

First with the one above commands to install web services to build some of those dependencies must use yum. If the system is already installed will be automatically skipped. If it is not updated to the latest date.

2.
// Add web services user group www, and www users
groupadd www
useradd -g www www

// Ulimit concurrency to improve network performance, do not play their own local setting does not matter
ulimit -SHn 65535

// Prepare to enter the soft catalog download applications
cd / data / soft

// First use wget to download and install nginx must pcre. The latest version is 8.37. You can ask yourself the following url to view the latest version.
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz
tar zxvf pcre-8.37.tar.gz
cd pcre-8.37
./configure --prefix = / data1 / apps / libs / pcre
make && make install
cd ../
// Here pcre installation has been completed.

// Nginx start the download and install the latest stable (stable version) is 1.8.0, rc version has up to 1.94. Download the self-reference. Here, for example by 1.8.0
wget http://nginx.org/download/nginx-1.8.0.tar.gz
tar zxvf nginx-1.8.0.tar.gz
cd nginx-1.8.0
./configure --user = www --group = www --prefix = / data / apps / nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre = / data / soft / pcre-8.37 --with -http_realip_module --with-http_image_filter_module
make && make install
cd ../

// Nginx command to resume bin following soft links, facilitate future direct use nginx command
ln -s / data / apps / nginx / sbin / nginx / usr / local / bin / nginx

// Ps -ef | grep nginx can look at this time and there is no process nginx

//start up:
nginx

// Check again ps -ef | grep nginx nginx master has been found that the process
//help:
ngnix -h

// Test profile:
nginx -t

// Reboot:
nginx -s reload (other: stop, quit, reopen, reload)

to here. You can open the local browser to see http: // localhost've already seen the welcome page. It follows that when you play the nginx.conf configuration. Specifically not elaborate. The only installation record.
     
         
         
         
  More:      
 
- Detailed use Zabbix monitoring Nginx (Server)
- Getting the Linux shell flow control statements (Programming)
- Oracle 12c R2 new feature dbca command to create a standby database (Database)
- To compile and install Redis Linux and master-slave replication configuration (Database)
- Python programmers most often committed ten errors (Programming)
- Stucts2 values on the page and how the attribute values corresponding to the Action (Programming)
- iOS development -Launch Image and Launchscreen (Programming)
- Mac OS X system setup Google Go language development environment configuration tool Sublime Text 2 (Linux)
- Linux Basics Tutorial: Linux Kickstart automated installation (Linux)
- Use the vi text editor and copy and paste Linux tips (Linux)
- Weld a problem in JDK 8u60 environment (Programming)
- Windows Remote Desktop Management CentOS 6.4 (Linux)
- Deb package installation method under ubuntu (Linux)
- A new method for Linux hidden files (Linux)
- Oracle to create an external table (Database)
- Database Blob data type conversion String (Programming)
- 256 with rich colors decorate your terminal (Linux)
- Five useful commands to manage file types and system time in linux (Linux)
- C ++ overloaded stream insertion operator and the stream extraction operator (Programming)
- Installation and operation GAMIT software under Linux operating system (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.