--prefix=/usr/local/nginx--user=www--group=www--with-http_stub_status_module--with-openssl=/usr/-- with-pcre=/usr/local/src/pcre-8.30Note:--with-pcre=/usr/local/src/pcre-8.30 points to the source package decompression path, not the installation path, otherwise it will be an errorMakeMake install/usr/local/nginx/sbin/nginx #启动nginxSet
: [OK]# chkconfig--level 3 httpd offStart Nginx again#/usr/local/nginx/sbin/nginxSpecifies that the load configuration file can be used as follows:[Email protected] ~]#/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.confS
=" Qq20150905162914.png "alt=" Wkiol1xqqbkxnfg3aagpymnuuxa199.jpg "/>The source package is configured again with an error, and the following error occurs.650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/AA/wKiom1XqqDvC7WvgAAFlNKD5SxI975.jpg "title=" Qq20150905163308.png "alt=" Wkiom1xqqdvc7wvgaaflnkd5sxi975.jpg "/>Installing the OpenSSL library file650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/A6/wKioL1XqqvWAIpQ8AAN5v6onhg4029.jpg "title=" Qq20150905163533.png "alt="
: This article mainly introduces the Nginx series (III. registering nginx as a linux system service). If you are interested in the PHP Tutorial, refer to it. 1. create a service script
vim /etc/init.d/nginx
The script content is as follows:
#! /bin/sh# chkconfig: - 85 15PATH=/web/server/
Nginx's powerful response capabilities to static files make up for the shortcomings of the Apache environment to some extent. nginx is used as a reverse proxy, and some of them are used to improve the corresponding capabilities of static files, in addition, nginx can be used for load balancing to build two or three Apache servers. This solves the server resource problems arising from the rapid development o
this scripts, please contact gcec cyz. # and send mail to support at gcec dot cc. # chkconfig:-85 15 # description: Nginx is a high-performance web and proxy server. # It has a lot of features, but it's not for everyone. # processname: ngi Nx # pidfile:/var/run/nginx. pid # config:/usr/local/nginx/conf/
Nginx is a high-performance HTTP and reverse proxy server and an IMAP/POP3/SMTP proxy server. Today, we will introduce nginx in many aspects, including pressure tests on nginx and http, nginx access methods, and nginx encrypted access.
1. Install
Because Nginx boot is not convenient, so we need to manually compile a Nginx startup script[Email protected] ~]# Vim/etc/init.d/nginx #加入以下内容#!/bin/bash# Chkconfig:-30 21# Description:http Service.# Source Function Library. /etc/init.d/functions#
Code
3 reasons:
1. The firewall is open (it is true that my WIN7 Windows Firewall is open, but it is not able to start nginx after it is turned off)
2.80 Port is occupied (do have a default site with 80 ports, shut down and then start Nginx Normal, the nginx default configuration. You need to modify the nginx.conf in the ngi
Tags: roo configuring etc API how to upstream XML pwd schemeInstallation of Nginx download, unzipDownload the installation package from Nginx, I am under nginx-1.8.0.tar.gz . The extracted directories are:[[emailprotected] third_package]# tar -zxf nginx-1.8.0.tar.gz [[emailp
and install the nginx containing the Nginx-rtmp-module module2.3.1, enter the nginx-1.8.1 source directoryRun the following command in turn: ./configure --prefix=/usr/local/nginx --add-module=/usr/local/rtmp/ nginx-rtmp-module.1.1.4 --with-http_ssl_moduleMake-f Objs/make
care of starting and stop
Ping Nginx. # chkconfig:-# Description:nginx [engine x] is light HTTP web/proxy server # that answers incoming FTP servi
CE requests. # processname:nginx # config:/etc/nginx.conf nginx_path= "/opt/servers/nginx" nginx_pid= "/var/run/nginx.pid" # Sour
Ce function Library. .
/etc/rc.d/init.
Experimental system: CentOS 6.6_x86_64Experimental premise: Most of the software used to compile the installation, please prepare the compilation environment in advance, firewalls and SELinux are closedExperimental software: nginx-1.9.3 mariadb-10.0.20 php-5.6.11 memcache-2.2.7 xcache-3.2.0Experiment topology:
I. Installation of Nginx1. Resolve the dependency relationship:Special installation of Pcre-devel packages is required:Yum-y Install Pcre-devel
/root directory, because this container's IP is 172.17.0.2, create a hello.html file, write the following in the file "Hello this is 172.17.0.2", The http://172.17.0.2/hello.html is then accessed at the hosting host, displaying the following:
7. Consistent with the above steps, configure another container, except that the mapping port set when the container starts is different, as follows:sudo docker run-t-i-p 3322:22-p 3380:80 87e5b6b3ccc1/bin/bashFinally, the hello.html file is created in the
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.