返回列表 發帖

Fedora Core 架設筆記

1. 安裝 Webmin [code:555127ec25]rpm -ivh http://nchc.dl.sourceforge.net/sourceforge/webadmin/webmin-1.260-1.noarch.rpm[/code:555127ec25] 2. 為 RPM 匯入GnuPG金鑰 [code:555127ec25]rpm --import http://download.fedora.redhat.com/pub/fedora/linux/core/3/i386/os/RPM-GPG-KEY[/code:555127ec25] 3. YUM 更新 [code:555127ec25]yum -y update # 更新目前本機上面的所有套件,並自動回覆 yes yum clean packages # 將下載至本機的 RPM 檔案刪除(放在 /var/cache/yum 裡面。[/code:555127ec25] 4. 修改 httpd.conf [code:555127ec25]1. 使根目錄支援 .htaccess 檔案 尋找 <Directory /> Options FollowSymLinks AllowOverride None </Directory> 改為 <Directory /> Options FollowSymLinks AllowOverride All </Directory> 2. 定義網頁根目錄 尋找 <Directory "/var/www/html"> 下面 Options Indexes FollowSymLinks 改為 Options FollowSymLinks 下面 AllowOverride None 改為 AllowOverride All 3. 增加首頁支援檔名 尋找 DirectoryIndex index.html index.html.var 改為 DirectoryIndex index.html index.htm index.php index.html.var [/code:555127ec25] 4. 修改 vsftpd.conf [code:555127ec25] 1. 取消anonymous 登入 尋找 anonymous_enable=YES 改為 anonymous_enable=NO 2. 啟用逾時設定(單位:秒) 尋找 #idle_session_timeout=600 改為 idle_session_timeout=600 3. 啟用 ascii 傳輸模式 尋找 #ascii_upload_enable=YES #ascii_download_enable=YES 改為 ascii_upload_enable=YES ascii_download_enable=YES 4. 限制使用者無法切換到根目錄以外的資料夾 尋找 #chroot_list_enable=YES 在上面增加; chroot_local_user=YES 5. 最下面增加; max_clients=5 max_per_ip=2 local_max_rate=20000 setproctitle_enable=YES user_config_dir=/etc/vsftpd/userconfig 最大連線數 同樣IP登入限制 最大連線速率 每一個連線以獨立的 process 來運作 建立使用者個別設定檔[/code:555127ec25] 5. 在 /etc/vsftpd/ 底下建立 userconfig 檔案夾

返回列表