Nginx. conf weight loss notes
The problem is that the nginx. conf file is too long, too large, and inconvenient to maintain. Therefore, you can split the file so that it is easy to read and maintain.
1. Remove all weixin configurations in nginx
As
Nginx load balancing-expansion function (NGINX Plus), nginx Load Balancing
Nginx load balancing-expansion feature (NGINX Plus). This article mainly introduces the functions of NGINX Plus, and updates across different versions such as NGINX Plus R5,
Run the command in the/usr directory to download the latest nginxSource code:
Wget http://nginx.org/download/nginx-1.2.0.tar.gz
After decompression you can see the nginx-1.2.0 directory:
Tar zxvf nginx-1.2.0.tar.gz
Install the PCRE
First, there must be a GCC-C ++ Environment
Yum-y install gcc-C ++
1Use openresty
Openresty of 1.11.2.1 and OpenSSL of 1.0.2 are used here.
[email protected]: ~#yum install readline-devel pcre-devel openssl-devel gcc [email protected]: ~#
The temptation to change the Web serverNginx(Pronunciation [engine x]), a high-performance WEB server written by Russians. [Because in the linode360 solution, if Apache is used to achieve better performance, oom occurs frequently. To avoid Oom, only
The beginning of this article is quite tangled, because the online search "from the input URL to the page show what happened", you can search a lot of information. And interview this question basic is must test, February interview, although know
Tag:chage div sel ui Permissions ext 80 Port agent vim 1. installation homebrew2. installation nginx ; terminal run brew install nginx; 1) to nginx Set Administrator rights: If you do not set the administrator rights, 80
Read Catalogue
1. Enter the address
2, the browser to find the IP address of the domain name
3. The browser sends an HTTP request to the Web server
4. Permanent redirect response of the server
5. Browser Tracking REDIRECT
ObjectiveToday introduces the use of a gadget. We all know that Windows service is a special kind of application, it has the advantage of being able to run in the background, relatively, it is more suitable for some applications that need to run
Directory Operations:RM-RF Mydir/* Delete Mydir directory, do not need confirmation, directly delete */mkdir dirname/* Create a directory named DirName */CD Mydir/* Enter the Mydir directory */CD-* * Return to the directory where it was before
Of course it's just a matter of introducing an order, it's that simple.Nginx creates a worker process by defaultroot 2713 1 0 07:56 ? 00:00:00 nginx: master process ../sbin/nginxnobody 2714 2713 0 07:56 ? 00:00:00 nginx:
1. Install the Pcre library First (note: Nginx rewrite relies on the library)You can download the latest version here, I use the 8.33 version and then execute the following command at the terminal.CD ~/downloadtar xvzf pcre-8.33.tar.gzcd
"This article uses the source code compiles installs, including the concrete compilation parameter information"1. Install makeYum Install GCC Make -Y means auto Select YesGCC (GNU Compiler Collection) was originally a C-predicted compiler (GNU C
1./configure--prefix=/export/shell/nginx: Installation directoryChecking for OS+ Linux 2.6.32-358.el6.x86_64 x86_64Checking for C compiler ... found+ using GNU C compiler+ gcc version:4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)Checking for gcc-pipe
1. Pre-installation Environment preparationInstall Make:# yum-y Install gcc automake autoconf libtool makeInstall g++:# yum Install gcc gcc-c++2. Generally need to first install Pcre, Zlib, the former in order to rewrite rewrite, the latter for gzip
I. OS:
[Root@linuxea lnmp]# Cat/etc/redhat-releaseCentOS Linux release 7.2.1511 (Core)Mariadb-10.0.27-linuxNginx1.10:1php5.6.26II. Notice
Separating LNMP on Docker single machineThe/mydata/data Data directory has been placed on the host before
First, IntroductionNginx is a very lightweight HTTP server written by the Russians, Nginx, which is pronounced "engine X" and is a high-performance HTTP and reverse proxy server, as well as a IMAP/POP3/SMTP proxy server. Nginx was developed by the
First introduce the environment used: CentOS 7.4, PHP 7.0, Nginx 1.12The Linux system version can be viewed via the command: Lsb_release-a.Now it's time to get to the chase!1. First check to see if Nginx has been installed successfully.Linux command:
Case 1: Building an Nginx serverCase 2: User authenticationCase 3: Domain-based virtual hostCase 4:SSL Virtual Host1 Case 1: Building Nginx Server1.1 QuestionsInstall the Nginx service on the host with IP address 192.168.4.5 and the Nginx server,
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.