全面講解Linux伺服器(Webmin)

來源:互聯網
上載者:User

對於經常研究Linux的使用者,Linux是一個成熟而穩定的網路作業系統,不過Linux給大家的印象就是一大堆的命令字元以及黑黑的顯示屏。雖然現在Linux案頭版有了長足的進步,介面已和Windows不相上下了.

但對於Linux伺服器來說,恐怕沒有幾個管理員會願意裝X-Windows程式.因此大部份的Linux伺服器都是基於字元介面的.對於剛剛接觸Unix的系統管理員來說,正確高效地完成各種關鍵的系統配置簡直是一件不可能的任務。

即使是一個很有經驗的Unix的管理員,也常常會為某些複雜的設定檔的格式而苦惱。因此擁有一個Unix上的GUI管理工具一直是廣大Unix愛好者的美好願望,當然前題是不用安裝X-Windows程式.Webmin的出現實現了我們的想法.一起去看看這個程式的強大功能吧.

簡介:

Webmin是一個基於Web的Unix系統管理工具。管理員通過瀏覽器訪問Webmin的各種管理功能並完成相應的管理動作。目前Webmin支援絕大多數的Unix系統,這些系統除了各種版本的linux以為還包括:AIX、HPUX、Solaris、Unixware、Irix和FreeBSD等.

一、機器的環境如下:

 
  1. [root@localhost ~]# uname -r  
  2. 2.6.18-028stab057.4  
  3. [root@localhost ~]# cat /etc/redhat-release  
  4. CentOS release 5 (Final)  
  5. [root@localhost ~]# ip ad sh  
  6. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue  
  7. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00  
  8. inet 127.0.0.1/8 scope host lo  
  9. inet6 ::1/128 scope host  
  10. valid_lft forever preferred_lft forever  
  11. 3: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue  
  12. link/void  
  13. inet 127.0.0.1/32 scope host venet0  
  14. inet 172.20.51.154/32 brd 172.20.51.154 scope global venet0:0 

在安裝webmin時要求系統必須有Perl支援,如果啟用ssl的話還須有openssl及perl-net-ssleasy模組的支援

二、檢查模組:

 
  1. [root@localhost ~]# rpm -qa |grep perl  
  2. mod_perl-2.0.2-6.1  
  3. perl-Net-SSLeay-1.32-1.el5.rf  
  4. perl-5.8.8-10  
  5. perl-BSD-Resource-1.28-1.fc6.1  
  6. perl-DBI-1.52-1.fc6  
  7. perl-DBD-MySQL-3.0007-1.fc6  
  8. perl-String-CRC32-1.4-2.fc6  
  9. [root@localhost ~]# rpm -qa |grep openssl  
  10. 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

 
  1. [root@localhost ~]# cd webmin-1.450  
  2. [root@localhost webmin-1.450]# ./setup.sh  
  3. ***********************************************************************  
  4. *            Welcome to the Webmin setup script, version 1.450        *  
  5. ***********************************************************************  
  6. Webmin is a web-based interface that allows Unix-like operating  
  7. systems and common Unix services to be easily administered.  
  8. Installing Webmin in /root/webmin-1.450 ...  
  9. ***********************************************************************  
  10. Webmin uses separate directories for configuration files and log files.  
  11. Unless you want to run multiple versions of Webmin at the same time  
  12. you can just accept the defaults.  
  13. Config file directory [/etc/webmin]: /usr/local/webmin  
  14. Log file directory [/var/webmin]: /usr/local/webmin/log  
  15. ***********************************************************************  
  16. Webmin is written entirely in Perl. Please enter the full path to the  
  17. Perl 5 interpreter on your system.  
  18. Full path to perl (default /usr/bin/perl):  
  19. Testing Perl ...  
  20. Perl seems to be installed ok  
  21. ***********************************************************************  
  22. Operating system name:    CentOS Linux  
  23. Operating system version: 5  
  24. ***********************************************************************  
  25. Webmin uses its own password protected web server to provide access  
  26. to the administration programs. The setup script needs to know :  
  27. - What port to run the web server on. There must not be another  
  28. web server already using this port.  
  29. - The login name required to access the web server.  
  30. - The password required to access the web server.  
  31. - If the webserver should use SSL (if your system supports it).  
  32. - Whether to start webmin at boot time.  
  33. Web server port (default 10000):  
  34. Login name (default admin): root  
  35. Login password:  
  36. Password again:  
  37. Use SSL (y/n): y  
  38. Start Webmin at boot time (y/n): y  
  39. ***********************************************************************  
  40. Creating web server config files..  
  41. ..done  
  42. Creating access control file..  
  43. ..done  
  44. Inserting path to perl into scripts..  
  45. ..done  
  46. Creating start and stop scripts..  
  47. ..done  
  48. Copying config files..  
  49. ..done  
  50. Configuring Webmin to start at boot time..  
  51. Created init script /etc/rc.d/init.d/webmin  
  52. ..done  
  53. Creating uninstall script /usr/local/webmin/uninstall.sh ..  
  54. ..done  
  55. Changing ownership and permissions ..  
  56. ..done  
  57. Running postinstall scripts ..  
  58. ..done  
  59. Attempting to start Webmin mini web server..  
  60. Starting Webmin server in /root/webmin-1.450  
  61. ..done  
  62. ***********************************************************************  
  63. Webmin has been installed and started successfully. Use your web  
  64. browser to go to  
  65. https://localhost.localdomain:10000/  
  66. and login with the name and password you entered previously.  
  67. Because Webmin uses SSL for encryption only, the certificate  
  68. it uses is not signed by one of the recognized CAs such as  
  69. Verisign. When you first connect to the Webmin server, your  
  70. browser will ask you if you want to accept the certificate  
  71. presented, as it does not recognize the CA. Say yes.  
  72. [root@localhost webmin-1.450]# 

六、測試回合
如果在安裝的過程中選取預設的設定並啟用了SSL的話,那麼直接輸入https://ip:10000就可以進去了,我這裡ip是172.20.51.154,所以輸入https://172.20.51.154:10000
輸入你的使用者名稱和密碼,就可以體驗一下了。以上就是圖文方式管理Linux伺服器(Webmin)講解。

  1. 如何進入linux單一使用者模式修改root密碼
  2. Ubuntu Linux系統的資料分割配置
  3. Linux常用軟體包的安裝 外設掛載 磁碟管理
  4. Linux Bash下如何?快速鍵效果
  5. 全面講解Linux安全設定

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.