Webmin 的安装及使用

wapsky 官方认证帐号

2020-12-01 10:00

Webmin面板像kloxo面板一样是免费的。(好像kloxo只支持centos;但webmin支持centos,也支持debian)
wget -c http://prdownloads.sourceforge.net/webadmin/webmin-1.480-1.noarch.rpm
rpm -ivh webmin-1.480-1.noarch.rpm
Preparing…                ########################################### [100%]
Operating system is CentOS Linux
1:Webmin                 ########################################### [100%]
Webmin install complete. You can now login to http://yourdomain.com:10000
as root with your root password.
注意:你的vps的内存需至少有256mb才行。
-------------------------------------------------------------------------------
Installing webmin on Debian vps If you are using the DEB version of webmin, first download the file: http://downloads.sourceforge.net ... ebmin_1.500_all.deb or: http://prdownloads.sourceforge.net/webadmin/webmin_1.500_all.deb and then run the command :
dpkg --install webmin_1.500_all.deb
The install will be done automatically to /usr/share/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/. Or if accessing it remotely, replace localhost with your system's IP address.
If Debian complains about missing dependencies, you can install them with the command :
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
If you are installing on Ubuntu and the apt-get command reports that some of the packages cannot be found, edit /etc/apt/sources.list and make sure the lines ending with universe are not commented out.
Some Debian-based distributions (Ubuntu in particular) don't allow logins by the root user by default. However, the user created at system installation time can use sudo to switch to root. Webmin will allow any user who has this sudo capability to login with full root privileges.
If you want to connect from a remote server and your system has a firewall installed, see this page for instructions on how to open up port 10000.
from: http://www.webmin.com/deb.html
http://www.webmin.com/download.html
--------------------------------------
Linux下Webmin图文教程 管理Linux有很多方法命令行、X-windows、Telnet、SSH但你用过WEBAdmin吗?正如其名它是个用WEB来管理Linux/UNIX的工具。

一、介绍
Webmin 是一个基于 Web 的 Unix 系统管理界面。借助任何支持表格和表单的浏览器(和 File Manager 模块所需要的 Java),您就可以设置用户帐号、Apache、DNS、文件共享,等等。Webmin 包括一个简单的 Web 服务器和许多 CGI 程序,这些程序可以直接修改系统文件,比如 /etc/inetd.conf 和 /etc/passwd 。Web 服务器和所有的 CGI 程序都是用 Perl 5 编写的,没有使用任何非标准 Perl 模块。”
Webmin 事实上可以运行于所有的类 Unix 平台,包括 Linux、AIX、HPUX、Solaris、OS X,等等。它具有一个 Web 前端,可以完成 Linux 中的诸多管理任务。它可以以本地方式或者远程方式运行于任意图形化浏览器中。Webmin 使用 SSL 来保证安全,防止侦听。当您学习 Linux 管理时,Webmin 将为您节省很多时间。Webmin 还可以帮您完成那些还不能自动执行的繁琐的任务。

二、安装
首先检查您的系统上是否已经安装了 Webmin。在文本终端中输入:
rpm -q webmin
即便已经安装了 Webmin,它的版本也可能会低于当前可用的最新版本。在这种情况下,您可以使用下面的命令来对它进行升级或者重新安装:
rpm -Uvh “rpm -q webadmin得到的文件名”.rpm
如果你的linux没有自带,可以从http://www.webmin.com下载,
1、tar文件安装:
 #tar zxvf webmin-***.tar.gz
#cd webmin-***
#./setup.sh

在安装的时候会询问你安装目录,可采用默认值,webmin的管理用户名和密码,还要求指明你所使用的操作系统。
2、RPM文件安装
 #rpm -ivh  webmin-***.rpm
当 Webmin 安装后,默认是启用的。但是这样安装并没有启用 SSL。SSL 需要安装一个称为 Net::SSLeay 的 Perl 模块。如果不装这个模块,Webmin 只有从本地控制台运行时才是安全的。

三、使用

安装好webmin后,就可以通过浏览器来管理linux了(在此之前你要保证apache服务器已正常工作。)
打开firefox浏览器,输入http://localhost:10000或者http://127.0.0.1:10000回车,就可以看到webmin的登录页面。输入webmin管理员的用户名和密码,然后单击Login就登录了。(如果是以rpm包安装的webmin的管理员为root 密码为root的密码)webmin默认为英文界面;
http://hiphotos.baidu.com/gameday/pic/item/5098911bf309be4b8718bf51.jpg

