社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
【小白入门 通俗易懂】2021韩顺平 一周学会Linux
linux 可视化管理 webmin
https://www.bilibili.com/video/BV1Sv411r7vd?p=137
下载 webmin 网址
http://download.webmin.com/download/yum/
-----不可以安装在centos7.6 上面
wget http://download.webmin.com/download/yum/webmin-1.973-1.noarch.rpm
-----可以安装在centos7.6 上面
wget http://download.webmin.com/download/yum/webmin-1.700-1.noarch.rpm
[root@hell39 webmin]# cd /opt
[root@hell39 opt]# ll
total 195200
-rw-r--r--. 1 root root 0 Mar 26 19:45 boot.bak0.bz2
drwx--x--x. 4 root root 28 Mar 13 19:17 containerd
-rw-r--r--. 1 root root 136802912 Mar 26 19:50 dump_sda1
drwxr-xr-x. 2 root root 6 Oct 30 2018 rh
drwxr-xr-x. 2 root root 182 Feb 19 07:38 software
-rw-r--r--. 1 root root 22287607 Aug 11 2014 webmin-1.700-1.noarch.rpm
-rw-r--r--. 1 root root 40786680 Mar 7 14:26 webmin-1.973-1.noarch.rpm
-------开始安装
[root@hell39 opt]# rpm -ivh webmin-1.700-1.noarch.rpm
--------重置 webmin 用户 root 密码为 test
[root@hell39 opt]# /usr/libexec/webmin/changepass.pl /etc/webmin/ root test
Updated password of Webmin user root
---------本机测试发现 6666 被FF 禁用了,所以改为 8081
--------- 更改webmin 端口号为 8081
[root@hell39 opt]# vim /etc/webmin/miniserv.conf
port=8081 ------------------ 修改点1
root=/usr/libexec/webmin
...
...
logout=/etc/webmin/logout-flag
listen=8081 ----------------- 修改点2
denyfile=.pl$
log=1
启动 webmin
[root@hell39 opt]# /etc/webmin/start
Starting Webmin server in /usr/libexec/webmin
Pre-loaded WebminCore
访问不了需要打开防火墙某个端口 8081
-------查看防火墙状态
[root@hell39 opt]# systemctl status firewalld
鈼[0m firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: active (running) since Fri 2021-03-26 20:45:18 PDT; 58min ago
Docs: man:firewalld(1)
...
...
--------- 查看已经开放的端口号
[root@hell39 opt]# firewall-cmd --zone=public --list-ports
6666/tcp
---- 增加8081为开放端口
[root@hell39 opt]# firewall-cmd --zone=public --add-port=8081/tcp --permanent
success
-----重新加载防火墙配置
[root@hell39 opt]# firewall-cmd --reload
success
------查看哪些端口开放了
[root@hell39 opt]# firewall-cmd --zone=public --list-ports
6666/tcp 8081/tcp
[root@hell39 opt]#
输入 root test 可以正常访问了
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!