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

  • How to install and use Nginx in Linux environment
    How to install and use Nginx in Linux environment
    1. Check the centos version cat/etc/redhat-release 2. Add a resource library To install nginx on the centos system, you must first add a resource library: vim/etc/yum.repos.d/nginx.repo[nginx]name =nginxrepobaseurl=http://nginx.org/packages/centos/$releasever/$basearch/gpgcheck=0enabled=1 3. Install nginxyum-yinstallnginx 4. Test whether the nginx configuration file is correct ngi
    Nginx 1447 2023-05-12 14:37:28
  • How to configure Nginx in Linux system
    How to configure Nginx in Linux system
    The reverse proxy service of Nginx server is its most commonly used important function. The reverse proxy service can also derive many important functions of Nginx server related to this. 1. Upgrade the system, uninstall Apache and release 80 ports. Yumupdate-yYumremovehttpd-y2. Installation EPELreporpm-Uvhhttp://mirror.ancl.hawaii.edu/linux/epel/6/i386/epel-release-6-8.noarch.rpmEPELrepo download address: https://fedoraproject.org/wiki/EPEL3,
    Nginx 936 2023-05-12 14:34:19
  • How to install nginx in windows to deploy reverse proxy and load balancing
    How to install nginx in windows to deploy reverse proxy and load balancing
    1. Download and install nginx (the environment of this article is windowsxp32bit environment), unzip nginx-1.0.11.zip, enter nginx-1.0.11, and execute the command on the command line to start nginx. The specific operation is as follows: test whether the installation is successful, enter the address: the browser displays the result as shown below: ok, nginx is deployed successfully. 2. About nginx reverse proxy configuration. The reverse proxy method refers to using a proxy server to accept connection requests on the Internet, then forwarding the requests to the server on the internal network, and returning the results obtained from the server to the client requesting the connection on the Internet. era
    Nginx 1708 2023-05-12 14:17:27
  • How to install and configure Nginx
    How to install and configure Nginx
    Introduction to the installation of Nginx: #CentOSyuminstallnginx; #Ubuntusudoapt-getinstallnginx; #Macbrewinstallnginx; Generally, it can be configured in /etc/nginx/nginx.conf. The startup parameters are: #Start nginx-sstart; #Restart, hot start, modify the configuration and restart Does not affect online nginx-sreload;#Close nginx-sstop;#After modifying the configuration, you can use the following command to test whether there are syntax errors nginx-t;-s, signal, which means sending start|r to nginx
    Nginx 1353 2023-05-12 14:17:21
  • How to use supervisor to manage nginx and tomcat containers
    How to use supervisor to manage nginx and tomcat containers
    Requirements: Use docker to start nginx+tomcat dual processes. In actual applications, multiple processes are relatively common. 1: Create dockerfile directory mkdir-p/docker/web2: Write dockerfile:/docker/web/dockerfilefromcentos7maintainerlintest@163.comcopycentos-base.repo/etc/yum.repos.d/centos-base.repocopynginx_install.sh/tmp/nginx_install .shru
    Nginx 1493 2023-05-12 14:10:06
  • How to configure nginx multiple websites
    How to configure nginx multiple websites
    Configuration file: The code is as follows: http{server{listen80;server_namewww.domain1.com;access_loglogs/domain1.access.logmain;location/{indexindex.html;root/var/www/domain1.com/htdocs;}}server{listen80 ;server_namewww.domain2.com;access_loglogs/domain2.access.logmain;location/{ind
    Nginx 1650 2023-05-12 14:04:06
  • How to use Nginx to replace Mogilefs distributed storage
    How to use Nginx to replace Mogilefs distributed storage
    1. Introduction to distributed storage systems With the continuous development of information technology, it brings convenience to us. At the same time, the increasing data magnitude, the increasingly complex connections between information, and the increasing concurrency of data access have an increasing impact on i Problems such as the increasingly higher /o requirements and the increasingly complex data types have become urgent problems that need to be solved as information technology continues to develop rapidly. The emergence of distributed storage systems has solved most of the above problems to a large extent. A distributed storage system stores data dispersedly on multiple independent devices. Traditional network storage systems use centralized storage servers to store all data. The storage server becomes the bottleneck of system performance and the focus of reliability and security, and cannot meet the needs of large-scale storage applications. Distributed storage systems adopt scalable
    Nginx 878 2023-05-12 13:55:17
  • How to install nginx in a custom directory on centos8
    How to install nginx in a custom directory on centos8
    1. Install tools and libraries #pcre is a perl library, including a perl-compatible regular expression library. nginx's http module uses pcre to parse regular expressions #The zlib library provides many compression and decompression methods. nginx uses zlib to perform gzipyum-yinstallgcc-c++pcrepcre-develzlibzlib-developensslopenssl-devel2. Directory structure Source code directory: /home/werben/pkgsrc/nginx Installation directory: /home/werben/application/nginx
    Nginx 1580 2023-05-12 13:55:06
  • How to set the access_log format of nginx
    How to set the access_log format of nginx
    Nginx access logs can be set in custom formats to meet specific needs. Example: Example 1log_formatcombined_realip'$remote_addr$http_x_forwarded_for[$time_local]''$host"$request_uri"$status''"$http_referer""$http_user_agent"';
    Nginx 1760 2023-05-12 13:25:13
  • How to start and restart nginx in Linux system
    How to start and restart nginx in Linux system
    1. Enter the sbin directory under the nginx installation directory. 2. Execute the following command: ./nginx-c/usr/local/nginx/nginx/conf/nginx.conf● where/usr/local/nginx/nginx/conf/nginx .conf is your own nginx.conf path. ●The -c parameter specifies the path to the nginx configuration file to be loaded. How to restart nginx in linux? Restart smoothly: 1. Enter the sbin directory under the nginx installation directory. 2. Execute the following command: ./nginx-sreload. How to stop nginx in Linux? 1. Enter
    Nginx 1683 2023-05-12 13:19:13
  • How to shut down, restart, and start nginx
    How to shut down, restart, and start nginx
    Close servicenginxstopsystemctlstopnginxStart servicenginxstartsystemctlstartnginxRestart servicenginxreloadsystemctlrestartnginx Run automatically when the system starts systemctlenablenginx Disable automatic running when the system starts systemctldisablenginx Knowledge point expansion: First use the configuration file to start nginx. Command: nginx-c/usr/local/nginx/conf/nginx.conf Restart the service: servi
    Nginx 8894 2023-05-12 12:40:06
  • How to configure Nginx domain name rewriting and pan-domain name resolution
    How to configure Nginx domain name rewriting and pan-domain name resolution
    具体代码如下:#usernobody;worker_processes1;#error_loglogs/error.log;#error_loglogs/error.lognotice;#error_loglogs/error.loginfo;#pidlogs/nginx.pid;events{worker_connections1024;}http{includemime.types;default_typeapplication/octet-stream;#log_formatmain&am
    Nginx 2305 2023-05-12 12:37:06
  • How to configure Nginx SSL certificate to deploy HTTPS website
    How to configure Nginx SSL certificate to deploy HTTPS website
    Issue an SSL certificate that is not trusted by the browser. Manually issue an xshell login server and use openssl to generate an RSA key and certificate. #Generate an RSA key $opensslgenrsa-des3-outtfjybj.key1024#Copy a key file that does not require a password $ opensslrsa-indmsdbj.key-outtfjybj_nopass.key#Generate a certificate request $opensslreq-new-keytfjybj.key-outtfjybj.csr. Here you will be prompted to enter the province, city, domain name and other information. The email must be the domain name suffix. This will generate a
    Nginx 1096 2023-05-12 12:31:12
  • How to install Nginx server program and simple environment configuration on Ubuntu
    How to install Nginx server program and simple environment configuration on Ubuntu
    Ubuntu install nginxcd from the official source~wgethttp://nginx.org/keys/nginx_signing.keysudoapt-keyaddnginx_signing.keysudonano/etc/apt/sources.list#Add the following two sentences debhttp://nginx.org/packages/ubuntu/precisenginxdeb -srchttp://nginx.org/packages/ubuntu/precisenginxsudoapt-getupdatesud
    Nginx 1245 2023-05-12 12:31:06
  • What is the difference between the root and alias directives in Nginx configuration?
    What is the difference between the root and alias directives in Nginx configuration?
    Both root and alias can be defined in the location module, and are used to specify the real path of the requested resource, for example: location/i/{root/data/w3;} requests http://foofish.net/i/top.gif When this address is used, the corresponding real resource in the server is the /data/w3/i/top.gif file. Note: The real path is the value specified by root plus the value specified by location. And alias is just like its name. The path specified by alias is the alias of location. No matter how the value of location is written, the real path of the resource is the path specified by alias, such as
    Nginx 3590 2023-05-12 12:16:40

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!