全面講解Linux服務(wù)器(Webmin)
對于經(jīng)常研究Linux的用戶,Linux是一個成熟而穩(wěn)定的網(wǎng)絡(luò)操作系統(tǒng),不過Linux給大家的印象就是一大堆的命令字符以及黑黑的顯示屏。雖然現(xiàn)在Linux桌面版有了長足的進(jìn)步,界面已和Windows不相上下了.
但對于Linux服務(wù)器來說,恐怕沒有幾個管理員會愿意裝X-Windows程序.因此大部份的Linux服務(wù)器都是基于字符界面的.對于剛剛接觸Unix的系統(tǒng)管理員來說,正確高效地完成各種關(guān)鍵的系統(tǒng)配置簡直是一件不可能的任務(wù)。
即使是一個很有經(jīng)驗(yàn)的Unix的管理員,也常常會為某些復(fù)雜的配置文件的格式而苦惱。因此擁有一個Unix上的GUI管理工具一直是廣大Unix愛好者的美好愿望,當(dāng)然前題是不用安裝X-Windows程序.Webmin的出現(xiàn)實(shí)現(xiàn)了我們的想法.一起去看看這個程序的強(qiáng)大功能吧.
簡介:
Webmin是一個基于Web的Unix系統(tǒng)管理工具。管理員通過瀏覽器訪問Webmin的各種管理功能并完成相應(yīng)的管理動作。目前Webmin支持絕大多數(shù)的Unix系統(tǒng),這些系統(tǒng)除了各種版本的linux以為還包括:AIX、HPUX、Solaris、Unixware、Irix和FreeBSD等.
一、機(jī)器的環(huán)境如下:
- [root@localhost ~]# uname -r
- 2.6.18-028stab057.4
- [root@localhost ~]# cat /etc/redhat-release
- CentOS release 5 (Final)
- [root@localhost ~]# ip ad sh
- 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
- link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
- inet 127.0.0.1/8 scope host lo
- inet6 ::1/128 scope host
- valid_lft forever preferred_lft forever
- 3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
- link/void
- inet 127.0.0.1/32 scope host venet0
- inet 172.20.51.154/32 brd 172.20.51.154 scope global venet0:0
在安裝webmin時要求系統(tǒng)必須有Perl支持,如果啟用ssl的話還須有openssl及perl-net-ssleasy模塊的支持
二、檢查模塊:
- [root@localhost ~]# rpm -qa |grep perl
- mod_perl-2.0.2-6.1
- perl-Net-SSLeay-1.32-1.el5.rf
- perl-5.8.8-10
- perl-BSD-Resource-1.28-1.fc6.1
- perl-DBI-1.52-1.fc6
- perl-DBD-MySQL-3.0007-1.fc6
- perl-String-CRC32-1.4-2.fc6
- [root@localhost ~]# rpm -qa |grep openssl
- openssl-0.9.8b-8.3.el5
三、安裝模塊:
[root@localhost ~]# rpm -ivh perl-Net-SSLeay-1.32-1.el5.rf.i386.rpm
這個rpm包可以在http://dag.wieers.com/rpm/packages/perl-Net-SSLeay/這個中下載
四、解壓webmin
[root@localhost ~]# tar xvfz webmin-1.450.tar.gz
五、安裝webmin
- [root@localhost ~]# cd webmin-1.450
- [root@localhost webmin-1.450]# ./setup.sh
- ***********************************************************************
- * Welcome to the Webmin setup script, version 1.450 *
- ***********************************************************************
- Webmin is a web-based interface that allows Unix-like operating
- systems and common Unix services to be easily administered.
- Installing Webmin in /root/webmin-1.450 ...
- ***********************************************************************
- Webmin uses separate directories for configuration files and log files.
- Unless you want to run multiple versions of Webmin at the same time
- you can just accept the defaults.
- Config file directory [/etc/webmin]: /usr/local/webmin
- Log file directory [/var/webmin]: /usr/local/webmin/log
- ***********************************************************************
- Webmin is written entirely in Perl. Please enter the full path to the
- Perl 5 interpreter on your system.
- Full path to perl (default /usr/bin/perl):
- Testing Perl ...
- Perl seems to be installed ok
- ***********************************************************************
- Operating system name: CentOS Linux
- Operating system version: 5
- ***********************************************************************
- Webmin uses its own password protected web server to provide access
- to the administration programs. The setup script needs to know :
- - What port to run the web server on. There must not be another
- web server already using this port.
- - The login name required to access the web server.
- - The password required to access the web server.
- - If the webserver should use SSL (if your system supports it).
- - Whether to start webmin at boot time.
- Web server port (default 10000):
- Login name (default admin): root
- Login password:
- Password again:
- Use SSL (y/n): y
- Start Webmin at boot time (y/n): y
- ***********************************************************************
- Creating web server config files..
- ..done
- Creating access control file..
- ..done
- Inserting path to perl into scripts..
- ..done
- Creating start and stop scripts..
- ..done
- Copying config files..
- ..done
- Configuring Webmin to start at boot time..
- Created init script /etc/rc.d/init.d/webmin
- ..done
- Creating uninstall script /usr/local/webmin/uninstall.sh ..
- ..done
- Changing ownership and permissions ..
- ..done
- Running postinstall scripts ..
- ..done
- Attempting to start Webmin mini web server..
- Starting Webmin server in /root/webmin-1.450
- ..done
- ***********************************************************************
- Webmin has been installed and started successfully. Use your web
- browser to go to
- https://localhost.localdomain:10000/
- and login with the name and password you entered previously.
- Because Webmin uses SSL for encryption only, the certificate
- it uses is not signed by one of the recognized CAs such as
- Verisign. When you first connect to the Webmin server, your
- browser will ask you if you want to accept the certificate
- presented, as it does not recognize the CA. Say yes.
- [root@localhost webmin-1.450]#
六、測試運(yùn)行
如果在安裝的過程中選取默認(rèn)的設(shè)置并啟用了SSL的話,那么直接輸入https://ip:10000就可以進(jìn)去了,我這里ip是172.20.51.154,所以輸入https://172.20.51.154:10000
輸入你的用戶名和密碼,就可以體驗(yàn)一下了。以上就是圖文方式管理Linux服務(wù)器(Webmin)講解。
【編輯推薦】