歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> BSD >> 在FreeBSD下安裝WebMin管理

在FreeBSD下安裝WebMin管理

日期:2017/2/28 11:26:40   编辑:BSD


今天我們一起來學習一下用WebMin來管理FreeBSD,實現GUI遠程操作管理。
功能:可以用浏覽器來管理FreeBSD系統,一個字“爽”。
安裝需求:PREL 5.0以上。
安裝環境:FreeBSD+Apache2.0+PHP5.0+MYQL
安裝示范版本:WebMin-1.260
一、安裝過程:
1.將下載來的webmin-1.260.tar.gz上傳到/home/user/app目錄裡,以 tar zxvf webmin-1.260.tar.tar 解開壓縮。(最好不要把webmin-1.260.tar.gz放在/tmp目錄,如果到時WebMin哪天起動不了了,不要來找我喲!^_^)
2.解開壓縮後,我們是不是發現app目錄下面是不是多出來webmin-1.260對我們要的就是它啦!文件名這麼長,太麻煩了,好吧!那我們先改名方便第一嘛!mv webmin-1.260 webmin改好了我們就可以用cd webmin訪問了,進入目錄後執行./setup.sh.
4.接下來只要逐一回答問題就可以完成安裝手續了,框線內有顏色的部份setup.sh問的問題,中文部份是我的說明。通常采用缺省值就可以,需要修改的地方我會提出建議。
***********************************************************************
* Welcome to the Webmin setup script, version 1.260 *
***********************************************************************
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.260 ...
***********************************************************************
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安裝目錄(我這裡是放在了/usr/local/webmin目錄裡)
Log file directory [/var/webmin]: ###日志存放目錄
***********************************************************************
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): ###prel 安裝目錄
Testing Perl ...
Perl seems to be installed ok
***********************************************************************
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.
- The hostname of this system that the web server should use.
- If the webserver should use SSL (if your system supports it).
- Whether to start webmin at boot time.
Web server port (default 10000):1024###設置訪問端口,缺省值是10000
個人建議改一下,主要是為了系統安全起見,設1024以上,也不要和其它的端口號相同。
Web server port (default 10000):
Login name (default admin): ### 管理員帳號,個人建議不要要缺省值,改一下為好!
Login password: ### 密碼Password again: ###確認密碼
Web server hostname (default linux): ###主機名稱The Perl SSLeay library is not installed. SSL not available.
Start Webmin at boot time (y/n): y ###問你系統啟動時要不要執行WEBMIN當然的要了,所以選Y
Creating web server config files..
..done
Configuring Webmin to start at boot time..
Created init script /etc/rc.d/init.d/webmin
..done
Creating uninstall script /etc/webmin/uninstall.sh ..
..done (那一天要把webmin 刪除就需要運行./uninstall.sh了,呵呵/)
***********************************************************************
Webmin has been installed and started successfully. Use your web
browser to go to
and login with the name and password you entered previously.
到這裡就算OK了。如果中間不出錯的話。
Copyright © Linux教程網 All Rights Reserved