current location:Home > Technical Articles > Operation and Maintenance > Nginx

  • How to install and configure the blogging program Typecho on the Nginx server
    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 1187 2023-05-13 20:31:04
  • How to smoothly upgrade nginx after nginx is compiled and installed
    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 1261 2023-05-13 20:25:11
  • What are the characteristics and differences between Nginx and Apache
    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 1130 2023-05-13 20:10:14
  • How to configure the server-side environment of Nginx+Tomcat
    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 696 2023-05-13 19:58:04
  • Nginx service optimization methods
    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 1066 2023-05-13 19:28:10
  • What are the methods to optimize Nginx performance?
    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 885 2023-05-13 19:28:04
  • How to install nginx1.12.1 under centos6.4
    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 946 2023-05-13 19:10:10
  • How to configure nginx to limit the access frequency of the same IP
    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 2537 2023-05-13 19:04:18
  • How to install nginx on Linux system
    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 1768 2023-05-13 19:01:11
  • How to deploy tomcat and Nginx on linux server
    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 913 2023-05-13 18:58:11
  • How to configure Nginx cross-domain access and anti-leeching
    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 1589 2023-05-13 18:31:12
  • What is the method for smooth upgrade of Nginx production environment?
    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 1324 2023-05-13 17:58:06
  • How to install nginx offline on Linux
    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 4907 2023-05-13 17:55:19
  • How to compile and install PHP and Nginx in Ubuntu environment
    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 1006 2023-05-13 17:49:14
  • How to configure Nginx server for Node.js program
    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 993 2023-05-13 17:25:06

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!