Tutorial: Debian and CentOS Linux environment nginx one-click installation script

888u

Last update at :2024-05-27,Edit by888u

Tutorial: Debian and CentOS Linux environmentnginx one-click installation script I collected two one-click packages on the Internet, because sometimes we don’t need php+myslq and other environments, such as Brother Jun’s lnmp environment, we only need nginx is enough, such as upgrading a website or something, or making a file transfer station or something. You only need to install nginx, which saves a lot of VPs memory and resources. Nginx ("engine x") is a high-performance HTTP and reverse proxy server, as well as an IMAP/POP3/SMTP proxy server. Nginx was developed by Igor Sysoev for the Rambler.ru site, the second most visited site in Russia. The first public version 0.1.0 was released on October 4, 2004. It releases its source code under a BSD-like license and is known for its stability, rich feature set, sample configuration files, and low system resource consumption. On June 1, 2011, nginx 1.0.4 was released. Nginx is a lightweight web server/reverse proxy server and email (IMAP/POP3) proxy server, and is released under a BSD-like protocol. It was developed by Russian programmer Igor Sysoev and is used by Rambler (Russian: Рамблер), a large Russian portal website and search engine. Its characteristics are that it occupies less memory and has strong concurrency capabilities. In fact, nginx’s concurrency capabilities do perform better among web servers of the same type. Users of nginx websites in mainland China include: Sina, NetEase, Tencent, etc.

Debian Linux environmentnginx one-click installation script It should be noted that do not use the lnmp one-click script at the same time, because this script has already installed nginx.

1. Download script wget –no-check-certificate https://raw.githubusercontent.com/tennfy/downloadserver/master/downloadserver.sh chmod a+x downloadserver.sh Execute this script: ./downloadserver.sh

2. Instructions for use After installation, download or move the file to the /var/www directory. Assume that the test.zip file is located in the /var/www directory, and the IP of the vps is 1.1.1.1, then the download address of the file is 1.1.1.1/test.zip CentOS Linux environment nginx one-click installation script 1 Update the vps system to the latest version, yum update

2 Download the one-click installation nginx script nginx.sh

3 Run sh nginx.sh

4 If you want the domain name URL to point to the server, you need to add an A record to the server IP address in the domain name management background. Then modify /usr/local/nginx/conf/nginx.conf

server_name xxx.org www.xxx.org;

Change it to your domain name, usually a top-level domain name and a second-level domain name with www. It is recommended to use the VI command to modify it directly in the ssh terminal, and then restart the nginx service: service nginx restart

5 Use filezilla or xftp tools to upload the resources you want to share!

Recommended site searches: anti-complaint server, registered international domain name registered with the Ministry of Industry and Information Technology, Korean cheap server, Chongqing Telecom server hosting, Chinese domain name query, private server rental, Korean server recommendation, ASP free space application IP address search,

Tutorial: Debian and CentOS Linux environment nginx one-click installation script

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码