简介
OpenVZ Web Panel是一个在物理服务器上开OpenVZ虚拟服务器的一个管理软件,可以通过WEB端进行创建和管理OpenVZ服务器。
安装
本方法在Vultr CentOS 6 x64下完美测试通过。且只适用于KVM构架的VPS或独立服务器。
1、关闭SELinux
/usr/sbin/sestatus -v
#如果返回以下信息则为关闭状态
SELinux status: disabled
如果为enabled则为开启状态,这时候需要编辑/etc/sysconfig/selinux文件,添加内容SELINUX=disabled并保存。
2、配置防火墙
/sbin/iptables -I INPUT -p tcp --dport 3000 -j ACCEPT /etc/rc.d/init.d/iptables save /etc/init.d/iptables restart
如果是CentOS 7系统,请参考:CentOS 7开放设置端口及firewall常用命令介绍开放3000端口。
3、安装OpenVZ
配置yum源
cd /etc/yum.repos.d wget http://download.openvz.org/openvz.repo rpm --import http://download.openvz.org/RPM-GPG-Key-OpenVZ yum update -y
安装OpenVZ内核和vzctl、vzquota等工具
yum install vzkernel yum install vzctl vzquota
编辑/etc/sysctl.conf文件,修改下面两个参数
net.ipv4.ip_forward = 1 kernel.sysrq = 1
使修改生效
modprobe bridge lsmod|grep bridge
查看OpenVZ服务状态及开始命令:
service vz status service vz start
4、安装OpenVZ Web Panel
wget -O - https://raw.githubusercontent.com/sibprogrammer/owp/master/installer/ai.sh | sh
安装结束后,使用如下信息登录控制面板
http://<your-ip>:3000
默认用户名和密码均为admin。
使用教程
点击左边的Physical Server可创建系统,服务器模板等。
然后创建系统
创建服务器模板,可设置CPU个数、内存等等。
点击左边的IP Addresses创造IP。
最后可以创建服务器了。
注意:如果创建服务器失败,并提示failed with code 99等错误信息的时候,就编辑/etc/vz/vz.conf文件,设置VE_LAYOUT = simfs即可。
http://www.savh.cn/thread-236.htm
转载请注明:Savh.Cn 发表