单击webmin configuration->Language,在Display in language中选Simplified Chinese(ZH-CN)单击Change Language确定,将webmin设置为简体中文
http://hiphotos.baidu.com/gameday/pic/item/78558bece94a257563d09f52.jpg
System窗体可 以进行操作系统的总体配置。在这里,您可以配置文件系统、用户、组和系统通常的引导行为。您可以控制系统中运行的服务,通过选择 Bootup 和 Shutdown 图标来决定它们是否自动启动。不过,对那些服务的具体配置是由 Servers 窗体完成的。尤其要注意“Software Package”工具,它可以方便地查看您系统中已经安装的软件包,以及到发行版本升级库和 rpmfind.net 的接口,rpmfind.net 是 Internet 上的一个公用的 RPM 库(参阅 参考资料中的链接)。Servers窗体可以对您可 能会在系统中运行的各个服务进行配置。BIND 和 DHCP 工具非常便捷。同时 Samba 工具也很好用,可以为 Windows 和其他客户机配置文件和打印机的共享。SMTP 服务器 Sendmail 以其极复杂的配置文件而出名。Webmin Sendmail 工具同样为您解决了这一问题。Networking 窗体所提供的工具可以用来配置网络硬件和进行一些复杂的网络控制,比如防火墙。所有的工具都要去修改标准的配置文件,因此您在 Webmin 中所做的任何工作都可以由相对应的控制台工具来完成。Hardware 窗体用于配置物理设备,主要是打印机和存储设备。特别值得关注的是逻辑卷管理 (Logical Volume Management,LVM) 工具,它可以帮您可视化地管理您的 Linux 系统上的动态卷。Cluster 窗体中 的工具用于管理集群系统。 集群在这里指的是其配置需要同步的一组相关系统。系统可以在进行系统故障检测时同步用户、组、软件包等配置。这些工具可以帮助您构建热错误恢复系统和其他 需要同步的系统。集群是一个高级的主题,可能需要安装一些您的 Linux 发行版本没有自带的软件包。Others 窗体中 有各种各样的工具,您可能会发现它们很有用。“SSH/Telnet Login”和“File Manager”工具需要 applet 支持,只有在您的浏览器上安装了 JRE 以后才可以运行。“Perl Modules”工具可以使您紧跟 Perl 模块的发展,它可以直接连接到Internet 上的 CPAN。“File Manager”工具为服务器的文件系统提供了一个像浏览器一样的视图,如果您是在远程工作,那么不通过您的工作站的内存就可以对文件进行移动和复制。 “SSH/Telnet Login” 工具是一个远程 shell 控制台,使您可以通过浏览器进入控制台。

四、总结
Webmin 是一个用 Perl 编写的基于浏览器的管理应用程序。Webmin 是可扩展的,除了用于 Linux 之外,还可以用于其他类 Unix 操作系统。安装完成后,可以在本地或者远程浏览器通过一个特定的端口,通常是 10000,来进入 Webmin。它具有可以指向和点击的界面,可以完成各种 Linux 管理任务,包括用户管理、网络防火墙和网络设备的配置。
Webmin 安装和使用都是免费的,它是一个很好的管理 Linux 环境的工具,如果您以前用的是 Windows 的图形化管理工具。Webmin 工具是基于控制台的工具的前端,因此使用这两种工具进行配置效果是一致的,它们都可以可靠地完成管理任务。
使用webmin管理Linux服务器 通过本文,您将了解通过安装配置webmin,在linux服务器上如何新增及管理FTP用户权限、虚拟主机及mysql数据库等内容。
一、安装配置webmin

