虚拟主机安装笔记

此文用以记录虚拟主机的安装步骤及相关命令。

1. Webmin

echo “[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1
gpgcheck=1
gpgkey=http://www.webmin.com/jcameron-key.asc” >/etc/yum.repos.d/webmin.repo;
yum -y install webmin

2.Virtualmin

wget http://software.virtualmin.com/gpl/scripts/install.sh

3. FreeRadius

yum install freeradius freeradius-mysql freeradius-utils

若出现 Ignoring request to authentication address * port 1812 from unknownclient

则需要将/etc/raddb/clients.conf 中的client localhosdt下的ipaddr修改为服务器ip,而非127.0.0.1

4. DaloRadius

yum install php-pear-DB

5. Firewall配置

firewall-cmd –zone=public –add-port 10000/tcp –permanent

firewall-cmd –zone=public –add-service mysql –permanent

firewall-cmd –list-all-zone

添加转发

firewall-cmd permanent add-masquerade

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注