×

webmin Installation

hqy hqy 发表于2019-04-02 15:22:28 浏览2027 评论0

抢沙发发表评论

pkg (FreeBSD)

Installation of Webmin on FreeBSD is simple using the pkg system. This should be done as a root user and will also work on FreeNAS inside of a Jail. If installing in a FreeNAS jail, use passwd to set a root password before installation. This should work on any FreeBSD based system using pkg.

As root, run:

pkg update
pkg install webmin
/usr/local/lib/webmin/setup.sh
echo "webmin_enable="YES"" >> /etc/rc.conf
/usr/local/etc/rc.d/webmin start

apt-get (Debian/Ubuntu/Mint)

You can add the Webmin repository (webmin-repo) and use Jamie Cameron's key to install and maintain the latest version of Webmin/Usermin. The commands below add the Webmin repository to your system and install the latest version of Webmin and all necessary packages.

Just input or copy and paste the text below and hit Enter/Return:

sudo sh -c 'echo "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list'
wget -qO - http://www.webmin.com/jcameron-key.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install webmin

yum (CentOS/RedHat/Fedora)

You can add the Webmin repository (webmin-repo) and use Jamie Cameron's key to install and maintain the latest version of Webmin/Usermin. The commands below add the Webmin repository and the corresponding GPG key to your system and install the latest version of Webmin. Yum will resolve all dependencies.

Just input or copy and paste the text below and hit Enter/Return:

(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)

zypper (SUSE)

Very similar to the yum commands. You can add the Webmin repository here, too, and the command to import Jamie Cameron's key is the same. Just input or copy and paste the text below and hit Enter/Return:

(echo "[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1" >/etc/zypp/repos.d/webmin.repo;
rpm --import http://www.webmin.com/jcameron-key.asc
zypper -n install openssl libopenssl-devel
zypper -n install perl perl-Net-SSLeay perl-Crypt-SSLeay
zypper -n install webmin)

At least in openSUSE 13.2 and from SLES 11 on, the development package for openssl is named libopenssl-devel. In older versions, this may still be named openssl-devel.

Windows

Post installation

Once Webmin is installed and runing, you can access Webmin via the IP or web address you supplied or were given by the system. Specify port 10000.

Example:

https://192.168.1.100:10000/

If the Webmin server doesn't respond, you might need to adjust firewall settings to allow port 10000.

IPTables

Make sure the Linux Firewall allows port 10000.

iptables-save > /tmp/tabsav
vi /tmp/tabsav
iptables-restore < /tmp/tabsav

Use the commands above to make the firewall rules look like this:

# Generated by iptables-save v1.4.7 on Thu Sep 26 00:02:49 2013
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [3044:1198306]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 10000 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Thu Sep 26 00:02:49 2013

Firewalld

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


打赏

本文链接:https://www.kinber.cn/post/467.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

 您阅读本篇文章共花了: 

群贤毕至

访客