1)先检查你的apache ftp mysql 是否已安装,没有如下安装
yum –y install httpd httpd-devel httpd-manual httpd-tools #安装apache
yum –y install mysql mysql-connector-odbc mysql-devel mysql-lib mysql-server #安装apache
yum -y install php php-perl php-domxml php-gd php-imap php-mbstring php-xmlrpc php-xml php-devel php-pecl-Fileinfo php-pecl-memcache pcre-devel php-gettext php-domxml php-gmp gmp gmp-devel php-ftp php-mcrypt php-date php-libxml php-mysql php-zlib php-snmp # 这安装php常用组件
yum –y install vsftpd #安装vsftpd
2)到 www.webmin.com.cn 官方网站下载最新rpm 安装方式
rpm –ivh webmin-xxxxx.rpm
rpm –Uvh webmin-xxxxx.rpm #更新安装
3)yum 安装方式 yum –y install webmin
二、webmin 配置和修改
打开 https://XX.XX.XX.XX:10000/ 使用root 身份登陆后,
Webmin? Change Language and Theme ? webmin Ul Language 自定议为?简体中文?Make Changes 更改, 重新打开,如图
http://hiphotos.baidu.com/gameday/pic/item/db7161161c78091821a4e953.jpg

三、配置vsftp
ssh 登陆好,找到如下内容并修改,因为vsftp没有集合在webmin中,
vi /etc/vsftpd/vsftpd.conf;
=======================================
vsftpd.conf Sample:
=======================================
anonymous_enable=NO #禁止匿名登入
local_enable=YES
write_enable=YES
local_umask=022 #755
dirmessage_enable=YES
connect_from_port_20=YES
xferlog_enable=YES (若要使vsftpd.log生效,一定要打开此项)
xferlog_std_format=YES
xferlog_file=/var/log/vsftpd.log (同下,任选一项)
vsftpd_log_file=/var/log/vsftpd.log (同上,任选一项)
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES

pam_service_name=vsftpd
userlist_enable=YES

listen=YES
tcp_wrappers=YES
use_localtime=YES
保存退出
echo \"/bin/false\" >>/etc/shells
chkconfig vsftpd on
servcie vsftpd start #启动vsftpd
四、开FTP用户
打开webmin 登陆进去,因为本地配置了VSFTPD,和系统用户集成在一起。
打开系统->用户与群组->创建新用户,显示如下图,按图中红色圈注部分进行修改,未圈注部分使用默认选项
http://hiphotos.baidu.com/gameday/pic/item/5098911bf30abe4b8718bf5c.jpg

填写完后,将滚动条拉至下方,在左下角点击“新建”按扭
至此,FTP用户创建成功,可以使用FTP工具连接测试了.
同样操作,删除FTP用户需要在列表中找到testcomcn用户,选取后点击删除
五、apache
1、配置
依次展开“服务器->apache服务器->Glbal configuration->编辑配置文件”
http://hiphotos.baidu.com/gameday/pic/item/60ae89188e77925534fa415c.jpg

按如下修改完成后保存
a.AddDefaultCharset 前加 # ,取消由apache 决定网页编码.
b.DirectoryIndex 后填加其它的index file, index优先级由排列先后顺序决定。
如[s:3]irectoryIndex index.html index.htm index.php index.php3 index.cgi index.pl
c.取消 #AddHandler cgi-script .cgi 前的 # ,并加 .pl 以支持 cgi , pl。
如:AddHandler cgi-script .cgi .pl
d.在 UserDir disable 前加 #
取消 # UserDir public_html 前的 # e.) 找到#ServerName www.example.com:80,改为你ServerName IP地址
保存:点击右上角->应用修改.
2 开虚拟主机用户
依次打开:服务器->apache服务器->Create virtual host,如图,按红色圈注部分进行修改
http://hiphotos.baidu.com/gameday/pic/item/fd64d21ff5756ba7e1fe0b5d.jpg

/home/hosting/testcomcn #是我们开vsftp是的路径,我们上传的网站在这里,所以apache也要指到这里
至此新建虚拟主机用户步骤完成,可上传文件并打开网站进行测试。(注意域是否已指该主机)
3 检查现有网站(修改/删除)依次打开:服务器->apache服务器->Existing virtual hosts n->点击站点进行修改/删除操作, 点击站点名称进入修改选项,选取站点按删除按扭将会删除该站点信息。
http://hiphotos.baidu.com/gameday/pic/item/ef92147a9de90cbf2f73b35e.jpg

点击站点后显示界面如下图,可按自已需要进行相应修改。
http://hiphotos.baidu.com/gameday/pic/item/8c57c51153b13094a6ef3f5f.jpg

六、新建mysql数据库和mysql用户
1 新建mysql数据库
依次打开:服务器->MySQL 数据库服务器->创建新的数据库,如下图所示 (只修改红色框标注区域即可)
http://hiphotos.baidu.com/gameday/pic/item/6b8259f4578e248bf3d38558.jpg

