使用SystemD管理Webmin Server
不仅是Webmin易于安装,它也很容易管理服务。
我们安装的单个包也会妥善处理与init系统的集成,即使只有initv脚本的手段也是如此。
# systemctl status webmin.service ● webmin.service - LSB: web-based administration interface for Unix systems Loaded: loaded (/etc/init.d/webmin; generated) Active: active (running) since Sat 2016-05-02 17:22:34 CEST; 5min ago Docs: man:systemd-sysv-generator(8) Process: 744 ExecStart=/etc/init.d/webmin start (code=exited, status=0/SUCCESS) Tasks: 1 (limit: 2319) Memory: 44.0M CGroup: /system.slice/webmin.service └─984 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf Jan 02 17:22:29 ubuntu-20 systemd[1]: Starting LSB: web-based administration interface for Unix systems... Jan 02 17:22:30 ubuntu-20 perl[747]: pam_unix(webmin:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=root Jan 02 17:22:33 ubuntu-20 webmin[747]: Webmin starting Jan 02 17:22:34 ubuntu-20 systemd[1]: Started LSB: web-based administration interface for Unix systems.
这反过来意味着,我们可以根据需要使用“systemctl start/stop/enable/disable”来管理“webmin.service”,主要是因为它是systemd服务。
从.deb包安装webmin
使用“DPKG”命令:
$ sudo dpkg --install webmin_1.941_all.deb
输出中提示:
Webmin install complete. You can now login to https://ubuntu-20:10000/ as root with your root password, or as any user who can use sudo to run commands as root.
使用Webmin执行完整的系统更新
单击突出显示的红色标志将我们直接带到软件包更新页面,在那里我们可以通过更新我们的系统来解决问题。
默认值是更新全部,这通常是一个好主意。
如何使用浏览器访问WebMin接口
使用浏览器访问“WebMin服务”的登录页面。
URL地址为上面提供的https://ubuntu-20:10000/
。
或者 https://服务器ip:10000/
从命令行下载Webmin .deb包
我们可以转到Webmin官网下载页面并搜索我们需要的包,
获取包的网址,然后使用下面命令下载:
$ wget http://prdownloads.sourceforge.net/webadmin/webmin_1.941_all.deb
安装Webmin所需的依赖项
$ sudo apt-get install libauthen-pam-perl libio-pty-perl apt-show-versions python libapt-pkg-perl python2 python2-minimal python2.7 libpython2-stdlib python2.7-minimal libpython2.7-stdlib libpython2.7-minimal
日期:2020-07-07 20:55:32 来源:oir作者:oir