I have shared a lot of VPS information, all of which are set up by host companies. So can we buy a server ourselves and run VPS to play? Good VPS found an idle server and simply implemented this process. In addition, I am using a free panel. Because some functions are not perfect enough, it is not suitable for sale. Please be aware of this. If it is just for personal use, it is very simple to open it directly using the vzctl command, but there is no graphical interface, which is still a little challenging for novices like good VPS. Therefore, the process I recorded today uses a free panel to open it. and management.
Preparation: 1 independent server (isn’t this nonsense...)
Log in to our server as root. First, we need to install OpenVZ.
1. Turn off SELinux

Edit vim /etc/sysconfig/selinux and change it to:
SELINUX=disabled
SELINUXTYPE=targeted

2. Close the iptables firewall or open the firewall 3000 port
If your server's iptables rules have been restricted, you can temporarily close iptables, or open the 3000 port in advance

iptables -I INPUT -p tcp –dport 3000 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart

3. Start installing OpenVZ

cd /etc/yum.repos.d
wget http://download.openvz.org/openvz.repo
wget http://download.openvz.org/RPM-GPG-Key-OpenVZ
rpm –import RPM-GPG-Key-OpenVZ
yum update
yum install vzkernel

4. Modify the /etc/sysctl.conf file

vi /etc/sysctl.conf

Pay attention to the following parts and refer to the modifications

net.ipv4.ip_forward = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4. conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.default.forwarding = 1

Then it takes effect.

sysctl-p

Restart the server

reboot

5. Install the OpenVZ panel (OpenVZ Web Panel)

wget -O – http://ovz-web-panel.googlecode.com/svn/installer/ai.sh | sh

(Attached is the official installation and upgrade guide: http://code.google.com/p/ovz-web-panel/wiki/Installation)
6. Login panel and management
After the installation is completed, use IP + port 3000 Log in, the default administrative user and password are admin.
openvz-web-panel
The use of the panel is very simple. Friends who are not used to English can also find a Chinese package to play with.


Hong Kong/United States/Domestic High Speed ​​VPS

postid
21708

Leave a Reply