第10章LinuxApache和FTP伺服器

2021-10-09 22:17:29 字數 969 閱讀 3540

10-1 apache伺服器配置
apache簡介

. apache是裝在伺服器上的乙個軟體,提供web服務。是當今裝置排在第一位的web伺服器軟體,遠遠領先於微軟的lls.

·安裝apache軟體

配置web站點

apache主配置檔案介紹

/etc/httpd-apache 主目錄

/etc/httpd/conf/httpd.conf -apache 主配置檔案 /etc/httpd/conf.d-apache 附加模組配置檔案 /etc/httpd/modules-apache 模組檔案路徑鏈結 /etc/httpd/bin/-apache 二進位制命令

/etc/httpd/logs-apache 預設日誌檔案位置

配置web站點

這是乙個網頁主體

10-3 vsftp的配置
ftp簡介

·檔案傳輸協議

·軟體安裝

yum install -y vsftpd.x86_64

systemctl start vsftpd

systemctl enable vsftpd

firewall-cmd ——permanent --add-service=ftp

firewall-cmd ——reload

第10章 函式

定義函式的格式 name command list 呼叫函式的格式 name 省略括號 檢視到所宣告的函式定義 declare f name 取消定義的函式,可以使用unset命令 unset name 案例 bin bash 定義函式printmsg用來輸出資訊到終端螢幕,該函式至少需要兩個引數 ...

第10章第8題

mylist.h ifndef mylist h define mylist h include const int len 10 class mylist endif void show double mid 這個函式用於簡單的顯示乙個double mylist.cxx include mylis...

第10章 預處理

10.1 預處理指令 指令 含義例項 define 定義巨集 define debug undef 取消巨集的定義 undef debug if判斷 if defined debug else cout debug elif else endif cout release error 輸出錯誤資訊 ...