Linux腳本程序包及安裝


概述

腳本程序並不多見,所以在軟件包分類中並沒有把它列為一類。它更加類似於 Windows 下的程序安裝,有一個可執行的安裝程序,只要運行安裝程序,然后進行簡單的功能定制選擇(比如指定安裝目錄等),就可以安裝成功,只不過是在字符界面完成的。目前常見的腳本程序以各類硬件的驅動居多

以安裝Webmin工具軟件為例來說明腳本程序的安裝步驟,Webmin 是一個基於 Web 的系統管理界面,借助任何支持表格和表單的瀏覽器(和 File Manager 模塊所需要的Java),你就可以設置用戶賬號、apache、DNS、文件共享等。
Webmin 包括一個簡單的 Web 服務器和許多 CGI 程序,這些程序可以直接修改系統文件,比如 /etc/inetd.conf 和 /etc/passwd。Web 服務器和所有的 CGI 程序都是用 Perl 5 編寫的,沒有使用任何非標准 Perl 模塊。也就是說,Webmin 是一個用 Perl 語言寫的、可以通過瀏覽器管理 Linux 的軟件。

webmin安裝步驟

首先下載 Webmin 軟件,這里下載的是 webmin-1.610.tar.gz。
解壓並進入目錄執行安裝程序 setup.sh,並指定功能選項。命令如下:

[root@localhost ~]# tar -zxvf webmin-1.610.tar.gz
[root@localhost ~]# cd webmin-1.610
[root@localhost webmin-1.610]# ./setup.sh
**************************
* Welcome to the Webmin setup script,version 1.610 *
**************************
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.610...
**************************
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]:  #選擇安裝位置,默認安裝在/etc/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 peri (default /usr/bin/perl):    #指定Perl語言的安裝位置,直接回車,選擇默認位置,Perl默認就安裝這里
Testing Perl...
Perl seems to be installed ok
**************************
Operating system name: CentOS Linux Operating system version: 6.3
**************************
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):   #指定Webmin監聽的端口,直接回車,默認選定 10000
Login name (default admin):admin #輸入登錄Webmin的用戶名
Login password:
Password again:  #輸入登陸密碼
The Perl SSLeay library is not installed.SSL not available.  #apache默認沒有啟動SSl功能,所以SSl沒有被激活
Start Webmin at boot time (y/n):y   #是否在開機的同時啟動Webmin
…安裝過程省略…
Webmin has been installed and started successfully.Use your web browser to go to
http://localhost:10000/
and login with the name and password you entered previously.

安裝完成在瀏覽器地址欄中輸入"http://192.168.2.199:10000/ ",然后輸入用戶名和密碼,就可以登錄到 Webmin 界面,如圖  


  Webmin登錄界面

從安裝Webmin 這種腳本來看,腳本安裝簡單快速,但是 Linux 中的絕大多數軟件是沒有這種腳本的。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM