- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業務經營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯網協會理事單位
- 安全聯盟認證網站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網數碼
2.網站主目錄
/usr/local/apache2/htdocs
3.配置文件
/usr/local/apache2/etc/httpd.conf
4.應用程序
/usr/local/apache2/bin/httpd
5.服務腳本
/usr/local/apache2/bin/apachectl
6.啟動服務
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl restart
7.關閉服務
/usr/local/apache2/bin/apachectl stop
8.查看進程
pstree |grep httpd
9.查看端口
netstat -tunpl |grep :80
10.開機啟動
vi /etc/rc.d/rc.local
/usr/local/apache2/bin/apachectl restart &>/dev/null
apache 配置文件:
1.監聽端口
Listen 800
2.加載 php 的動態模塊
LoadModule php5_module modules/libphp5.so
3.apache 服務的進程執行者
User daemon
4.apache 的網站根目錄
DocumentRoot "/usr/local/apache2/htdocs"
5.apache 的網站根目錄的服務權限
<Directory "/usr/local/apache2//htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
#先允許,后拒絕
Allow from all
#允許所有人
#不拒絕任何人
</Directory>
6.apache 的默認首頁
DirectoryIndex index.php index.html
7.apache 的錯誤日志
ErrorLog "logs/error_log"
8.apache 的訪問日志
CustomLog "logs/access_log" common
實時查看文件中的最后十行的變化:
tail -f access_log
9.404 頁面不存在
ErrorDocument 404 /missing.html
10.包含外部配置文件
Include etc//extra/httpd-vhosts.conf
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP