Article Tags
How to configure nginx server under ubuntu

How to configure nginx server under ubuntu

Detailed explanation of nginx server configuration under ubuntu 1. Installation of nginx server sudoapt-getinstallnginx2. Startup of nginx server sudo/etc/init.d/nginxstart3. Multiple domain names correspond to different backend servers in the /etc/nginx/sites-enabled/ directory Delete the default configuration file and create a new configuration file corresponding to the domain name, such as test.youlunshidai.com# Multiple nodejs nodes can be configured through upstreamnodejs__upstream for load balancing upstreamnodejs__u

May 15, 2023 am 09:04 AM
Ubuntu nginx
How to configure PHP error logs when using PHP-FPM in Nginx

How to configure PHP error logs when using PHP-FPM in Nginx

nginx is different from apache. In apache, you can directly specify the error log of php, so that the error information during php execution is directly input into the error log of php, which can be easily queried. In nginx, things become like this: nginx only records access logs for page visits. There will be no php errorlog information. nginx sends the request for php to the php-fpmfastcgi process for processing. The default php-fpm will only output the error message of php-fpm, and the error log of php cannot be seen in the errorslog of php-fpm. The reason is that the configuration file php of php-fpm

May 15, 2023 am 08:58 AM
PHP nginx fpm
How to build a reverse proxy for Nginx server

How to build a reverse proxy for Nginx server

Part 1: Installation 1 Establish users and groups /usr/sbin/groupaddwww/usr/sbin/useradd-gwwwwww 2 Install pcre to let nginx reverse proxy support rewrite for future needs wgetftp://ftp.csx.cam.ac.uk /pub/software/programming/pcre/pcre-7.8.tar.gztarzxvfpcre-7.8.tar.gzcdpcre-7.8/./configuremake&&makeinstall3Install nginx reverse proxy wget

May 15, 2023 am 08:40 AM
nginx
How to use Consul-template+Nginx to implement Thrift Consul load balancing

How to use Consul-template+Nginx to implement Thrift Consul load balancing

Overall Architecture Let’s first look at what the architecture of the entire framework looks like. Here we have three service providers and three service callers, which implement load balancing through Consul, Nginx, and Consul-template. Note that this example is for RPC load balancing. RPC is a tcp protocol, so Nginx needs to configure the tcp module to support tcp load balancing. Consul cluster is used for service registration, registering multiple service instances, and providing RPC services to the outside world. Consul-template is used to monitor the status of services in Consul in real time, and generates Nginx configuration files with its own template file. Nginx uses its own configuration file and second-step generation

May 15, 2023 am 08:19 AM
nginx
How to package Vue project and deploy nginx server

How to package Vue project and deploy nginx server

