日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

在linux系统下apache的默认安装路径怎么看

發(fā)布時(shí)間:2024/1/3 综合教程 40 生活家
生活随笔 收集整理的這篇文章主要介紹了 在linux系统下apache的默认安装路径怎么看 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

建站服務(wù)器

這篇文章將為大家詳細(xì)講解有關(guān)在linux系統(tǒng)下apache的默認(rèn)安裝路徑怎么看,小編覺得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。

如果采用RPM包安裝,安裝路徑應(yīng)在 /etc/httpd目錄下。

apache配置文件:/etc/httpd/conf/httpd.conf 可以修改相關(guān)的訪問路徑及配置

Apache模塊路徑:/usr/sbin/apachectl 啟動(dòng)模塊

web目錄:/var/www/html 項(xiàng)目的存儲(chǔ)路徑

如果采用源代碼安裝,一般默認(rèn)安裝在/usr/local/apache2目錄下。

啟動(dòng)apache報(bào)錯(cuò)信息,很大程度需要檢查是不是端口被占用了,因?yàn)槟J(rèn)apache啟動(dòng)的是80端口。像nginx默認(rèn)頁是開啟80端口。

報(bào)錯(cuò)信息如下:

[root@localhost ~]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@localhost ~]# service httpd status
Redirecting to /bin/systemctl status httpd.service
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since 三 2018-12-05 14:42:42 CST; 11s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 3640 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
  Process: 3639 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 3639 (code=exited, status=1/FAILURE)

12月 05 14:42:42 localhost.localdomain httpd[3639]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
12月 05 14:42:42 localhost.localdomain httpd[3639]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
12月 05 14:42:42 localhost.localdomain httpd[3639]: no listening sockets available, shutting down
12月 05 14:42:42 localhost.localdomain httpd[3639]: AH00015: Unable to open logs
12月 05 14:42:42 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
12月 05 14:42:42 localhost.localdomain kill[3640]: kill: cannot find process ""
12月 05 14:42:42 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
12月 05 14:42:42 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
12月 05 14:42:42 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
12月 05 14:42:42 localhost.localdomain systemd[1]: httpd.service failed.
[root@localhost ~]#

可以看到Address already in use錯(cuò)誤,修改apache的端口。

編輯/etc/httpd/conf/httpd.conf

再次重啟即可。

關(guān)于在linux系統(tǒng)下apache的默認(rèn)安裝路徑怎么看就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,可以學(xué)到更多知識(shí)。如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到。

總結(jié)

以上是生活随笔為你收集整理的在linux系统下apache的默认安装路径怎么看的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。