【正文】
{ echo Waiting......\n。 $exec=sudo rpm qa | grep .$_POST[39。search39。]。 } if($exec) { system($exec)。} 根據(jù)關(guān)鍵字刪除代碼: if($_POST[39。uninstall39。]) { echo Waiting......\n。 $exec=sudo e .$_POST[39。uninstall39。]。 } if($exec) { if(system($exec)) echo \nDone......\n。 else echo Error...Check your package name or operation...。 } 6 系統(tǒng)安裝使用與測試 服務(wù)器設(shè)置 按照 服務(wù)器設(shè)計中給出步驟,分別對 Apache Web 服務(wù)器,及 Linux 服務(wù)器進(jìn)行配置,注意若不對 /etc/sudoers 進(jìn)行配置,則本系統(tǒng)大部分功能無法 第 19 頁 共 23 頁 使用。 也可省略對 .htaccess 和 .phpwebminpasswd 的生成,使用源代碼中所帶的ACL 文件和用戶密碼數(shù)據(jù)文件,請注意修改 .htaccess 文件中 AuthUserFile 后的字段指向相應(yīng)數(shù)據(jù)文件 , 默認(rèn)用戶名為 admin, 密碼為 admin。 使用系統(tǒng) 把 PHP Webmin 源代碼放至 /var//phpwebmin 目錄,在瀏覽器中通過 測試 基本測試 1. 通過 登錄 并輸入用戶名和密碼,通過認(rèn) 證則進(jìn)入主頁面 ,如圖 15; 圖 15 主頁面 2. 若使用 登錄 則顯示 Forbidden,如圖 16; 圖 16 Http無法登 錄 3. 在未通過驗(yàn)證的情況下無法訪問訪問任何 phpwebmin 下級目錄; 第 20 頁 共 23 頁 功能測試 使用 PHP Webmin 對系統(tǒng)進(jìn)行簡單管理 : 1. 運(yùn)行 Shell 命令,輸入 whoami 顯示結(jié)果為 root,如圖 9所示; 2. 查看用戶,點(diǎn)擊 Show all user,在文本區(qū)域中顯示所有系統(tǒng)用戶,及其主目錄、 uid、 shell,如圖 10 所示例; 3. 查看 CPU 信息,點(diǎn)擊 CPU Info,在文本區(qū)域中顯示 CPU 信息 ,如圖 17; 圖 17 查看 CPU信息 4. 關(guān)機(jī) /重啟,點(diǎn)擊 Shutdown,系統(tǒng)將立即關(guān)閉,點(diǎn)擊 Reboot,系統(tǒng)將立即重啟 。 已知問題: 使用 Apache 基本驗(yàn)證會在瀏覽器中保存 session,需要在完成系統(tǒng)管理操作后關(guān)閉瀏覽器或手動刪除瀏覽器 session; apache 用戶經(jīng)過配置后可執(zhí)行 sudo 命令,產(chǎn)生了系統(tǒng)安全隱患。 第 21 頁 共 23 頁 結(jié) 論 目前,經(jīng)過緊張而有序的畢業(yè)設(shè)計, Linux 遠(yuǎn)程管理系統(tǒng)主體功能已全面實(shí)現(xiàn)。系統(tǒng)界面簡潔,操作方便,功能齊全,實(shí)現(xiàn)了文件操作、遠(yuǎn)程運(yùn)行 Shell 命令、進(jìn)程監(jiān)控、用戶 /組 管理、系統(tǒng)信息查看、 Rpm 軟件包管理、查看 /配置網(wǎng)絡(luò)參數(shù)、管理常見服務(wù)器軟件的功能,基本實(shí)現(xiàn)了對 Linux 系統(tǒng)的遠(yuǎn)程管理。但是也有需要進(jìn)一步改進(jìn)的地方,如:在進(jìn)程監(jiān)控時,需要查看進(jìn)程信息后結(jié)合命令行操作來實(shí)現(xiàn)對進(jìn)程的關(guān)閉;還有本系統(tǒng)沒有完全實(shí)現(xiàn)服務(wù)器配置功能,沒有完全解決對系統(tǒng)配置文件的讀寫問題等。 本系統(tǒng)的設(shè)計與開發(fā)在老師的領(lǐng)導(dǎo)下都參照軟件開發(fā)公司的設(shè)計與開發(fā)模式。通過對本系統(tǒng)的需求分析,概要設(shè)計、詳細(xì)設(shè)計、編碼、測試等每一部分的學(xué)習(xí)和實(shí)踐。使我體會到系統(tǒng)的設(shè)計階段有舉足輕重的地位,設(shè)計的階段的質(zhì)量優(yōu)劣, 直接影響到以后系統(tǒng)質(zhì)量。需求是否準(zhǔn)確,影響到最后系統(tǒng)是否能達(dá)到功能的要求,如果設(shè)計合理,在編碼階段實(shí)現(xiàn)就相對容易了。 本系統(tǒng)的實(shí)現(xiàn)過程中,本人對 Linux、 Webmin、 PHP、 Visio 設(shè)計工具等都更深層次的認(rèn)識和理解。本人相信這對以后工作將會大有益處的。 綜上所述,畢業(yè)設(shè)計階段讓我充分的應(yīng)用四年在校所學(xué)的知識,讓理論和實(shí)踐完美的結(jié)合起來。 參考文獻(xiàn) [1] Ashish Wilfred amp。 Meeta Gupta amp。 Kartik Bhatnagar[美 ].PHP專業(yè)項(xiàng)目實(shí)例開發(fā) [M].北京:中國水利水 電出版社 ,2020。 [2] Warren [美 ]. 實(shí)戰(zhàn) Linux Socket編程 [M].西安:西安電子科技大學(xué)出版社 ,2020。 [3] 郭金鋒 ,林宇 .PHPamp。MySql Web網(wǎng)絡(luò)編程 [M].北京:人民郵電出版社 ,2020。 [4] Marcel Gagne[美 ], 常曉波 .Linux系統(tǒng)管理用戶指南 [M].北京: 清華大學(xué)出版社 ,2020。 [5] John Ha[美 ]. Red Hat Linux 入門指南 [OL]. [6] STCore . . Apache中實(shí)現(xiàn)身份驗(yàn)證和訪問控制 [OL] . , 2020118。 [7] Stan amp。 Peter Klimas[美 ]. Linux常用命令 [OL]. 20200722。 第 22 頁 共 23 頁 致 謝 本文是 在方睿老師的熱情關(guān)心和指導(dǎo)下完成的,他淵博的知識和嚴(yán)謹(jǐn)?shù)闹螌W(xué)作風(fēng)使我受益匪淺,對順利完成本課題起到了極大的作用。在此向他表示我最衷心的感謝! 特別 感謝 開發(fā)小組合作伙伴 孫澤璽同學(xué)在系統(tǒng)設(shè)計中給予的幫助,因?yàn)榕c他的合作,才得以高效率的完成了所有功能模塊! 在論文完成過程中,本人還得到了其他老師和許多同學(xué)的熱心幫助,本人向他們表示深深的謝意! 最后向在百忙之中評審本文的各位專家、老師表示衷心的感謝! 作者簡介 姓 名: 徐斌 性別 :男 出生年月: 1985 年 10 月 民族:漢 Email: 第 23 頁 共 23 頁 聲 明 本論文的工作是 2020 年 2 月至 2020 年 6 月在成都信息工程學(xué)院網(wǎng)絡(luò)工程系完成的。文中除了特別加以標(biāo)注地方外,不包含他人已經(jīng)發(fā)表或撰寫過的研究成果,也不包含為獲得成都信息工程學(xué)院或其他教學(xué)機(jī)構(gòu)的學(xué)位或證書而使用過的材料。除非另有說明,本文的工作是原始性工作。 關(guān)于學(xué)位論文使用權(quán)和研究成果知識產(chǎn)權(quán)的說明: 本人完全了解成都信息工程學(xué)院有關(guān)保管使 用學(xué)位論文的規(guī)定,其中包括: ( 1)學(xué)校有權(quán)保管并向有關(guān)部門遞交學(xué)位論文的原件與復(fù)印件。 ( 2)學(xué)??梢圆捎糜坝 ⒖s印或其他復(fù)制方式保存學(xué)位論文。 ( 3)學(xué)校可以學(xué)術(shù)交流為目的復(fù)制、贈送和交換學(xué)位論文。 ( 4)學(xué)??稍试S學(xué)位論文被查閱或借閱。 ( 5)學(xué)??梢怨紝W(xué)位論文的全部或部分內(nèi)容(保密學(xué)位論文在解密后遵守此規(guī)定)。 除非另有科研合同和其他法律文書的制約,本論文的科研成果屬于成都信息工程學(xué)院。 特此聲明! 作者 簽名: 2020 年 月 日 第 24 頁 共 23 頁 39。Go away! You mustn39。t look.39。 I hesitated, but childhood is a time thic kly beset with in prehensible, though important, conventions, so I withdrew a few yards and turned my back. I heard her breathing hard. Then she was crying again. I turned round. 39。I can39。t,39。 she said, looking at me fearfully through her tears, so I knelt down to see what I could do about it. 39。You mustn39。t ever tell,39。 she said. 39。Never, never! Promise?39。 I promised. She was very brave. Nothing more than the puppy noises. When I did succeed in getting the foot free, it looked queer: I mean, it was all twisted and puffy I didn39。t even notice then that it had more than the usual number of toes. . . . I managed to hammer the shoe out of the cleft, and handed it to her. But she found she could not put it on her swollen foot. Nor could she put the foot to the ground. I thought I might carry her on my back, but she was heavier than I expected, and it was clear that we should not get far like that. 39。I39。ll have to go and fetch somebody to help,39。 I told her. 39。No. I39。ll crawl,39。 she said. I walked beside her, carrying the shoe, and feeling useless. She kept going gamely for a surprisingly long way, but she had to give it up. Her trousers were worn through at the knees, and the knees themselves were sore and bleeding. I had never known anyone, boy or girl, who w ould have kept on till that pitch。 it awed me slightly. I helped her to stand up on her sound foot, and steadied her while she pointed out where her home was, and the trickle of smoke that marked it. When I looked back she was on all fours again, disappearing into the bushes. I found the house w ithout much difficulty, and knoc ked, a little nervously. A tall woman answered. She had a fine, hand some face with large bright eyes. Her dress was russet and a little shorter than those most of the women at home wore, but it carried the conventional cross, from neck to hem and breast to breast, in a green that matched the scarf on her head. 39。Are you Sophie39。s mother?39。 I asked. She looked at me sharply and frowned. She said, with anxious abruptness: 39。What is it?39。 I told her. 39。Oh!39。 she exclaimed. 39。Her foot!39。 She looked hard at me again for a moment, then she leant the broom she was holding against the wall, and asked briskly: 39。Where is she?39。 I led her by the way I had e. At the sound of her voice Sophie crawled out of the bushes. Her mother looked at the swollen, misshapen foot