文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>全面讲解Linux服务器

全面讲解Linux服务器

时间:2010-11-03  来源:mydear

对于经常研究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)讲解。


排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载