close

何謂Webmin :

Webmin是一種Web介面的程式,可以修改主機內的很多設定,一般常用功能全都有,

功能非常強大,讓你可以在任何地方,只要能上網,就可以設定自己的主機。




--------------------------------------------------------------------------------



安裝Webmin :

請由ports安裝,目錄 : /usr/ports/sysutils/webmin/ 到目錄裡打make 然後

make install即可,


cd /usr/ports/sysutils/webmin/; make install


設定Webmin :



到 /usr/local/lib/webmin 目錄下

#鍵入 ./setup.sh



以下是設定畫面:



./setup.sh

***********************************************************************

* Welcome to the Webmin setup script, version 0.87 *

***********************************************************************

Webmin is a web-based interface that allows Unix-like operating

systems and common Unix services to be easily administered.



Installing Webmin in /usr/local/lib/webmin ...



***********************************************************************

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 [/usr/local/etc/webmin]:   //webmin設定檔的位置

Log file directory [/var/log/webmin]:      //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):      //perl檔的路徑



Testing Perl ...

Perl seems to be installed ok



***********************************************************************

For Webmin to work properly, it needs to know which operating system

type and version you are running. Please select your system type by

entering the number next to it from the list below

---------------------------------------------------------------------------

1) Sun Solaris           2) Caldera OpenLinux eServer

3) Caldera OpenLinux       4) Redhat Linux

5) Slackware Linux        6) Debian Linux

7) SuSE Linux           8) Corel Linux

9) TurboLinux          10) Cobalt Linux

11) Mandrake Linux        12) Mandrake Linux Corporate Server

13) Delix DLD Linux       14) Conectiva Linux

15) MSC Linux          16) MkLinux

17) LinuxPPC          18) XLinux

19) LinuxPL           20) Linux From Scratch

21) Trustix            22) Cendio LBS Linux

23) Ute Linux          24) Lanthan Linux

25) FreeBSD           26) OpenBSD

27) NetBSD            28) BSDI

29) HP/UX            30) SGI Irix

31) DEC/Compaq OSF/1       32) IBM AIX

33) SCO UnixWare         34) SCO OpenServer

35) MacOS Server X

---------------------------------------------------------------------------

Operating system: 25 //輸入你所使用的作業系統



Please choose which version of FreeBSD you are running, by entering

the number next to it from the list below

---------------------------------------------------------------------------

1) FreeBSD 2.1      2) FreeBSD 2.2

3) FreeBSD 3.0      4) FreeBSD 3.1

5) FreeBSD 3.2      6) FreeBSD 3.3

7) FreeBSD 3.4      8) FreeBSD 3.5

9) FreeBSD 4.0      10) FreeBSD 4.1

11) FreeBSD 4.2      12) FreeBSD 4.3

13) FreeBSD 4.4      14) FreeBSD 5.0

---------------------------------------------------------------------------

Version: 13 //輸入作業系統軟體



Operating system name: FreeBSD

Operating system version: 4.4



***********************************************************************

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): 8080 //設定webmin server的port,最好設2000以上

               以免發生與系統衝突的情形

Login name (default admin): //輸入所要設定的最高權限使用者的帳號

Login password: //輸入所要設定的密碼

Password again: //再次輸入密碼

Web server hostname (default webmin.ooxx.com.tw): //所要設定的網址名稱, 一般直接按過就好

Use SSL (y/n): n //是否要使用ssl連線

***********************************************************************

//設定完成,開始建立設定檔



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



Creating uninstall script /usr/local/etc/webmin/uninstall.sh ..

..done



Changing ownership and permissions ..

..done



Attempting to start Webmin mini web server..

Starting Webmin server in /usr/local/lib/webmin

..done



***********************************************************************

Webmin has been installed and started successfully. Use your web

browser to go to



http://webmin.ooxx.com.tw:8080/



and login with the name and password you entered previously.

 



恭喜!!設定完成



5.測試

用瀏覽器連上妳的server 位址:http://webmin.ooxx.com.tw:8080

webmin.ooxx.com.tw是你在設定中所設的網址,8080則是設定中所設的port

成功的話 你會在頁面看到webmin幾個大字

 



B.手動啟動

# /usr/local/etc/webmin/start

C.手動關閉

# /usr/local/etc/webmin/stop

D.反安裝webmin

1.路徑 /usr/local/etc/webmin (依個人安裝路徑會有不同,/usr/etc/webmin為預設值)

2. #./uninstall.sh

Are you sure you want to uninstall Webmin? (y/n) : y

系統會出現下列訊息..

Stopping Webmin server in /usr/local/webmin-

Deleting /usr/local/webmin

Deleting /etc/webmin ..

Done!

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 garyliuh 的頭像
    garyliuh

    沉溺於網海中的痞子

    garyliuh 發表在 痞客邦 留言(0) 人氣()