Usage scenarios: When we often use front-end and back-end separation projects, we will need to package the front-end Vue and then deploy it. 1. Packaging vue projects can actually be packaged directly through the following statement: npmrunbuild’s default packaging situation is as follows: When we need to modify the packaging name and static resource location, we need to configure it accordingly: 1. First create vue in the project root directory The configuration content of the .config.js file is as follows (with cross-domain problem resolution included): module.exports={//Packaging publicPath:'./',outputDir:'test',//Open

May 15, 2023 am 08:16 AM
VUE nginx
How to deploy centos+nginx+uwsgi to launch django project

How to deploy centos+nginx+uwsgi to launch django project

My Django project is called yunwei. The main apps are rabc and web. The entire project is placed under /opt/ as follows: [root@test-codeopt]#lsdjango_virtnginxredisredis-6.2.6yunwei[root@test-codeopt]#lsyunwei/manage.pyrbacstatictemplatesuwsgiwebyunwei[root @test-codeopt]#lsyunwei/uwsgi/cut_log.shloguwsgi.iniuwsgi.loguwsgi.p

May 15, 2023 am 08:13 AM
nginx django uwsgi
How to configure Nginx server for PHP program under Debian system

How to configure Nginx server for PHP program under Debian system

nginx installation method: 1apt network installation modify the source list vi/etc/apt/sources.list#Add the following source debhttp://nginx.org/packages/debian/squeezenginxdeb-srchttp://nginx.org/packages/debian/squeezenginx Update the source list and install nginxapt-keyaddnginx_signing.keyapt-getupdateapt-getinstallnginx2 source code compilation and installation through apt. First install the compilation environment, because ngin

May 15, 2023 am 08:01 AM
PHP nginx debian
What are the Nginx Location directive URI matching rules?

What are the Nginx Location directive URI matching rules?

1. Introduction The location directive is the core configuration of the http module. It receives requests sent by users based on predefined URL matching rules. Based on the matching results, the request is forwarded to the backend server. Illegal requests are directly rejected and return 403. 404, 500 error handling, etc. 2. Location instruction syntax location[=|~|~*|^~|@]/uri/{…} or location@name{…} 3. URI matching mode The location instruction is divided into two matching modes: 1> Ordinary characters String matching: rules starting with = or without leading characters (~) 2> Regular matching: starting with ~ or ~* indicates regular matching, ~*

May 14, 2023 pm 11:58 PM
nginx location uri
How to deploy Node site using Forever and nginx

How to deploy Node site using Forever and nginx

Persistent thread running Generally speaking, we start a server through nodeindex.js on windowcmd. As long as it is not closed, we can always access and call the interface. But on Linux, if you do not operate it for a long time or you want to perform other operations, your node service will be disconnected and users will not be able to access your website. what to do? We can install the forever module to solve it. npminstallforever-g//Global installation of the forever module can be changed from the original startup mode nodeindex.js to foreverstartindex.js. Here are several common commands foreverlist//listed

May 14, 2023 pm 11:52 PM
nginx node forever
How to configure Google reverse proxy on Nginx server

How to configure Google reverse proxy on Nginx server

1. Direct reverse proxy, built using 7ghost source code. The advantage is that it is simple and easy to use. The disadvantage is that it is easily blocked and cannot search for sensitive words. 2. Use SSL encrypted reverse proxy. The advantage is that it is safe and difficult to be blocked. The disadvantage is that it is relatively technical and requires a lot of trouble. Now I will briefly talk about the setting process of the second method. step1: You need to have a Linux overseas vps. step2: Establishment of nginx environment (for convenience, in the tutorial, amh one-click package is used to build the environment. Of course, you can use Junge’s one-click package or pure nginx environment. That is to say, only nginx is installed, and there is no need to install php, sql or anything else. # Yes.) step3: After installing amh, log in

May 14, 2023 pm 11:19 PM
Google nginx
What are the characteristics of LVS, Nginx and HAProxy load balancers in Linux

What are the characteristics of LVS, Nginx and HAProxy load balancers in Linux

LVS features: 1. Strong load resistance, using IP load balancing technology, only for distribution, so LVS itself does not generate much traffic; 2. Good stability and reliability, and has a perfect hot backup plan; (such as: LVS +keepalived) 3. It has a wide range of applications and can load balance all applications; 4. It does not support regular processing and cannot separate dynamic and static. Four commonly used algorithms: 1.rr: round-robin, allocated to back-end servers in turn; 2.wrr: weighted round-robin, allocated according to the load of the back-end server; 3.lc: minimum connection, allocated to the server with the fewest established connections Above; 4.wlc: connection with the smallest weight, allocated according to the processing capacity of the back-end server. You can use ipvsadm–p (pe

May 14, 2023 pm 10:49 PM
Linux nginx haproxy
How to deploy Nginx web service in RHEL8

How to deploy Nginx web service in RHEL8

EnvironmentRedHatEnterpriseLinuxrelease8.0VMwareWorkstationPro14 building steps[root@localhost~]#systemctlstophttpd#Stop httpd to prevent it from affecting Nginx[root@localhost~]#yuminstall-ynginx[root@localhost~]#systemctlstartnginx[root@localhost~]#iptables -F[root@localhost~]#systemctlstopfire

May 14, 2023 pm 10:31 PM
web nginx rhel
How Docker quickly builds a PHP+Nginx+Mysql environment

How Docker quickly builds a PHP+Nginx+Mysql environment

准备创建目录mkdir-p/Users/mwqnice/Documents/Program/phpProgram&&mkdir-p/Users/mwqnice/Documents/Program/docker/php/php7.1.33/conf&&mkdir-p/Users/mwqnice/Documents/Program/docker/php/php7.1.33/logs&&mkdir-p/Users/mwqnice/Documents/Pr

May 14, 2023 pm 10:25 PM
Docker PHP nginx
How to check the compilation parameters of nginx, apache, mysql and php under Linux

How to check the compilation parameters of nginx, apache, mysql and php under Linux

Quickly check the compilation parameters of the server software: 1. nginx compilation parameters: your_nginx_dir/sbin/nginx-v2, apache compilation parameters: catyour_apache_dir/build/config.nice3, php compilation parameters: your_php_dir/bin/php-i|grepconfigure4, mysql compilation Parameters: catyour_mysql_dir/bin/mysqlbug|grepconfigure The following is a complete practical example: View the compilation parameters of nginx: [root@www~]#/usr/lo

May 14, 2023 pm 10:22 PM
Linux nginx apache

Hot tools Tags

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)

vc9-vc14 (32+64 bit) runtime library collection (link below)

Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit

VC9 32-bit

VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version

PHP programmer toolbox full version

Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit

VC11 32-bit

VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use