2 新建mysql用户,关联数据库权限
1、新建mysql用户
依次打开:服务器->MySQL 数据库服务器,点击“全局选项中的用户权限”,如下图所示:
http://hiphotos.baidu.com/gameday/pic/item/c08b6e0836665bc70b7b8259.jpg

弹出mysql用户权限例表,点击“创建新用户”选项(如图),对红框中标注内容按需要进行修改,注意别对“权限”选项的内容进行选择。修改完成后点击“新建”
http://hiphotos.baidu.com/gameday/pic/item/2b2dfb33ebf49711ac4b5f59.jpg

2、关联数据库权限
依次打开:服务器->MySQL 数据库服务器,点击“全局选项中的据库权限”,如下图所示:
http://hiphotos.baidu.com/gameday/pic/item/80ae9a99ff630a5a6f068c5b.jpg

进入后出现如下图界面
http://hiphotos.baidu.com/gameday/pic/item/d08b6890c84f35dfa877a44d.jpg
点击“创建新的数据库权限”进入如下图界面
http://hiphotos.baidu.com/gameday/pic/item/9f89518de93b7f40b21bba4d.jpg
数据库选取新建的数据“testcomcn”,用户也选取新建的“testcomcn”,主机选择“localhost”,并将权限列表全部选择。
点击“新建 ”
至此,新建mysql用户权限及关联数据库权限完成,可以进行测试数据连接等工作了。
当然,要提高mysql性能,还要对my.cnf 进配置.
from: http://www.w-link.org.cn/post/81.html
-------------------------------------------
What is Usermin? Usermin is a web-based interface for webmail, password changing, mail filters, fetchmail and much more. It is designed for use by regular non-root users on a Unix system, and limits them to tasks that they would be able to perform if logged in via SSH or at the console. See the standard modules page for a list of all the functions built into Usermin.
Who can use Usermin? Most users of Usermin are sysadmins looking for a simple webmail interface to offer their customers. Unlike most other webmail solutions, it can be used to change passwords, read email with no additional servers installed (like IMAP or POP3), and setup users' Procmail configurations for forwarding, spam filtering and autoreponders.
Usermin also provides web interfaces for viewing and managing data in MySQL and PostgreSQL databases, editing Apache .htaccess configuration files, and running commands on the server. The administrator has full control over which of these modules are available to users.
Usermin and Webmin integration By far the easiest way to configure Usermin is via the Usermin Configuration module in Webmin. All functionality can be managed via a browser, and because both products come from the same developer the management user interface is always up to date.
from: http://www.webmin.com/usermin.html
------------------------------------------------
What is Virtualmin? It is a Webmin module for managing multiple virtual hosts through a single interface, like Plesk or Cpanel. It supports the creation and management of Apache virtual hosts, BIND DNS domains, MySQL databases, and mailboxes and aliases with Sendmail or Postfix. It makes use of the existing Webmin modules for these servers, and so should work with any existing system configuration, rather than needing it's own mail server, web server and so on.
Virtualmin can also create a Webmin user for each virtual server, who is restricted to managing just his domain and its files. Webmin's existing module access control features are used, and are set up automatically to limit the user appropriately. These server administrators can also manage the mailboxes and mail aliases in their domain, via a web interface that is part of the module.
What License is Virtualmin Under? Two versions of Virtualmin exist, under separate licenses:
Virtualmin GPL This is the freely downloadable version, licensed under the GPL. It is under active development, but does not contain all of the features of the Pro version.
Virtualmin Pro This is the commerical version that you have to pay for. It includes numerous features not in the GPL version (like script installers, resellers, HTML editor, an improved UI, mobile access, spam and virus filtering). Customers also get support, a simplified complete installation script and access to a repository of updated packages. To learn more, visit the Virtualmin Pro website.
Both the Pro and GPL versions are built from the same codebase, so all bugfixes and some new features go into both of them.
from: http://www.webmin.com/virtualmin.html




4826 次浏览 0 条评论 收藏

说说我的看法

登录后可以发表评论 登录
作者信息

wapsky

官方认证帐号

450
贴子
5
粉丝
热门贴子

免费试用


咨询热线


在线咨询