Last update at :2024-01-08,Edit by888u
VpsAdd tutorial: 64M memory chick builds super resource-saving Nginx/PHP/MySql environment
If your vps has a small memory and you want to build a small blog or something in the vps, including dz, wp, etc., you generally need a php+mysql environment. The one introduced today should be suitable for you. Directly available script
This tutorial applies to 32-bit Debian6-7 system Ubuntu corresponds to the period version system. Please do not use 64-bit, because 64-bit takes up more memory and may cause installation failure. You only have 64M, so just 32 bits, whatever bike you want.
This script will perform the following operations
Remove redundant packages (apache2, sendmail, bind9, samba, nscd, etc.) and install the basic components required for a lightweight HTTP(S) web server:
dropbear (SSH) iptables (firewall) dash (replaces bash) syslogd MySQL (version 5.5, no Innodb) PHP-FPM (v5.3 version, with APC) exim4 (lightweight email service) nginx (v1.2 version) vim, nano, mc, htop, iftop & iotop
There is no phpmyadmin because it takes up too many resources.
Installation script wget –no-check-certificate https://raw.github.com/Xeoncross/lowendscript/master/setup-debian.sh
chmod +x setup-debian.sh
./setup-debian.sh dotdeb # If the system is Ubuntu, this step can be omitted
./setup-debian.sh system
./setup-debian.sh dropbear port #Run dropbear and set the SSH port. If you don’t want to modify it, fill in 22. Demonstration command: ./setup-debian.sh dropbear 22
./setup-debian.sh iptables port #Set the firewall open port. You must first open the SSH port, which must be consistent with the dropbear port above. Demonstration command: ./setup-debian.sh iptables 22
./setup-debian.sh mysql
./setup-debian.sh nginx
./setup-debian.sh php
./setup-debian.sh exim4
./setup-debian.sh site domain name #This step is to add a virtual space, which is the lnmp vhost add of the regular script. Demonstration command: ./setup-debian.sh site axo.pw
./setup-debian.sh mysqluser domain name #Set the database user name. It is recommended to fill in the domain name
./setup-debian.sh wordpress domain name #Install wordpress
./setup-debian.sh 3proxy 3128
./setup-debian.sh 3proxyauth username password #Set a username and password you like
Just execute it sentence by sentence.
How to use Includes a sample nginx configuration file for a PHP site. You can create a basic website shell (full nginx vhost) using the command like this: ./setup-debian.sh site site domain name demonstration: ./setup-debian.sh site axo.pw
Notes When running an iptables or dropbear installation, the SSH port must be specified. Port 22 is the default. It is recommended that you customize a port. Finished.
Source: http://axo.pw/index.php/archives/56/
Recommended site searches: .net virtual host, domain name provider, foreign PHP space, 100m virtual host, cn domain name registration, free US host, website IP address query, Hong Kong server purchase, rental virtual host server purchase,
发表评论