目錄表

6 apache網頁伺服器搭配ftp檔案伺服器使用


6.1 安裝apache與vsftpd

apache web server在Yum軟體倉庫中的名稱是httpd,ftp server使用的套件為vsftpd

[cbb104026@localhost ~]# yum install httpd vsftpd
[cbb104026@localhost ~]# service httpd start
[cbb104026@localhost ~]# service vsftpd start
[cbb104026@localhost ~]# chkconfig httpd on
[cbb104026@localhost ~]# chkconfig vsftpd on

6.2 設定網頁目錄

ssh的設定檔在/etc/httpd/cnofig/httpd.config

[cbb104026@localhost ~]# vi /etc/httpd/conf/httpd.conf
[cbb104026@localhost ~]# service httpd restart