1. Configure the IP address
Vi/etc/sysconfig/network-scripts/ifcfg-eth0
Onboot=yes
Nm_controlled=yes
bootproto=static
dns1=223.5.5.5
Ipv6init=no
Userctl=no
ipaddr=111.41.0.11
netmask=255.255.192.0
gateway=111.41.0.254
2. Install SSH
Yum Install Openssh-server
Service sshd Restart
netstat-antp | grep sshd
Vi/etc/sysconfig/iptables
chkconfig--list sshd
3. Installing wget
yum-y Install wget
4. Download LNMP One-click installation package
mkdir Test
cd/test
wget http://soft.vpser.net/lnmp/lnmp1.3-full.tar.gz
tar xzf lnmp1.3-full.tar.gz
CD Lnmp1.3-full
./install.sh LNMP Installation Lnmp
./install.sh Lamp Installation Lamp
./install.sh Lnmpa Installation Lnmpa
5. Set up MySQL remote connection
mysql>create database user;
mysql>grant all privileges in user.* to [email protected] '% ' identified by ' namepwd ' with GRANT OPTION;
Mysql>flush privileges;
rules for removing the drop 3306 port in 6.iptables
vi/etc/sysconfig/iptables 3306 drop changed to 3306 accept
Service iptables Restart
Configure the environment after Linux has installed the system.