【正文】
特此聲明! 作者 簽名: 2021 年 月 日 第 24 頁 共 23 頁 There were seventeen officers in all riding in this race. The racecourse was a large fourversta ring in the form of an ellipse in front of the pavilion. O n this course nine obstacles had been arranged: the stream, a big and solid barrier two arsheenes high, just before the pavilion, a dry ditch, a ditch full of water, a precipitous slope , an Irish barricade (one of the most difficult obstacles, consisting of a mound fenced with brushw ood, beyond which was a ditch out of sight for the horses, so that the horse had to clear both obstacles or possibly be kille d)。 [3] 郭金鋒 ,林宇 .PHPamp。 使用系統(tǒng) 把 PHP Webmin 源代碼放至 /var//phpwebmin 目錄,在瀏覽器中通過 測試 基本測試 1. 通過 登錄 并輸入用戶名和密碼,通過認 證則進入主頁面 ,如圖 15; 圖 15 主頁面 2. 若使用 登錄 則顯示 Forbidden,如圖 16; 圖 16 Http無法登 錄 3. 在未通過驗證的情況下無法訪問訪問任何 phpwebmin 下級目錄; 第 20 頁 共 23 頁 功能測試 使用 PHP Webmin 對系統(tǒng)進行簡單管理 : 1. 運行 Shell 命令,輸入 whoami 顯示結(jié)果為 root,如圖 9 所示; 2. 查看用戶,點擊 Show all user,在文本區(qū)域中顯示所有系統(tǒng)用戶,及其主目錄、 uid、 shell,如圖 10 所示例; 3. 查看 CPU信息,點擊 CPU Info,在文本區(qū)域中顯示 CPU信息 ,如圖 17; 圖 17 查看 CPU信息 4. 關(guān)機 /重啟,點擊 Shutdown,系統(tǒng)將立即關(guān)閉,點擊 Reboot,系統(tǒng)將立即重啟 。search39。]. p .$_POST[39。user39。 case Kernel Version: 第 17 頁 共 23 頁 $exec=sudo uname a。 case Reboot: echo Reboot immediately......\n。 查看用戶 /組頁界面代碼: form action= method=post input type=submit name=show value=Show all user input type=submit name=show value=Show all group /form textarea cols=80 rows=15 readonly /* 具體代碼 */ /textarea 第 14 頁 共 23 頁 圖 10 查看所有用戶 在管理用戶和組子模塊中,首先在 頁中填寫 user 屬性,包括用戶名,用戶工作目錄,用戶 shell,用戶 uid,用戶密碼等參數(shù),提交至 頁并運行 useradd 操作,同時返回運行結(jié)果。 經(jīng)過此配置后, apache 用戶只要使用 sudo 命令即可獲得 root 權(quán)限。 2. 管理流程 當(dāng)用戶正確進入系統(tǒng)后,即可進行系統(tǒng)管理,點擊某管理模塊,設(shè)置某項服務(wù),系統(tǒng)通過網(wǎng)絡(luò)發(fā)送命令到 Web 服務(wù)器,與服務(wù)器獲得交互,服務(wù)器通過 PHP引擎解析獲得命令,調(diào)用相應(yīng)腳本并執(zhí)行,獲得結(jié)果返回到遠程主機。 : 1) 本系統(tǒng)的開發(fā)要求采用 B/S 結(jié)構(gòu),選用所熟悉的開發(fā)工具及開發(fā)環(huán)境進行本系統(tǒng)的設(shè)計與開發(fā)。如果目標(biāo)系統(tǒng)上沒有安裝 perl 的話,需要到 下載并安裝 perlfor linux,同時需要安裝常用的 perl 模塊;如果你需要 Webmin 支持 SSL,你還需要安裝 OpenSSL 和 perl 模塊。 ? 基于 ssh的客戶端軟件。它也是開放和封閉式生產(chǎn)系統(tǒng)的絕佳平臺,因為可自由地對其進行最大程度的定制。即使是一個很有經(jīng)驗的 Linux 的管理員,也常常會為某些復(fù)雜的配置文件的格式而苦惱。系統(tǒng)管理員可使用系統(tǒng)中的各功能模對整個 Linux 服務(wù)器進行日常管理。 Linux 是開放源碼軟件的代表,目前有越來越多的網(wǎng)站把他們的 Web 服務(wù)器架構(gòu)在 Linux 操作系統(tǒng)之上,因為 Linux 能夠提供健壯的 Web 應(yīng)用。s UNIX 的縮寫)創(chuàng)造的 ,它 誕生于 1991 年的 10 月 5 日(這是第一次正式向外公布的時間)。 遠程管理方法 目前主要的應(yīng)用于 Linux 的遠程連接技術(shù)大致分為以下三種: 1. 基于命令行的方式 ? Linux 命令: tel。 Webmin 初解 對于剛剛接觸 Linux的系統(tǒng)管理員來說,正確高效地完成各種關(guān)鍵的系統(tǒng)配置簡直是一件不可能的任務(wù)。所以,可以把 PHP Webmin說成是一個構(gòu)建在 PHP 上的簡單 Webmin —— A simple webmin on PHP。本系統(tǒng)能 輔助系統(tǒng)管理員更好的管理 Linux 服務(wù)器。在本系統(tǒng)中,使用 SSL 連接,運用 Apache 基本驗證來認證用戶;通過對 Apache 服務(wù)器進行特殊配置,使其獲得root 權(quán)限,完成遠程管理 Linux 服務(wù)器的目的。 第 13 頁 共 23 頁 if($cmd_mand) {$exec=$cmd_mand。 /bin/false option value=39。 echo \nDone...。]。user39。 if($mond) { system($mond)。 $exec=sudo e .$_POST[39。 本系統(tǒng)的實現(xiàn)過程中,本人對 Linux、 Webmin、 PHP、 Visio 設(shè)計工具等都更深層次的認識和理解。除非另有說明,本文的工作是原始性工作。s chestnut Gladiator, whose hindquarters w ere moving lightly and rhythmically up and down exactly in front of Vronsky, and, in front of all, the dainty mare Diana bearing the more dead than alive Kuzovlev. For the first instant Vronsky was not master either of himself or his mare. Up to the first obstacle, t。在此向他表示我最衷心的感謝! 特別 感謝 開發(fā)小組合作伙伴 孫澤璽同學(xué)在系統(tǒng)設(shè)計中給予的幫助,因為與他的合作,才得以高效率的完成了所有功能模塊! 在論文完成過程中,本人還得到了其他老師和許多同學(xué)的熱心幫助,本人向他們表示深深的謝意! 最后向在百忙之中評審本文的各位專家、老師表示衷心的感謝! 作者簡介 姓 名: 徐斌 性別 :男 出生年月: 1985 年 10 月 民族:漢 Email: 第 23 頁 共 23 頁 聲 明 本論文的工作是 2021 年 2 月至 2021 年 6 月在成都信息工程學(xué)院網(wǎng)絡(luò)工程系完成的。使我體會到系統(tǒng)的設(shè)計階段有舉足輕重的地位,設(shè)計的階段的質(zhì)量優(yōu)劣, 直接影響到以后系統(tǒng)質(zhì)量。uninstall39。]。]。 case 1: $passwd= p .$_POST[39。]。 /bin/bash option value=39。 實現(xiàn)代碼如下: ?php $exec=NULL。 5 詳細設(shè)計 服務(wù)器設(shè)計 此管理系統(tǒng)的目的是對 Linux 進行遠程管理,則在管理過程中需要對 Linux系統(tǒng)配置文件進行讀取,或者運行系統(tǒng)命令,訪問系統(tǒng)敏感數(shù)據(jù)等。 用戶特點 本系 統(tǒng)針對的是 Linux 系統(tǒng)管理員,需要管理員對 Linux 有一定程度了解 。當(dāng)你成功登錄到達 Webmin 的首頁時,這些類別將以不同的屬性頁展現(xiàn)在你的面前。 3. 基于管理端軟件的圖形界面方式 基于管理端軟件的圖 形界面方式一般需要完成對系統(tǒng)的配置、管理和監(jiān)控。 Linux 遠程管理 遠程控制是在網(wǎng)絡(luò)上由一臺 電腦 (主控端 Remote/客戶端)遠距離去控制另一臺電腦(被控端 Host/服務(wù)器端)的技術(shù),這里的遠程不是字面意思的遠距離,一般指通過網(wǎng)絡(luò)控制遠端電腦,不過,大多數(shù)時候我們所說的遠程控制往往指在局域網(wǎng)中的遠程控制而言。 2 Linux 遠程管理分析 Linux 操作 系 統(tǒng) Linux 究竟是什么? Linux 操作系統(tǒng) 是 UNIX 操作系統(tǒng)的一種克隆系統(tǒng)。 LAMP 不僅會成為企業(yè)接入互聯(lián)網(wǎng),也應(yīng)該會在企業(yè)內(nèi)部網(wǎng)絡(luò)建設(shè)中大有作為。 關(guān)鍵詞 : Linux;遠程管理; Webmin; PHP The implement of Client of the system of remote management based on Linux Abstract The characteristics of the operating system of Linux, every method of remote management and Webmin are analyzed and the details of implement of one of remote management Server methods are given. The remote management system PHP Webmin is constructed by the language of PHP. The remote management is done through the pages of Web, so it makes the remote management more simple and flexible and the administrator feel less pressed and manages the Server more conveniently. There are many functions, such as the management of operation of files, using mand of shell remotely, watching the system, shutting down and rebooting the system, the operation of users and groups of system, the management of groups of packets of rpm, the checking of the parameters of work and the management of the familiar Server have been implemented in the system. The administrator can manage the Server of Linux by using the functions of this system. This system can be applied to the remote management of small Server of Linux. Key words: Linux。管理員利用瀏覽器在遠程登 錄 后,可以方便的對服務(wù)器進行運行狀態(tài)的查看,對網(wǎng)絡(luò)服務(wù)進行配置,對一些數(shù)據(jù)進行分析,而且可以對異常現(xiàn)象作出快速的反應(yīng)。 IBM 已經(jīng)參與了制造在 Linux 上運行的收銀機 第 3 頁 共 23 頁 的項目,以及制造 Linux 手表的項目。 說明:命令行的管理方式適合進行初始化、 網(wǎng)卡 配置等基本操作,不適合做豐富的管理功能。安裝腳本還會把 Webmin 安裝成系統(tǒng)的守護進程,在開啟系統(tǒng)時自動啟動。 工作模式 I n t e r n e tP C / 瀏 覽 器 L i n u x 服 務(wù) 器A p a c h e / P H P 引 擎P H P 腳 本