本文旨在帮助您在全新安装的Ubuntu 18.04 Bionic Beaver上安装Webmin,然后向您介绍一些基本功能,如创建网站和添加用户。Webmin是一款提供基于Web界面的面板来管理您的Ubuntu服务器,而不必通过命令行文件编辑执行所有繁琐且容易出错的操作。 Webmin可以免费用来代替cPanel或Plesk等商业产品的免费替代品。
本教程适用于初学者到中级Linux用户,希望开始运行自己的Web /数据库/电子邮件服务器,并希望通过命令行配置服务使用Web界面。 Windows用户也试图跳转到linux也可能会欣赏到命令行的更多交错过渡,而不是必须在shell外一直做任何事情。
使用Webmin的优点和缺点
Webmin是一个非常糟糕的产品,很难看到将它用于管理任务的缺点。它不会像其他一些商业产品一样多的集成,但是在零美元的低价格下非常棒。
先决条件
安装了Ubuntu 18.04的服务器
不要在已经生产的服务器上安装它!
$ sudo apt-get update && sudo apt-get upgrade
让我们开始吧
添加Webmin Ubuntu存储库
$sudo vi /etc/apt/sources.list ###use vi or your favorite edixxxx like nano
$[sudo] password for user:
sources.list文件的主体
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
### ADD WEBMIN REPOS ###
deb http://download.webmin.com/download/reposixxxxy sarge contrib
添加完储存库后,您可以保存并退出该文件。
现在下载新添加的存储库的PGP密钥
$ wget http://www.webmin.com/jcameron-key.asc
--2019-05-14 02:07:26-- http://www.webmin.com/jcameron-key.asc
Resolving www.webmin.com (www.webmin.com)... 216.105.38.10
Connecting to www.webmin.com (www.webmin.com)|216.105.38.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1320 (1.3K) [text/plain]
Saving to: 'jcameron-key.asc'
jcameron-key.asc 100%[==================================>] 1.29K --.-KB/s in 0s
2019-05-14 02:07:26 (161 MB/s) - 'jcameron-key.asc' saved [1320/1320]
使用以下命令添加密钥文件
$ sudo apt-key add jcameron-key.asc
$ sudo apt-get update ##Update the reposixxxxies
Ign:1 http://download.webmin.com/download/reposixxxxy sarge InRelease
Get:2 http://download.webmin.com/download/reposixxxxy sarge Release [16.9 kB]
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://download.webmin.com/download/reposixxxxy sarge Release.gpg [173 B]
Get:5 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://download.webmin.com/download/reposixxxxy sarge/contrib amd64 Packages [1,383 B]
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [334 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic-security/main Translation-en [120 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [243 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-security/universe Translation-en [139 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [599 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [221 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [933 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [273 kB]
Fetched 3,059 kB in 2s (1,438 kB/s)
Reading package lists... Done
我们实际安装webmin及其依赖项
$ sudo apt-get install webmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apt-show-versions libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl
libpython-stdlib libpython2.7-minimal libpython2.7-stdlib perl-openssl-defaults python
python-minimal python2.7 python2.7-minimal
Suggested packages:
python-doc python-tk python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
apt-show-versions libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl
