current location:Home > Technical Articles > Operation and Maintenance > Nginx
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to install and configure the blogging program Typecho on the Nginx server
- 1. Download #Website directory cd/usr/local/nginx/html/wgethttps://github.com/typecho/typecho/releases/download/v0.9-13.12.12-release/0.9.13.12.12.-release .tar.gz-otypecho.tar.gztart-zxvftypecho.tar.gz The source code of typecho is placed in /usr/local/nginx/html/build2. Configure the nginx virtual machine (modify www.cxy.cc for you
- Nginx 1334 2023-05-13 20:31:04
-
- How to smoothly upgrade nginx after nginx is compiled and installed
- 1. Download page for the new version of nginx: wget-c http://nginx.org/download/nginx-1.13.12.tar.gz 2. Get the configuration of the old version of nginx and view the current version: /usr/local/nginx/sbin /nginx-vView the current configuration:/usr/local/nginx/sbin/nginx-v[root@zixuephpnginx-1.13.6]#/usr/local/nginx/sbin/nginx-vnginxversion:nginx/1.13.6[root @zixuep
- Nginx 1460 2023-05-13 20:25:11
-
- What are the characteristics and differences between Nginx and Apache
- 1. Nginx features 1. It is lightweight and written in C. The same web service will occupy less memory and resources. 2. Anti-concurrency, nginx uses epollandkqueue as the development model, processing requests is asynchronous and non-blocking, and the load capacity is much higher than that of apache, while apache is blocking. Under high concurrency, nginx can maintain low resource consumption and high performance, while apache is prone to a surge in the number of processes and denial of service when PHP processing is slow or the front-end pressure is high. 3. When nginx is started, it will generate a master process. Then, the master process will fork multiple worker sub-processes. Finally, each user's
- Nginx 1292 2023-05-13 20:10:14
-
- How to configure the server-side environment of Nginx+Tomcat
- 1. javajdk installation: #Download the corresponding jdk software package, then unzip and install it. The name of my package is: jdk-7u25-linux-x64.tar.gztar-xzfjdk-7u25-linux-x64.tar.gz;mkdir-p /usr/java/;mvjdk1.7.0_25//usr/java/.#Then configure the environment variables so that jdk can be referenced anywhere, configure as follows: #vi/etc/profile add the following statement at the end: exportjava_home=/usr /java/jdk1.7.0_25exportclasspath=$
- Nginx 967 2023-05-13 19:58:04
-
- Nginx service optimization methods
- Nginx service optimization can be optimized from several aspects: hiding version numbers, changing users and groups, configuring web page cache time, log cutting, and setting connection timeouts. 1. Hidden version number In the production environment, the version number of Nginx needs to be hidden to avoid leaking the Nginx version and preventing attackers from conducting attacks on specific versions. To check the Nginx version, use the command curl-Ihttp://172.16.10.10/ in CentOS. [[emailprotected]~]#curl
- Nginx 1232 2023-05-13 19:28:10
-
- What are the methods to optimize Nginx performance?
- Nginx performance optimization 1. Number of Nginx running working processes The number of Nginx running working processes is generally set to the CPU core or the number of cores x 2. If you don’t know the number of cores of the CPU, you can press 1 after the top command to find out, or you can check the /proc/cpuinfo file grep^processor/proc/cpuinfo|wc-l[root@lx~]#vi/usr/local/nginx1 .10/conf/nginx.confworker_processes4;[root@lx~]#/usr/local/nginx1.10/sbin/nginx-sreloa
- Nginx 1031 2023-05-13 19:28:04
-
- How to install nginx1.12.1 under centos6.4
- Installation required environment 1.gcc installation To install nginx, you need to compile the source code downloaded from the official website first. The compilation depends on the gcc environment. If there is no gcc environment, you need to install: yuminstallgcc-c++2.pcrepcre-devel installation pcre (perlcompatibleregularexpressions) is A perl library that includes a perl-compatible regular expression library. The http module of nginx uses pcre to parse regular expressions, so the pcre library needs to be installed on Linux. pcre-devel is a secondary development library developed using pcre. nginx also requires this library. Command: yu
- Nginx 1087 2023-05-13 19:10:10
-
- How to configure nginx to limit the access frequency of the same IP
- 1. Add the following code to http{} in nginx.conf: limit_conn_zone$binary_remote_addrzone=perip:10m;limit_conn_zone$server_namezone=perserver:10m; 2. Add the following code to the server{} configuration of the website that needs to limit the number of concurrencies and download bandwidth. The following code: limit_connperip2;limit_connperserver20;limit_rate100k; additional parameters: $binary_remote_addr is to limit the same client i
- Nginx 2706 2023-05-13 19:04:18
-
- How to install nginx on Linux system
- Nginx (enginex) is a high-performance HTTP and reverse proxy web server known for its stability, rich feature set, sample configuration files, and low system resource consumption. Introduction to nginx: Nginx (enginex) is a high-performance HTTP and reverse proxy web server. Nginx is a lightweight web server/reverse proxy server and email (IMAP/POP3) proxy server. Released under a BSD-like license. Its characteristics are that it occupies less memory and has strong concurrency capabilities. In fact, nginx’s concurrency capabilities perform better among web servers of the same type. Users of nginx websites in mainland China include: Baidu, JD.com, Sina, etc.
- Nginx 1938 2023-05-13 19:01:11
-
- How to deploy tomcat and Nginx on linux server
- 1. Preparation work: First of all, you must have a Linux server that can be played, and know the user name and password. Then you need to install two tools on the Windows computer that can connect to the Linux server, xshell5 and xftp5. I will not go into the installation tutorial. I will add a picture. Explain how to connect to the server: The xshell connection interface is as follows. After entering the host IP and click OK, xshell will pop up a window to enter the user name and password to connect successfully! The xftp connection interface is as follows. Just fill in the blanks. It’s very simple. I won’t go into details. I’d like to mention why sftp is chosen instead of ftp here. You’ll understand if you know how much you know about the difference between ftp and sftp! 2. Installation and deployment work If you want to deploy the project to
- Nginx 1113 2023-05-13 18:58:11
-
- How to configure Nginx cross-domain access and anti-leeching
- Cross-domain access control Cross-domain access Why does the browser prohibit cross-domain access? It is unsafe and prone to CSRF attacks! If website B controlled by a hacker adds malicious information in the response header to allow the client to access website A, a csrf attack will occur. How to configure cross-domain access in nginx? Server, location, ifinlocation syntax explanation: add_headernamevalue[always]; name represents the keyvalue returned by the response header and represents the response header returned.
- Nginx 1749 2023-05-13 18:31:12
-
- What is the method for smooth upgrade of Nginx production environment?
- 1. Background Recently I encountered a rather embarrassing and practical problem, that is, the Nginx used in our production environment is an old antique of Centos6. Business requirements need to be implemented by loading a module of Nginx, but the version is too old and needs Nginx1.18 or later to support it, and ours is Nginx1.12. Then upgrading Nginx is what we have to do. But in the production environment, you have to consider many things. Unlike the test server, Nginx stops the service, recompiles the new version, and then starts it again. Our online services need to be provided uninterrupted, otherwise it will cause economic losses to the business. So is there any plan to smoothly upgrade the Nginx version? 2. Upgrade plan In fact, the official has long been aiming at smooth upgrade of Nginx.
- Nginx 1524 2023-05-13 17:58:06
-
- How to install nginx offline on Linux
- \1. First install the dependent library yuminstall-ygcc-c++``yuminstall-ypcrepcre-devel``yuminstall-yzlibzlib-devel``yuminstall-yopensslopenssl-devel\2. Download the nginx installation package http://nginx.org/download/ \3. Upload the downloaded nignx source code package to the Linux server and decompress it\4. Enter the decompressed root directory of nginx and configure cdnginx-1.9.9./configure--prefix=/usr/local
- Nginx 5526 2023-05-13 17:55:19
-
- How to compile and install PHP and Nginx in Ubuntu environment
- Compile and install nginx, change directory to the working folder: cd/usr/local/src, download pcre source code and install wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.20.tar .gztar-zxvfpcre2-10.20.tar.gzmv./pcre2-10.20.tar.gz./pcrecdpcre./configure--prefix=/usr/local/pcremake&&makeinstall download zlib
- Nginx 1157 2023-05-13 17:49:14
-
- How to configure Nginx server for Node.js program
- Node.js is a platform built on the Chrome JavaScript runtime, which is used to easily build web applications with fast response speed and easy expansion. Node.js uses an event-driven, non-blocking I/O model to be lightweight and efficient. It is very suitable for data-intensive real-time applications running on distributed devices, such as real-time chat and so on. However, gzip encoding, static files, http caching, SSL processing, load balancing and reverse proxy, etc., can all be completed through nginx, thereby reducing the load on node.js and saving website traffic through nginx's powerful cache. Improve website loading speed. The flow chart nginx configuration is as follows: http{proxy_
- Nginx 1173 2023-05-13 17:25:06