国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 網(wǎng)站 > Apache > 正文

Centos7.4服務(wù)器安裝apache及安裝過(guò)程出現(xiàn)的問(wèn)題解決方法

2024-08-27 18:27:06
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

本文實(shí)例講述了Centos7.4服務(wù)器安裝apache及安裝過(guò)程出現(xiàn)的問(wèn)題解決方法。,具體如下:

一、安裝httpd

1. 安裝之前,先查看系統(tǒng)中是否存在已經(jīng)安裝了的httpd.rpm包,如果,沒(méi)有就是沒(méi)安裝,有的話rpm -e 對(duì)應(yīng)的rpm包名進(jìn)行刪除

#rpm -qa | grep httpd

2. 使用yum安裝(自動(dòng)安裝依賴包),簡(jiǎn)單方便

#yum -y install httpd

3. 安裝成功后,httpd-v 查看安裝的apache版本,查找apache的配置文件位置

#find / -name "httpd.conf"

4. 將找到的源配置文件備份一份,防止錯(cuò)誤后無(wú)法恢復(fù)

#cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak

5. 啟動(dòng)Apache服務(wù)

#systemctl start httpd.service

6. 開(kāi)機(jī)自動(dòng)啟動(dòng)Apache服務(wù)

#systemctl enable httpd.service 開(kāi)機(jī)自啟httpd#systemctl disable httpd.service 開(kāi)機(jī)不啟動(dòng)httpd

7. 查看httpd的狀態(tài)

#systemctl status httpd.service

二、安裝過(guò)程出現(xiàn)的問(wèn)題

1. Apache啟動(dòng)失敗,Job for httpd.service failed because the control process exited with error code. See “systemctl status httpd.service” and “journalctl -xe” for details

執(zhí)行命令,查看報(bào)錯(cuò)提示

#systemctl status httpd.service
[root@cloud1 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-11-26 11:13:09 CST; 6min ago   Docs: man:httpd(8)      man:apachectl(8) Process: 9915 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 9913 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 9913 (code=exited, status=1/FAILURE)11月 26 11:13:09 cloud1.localdomain httpd[9913]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8011月 26 11:13:09 cloud1.localdomain httpd[9913]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8011月 26 11:13:09 cloud1.localdomain httpd[9913]: no listening sockets available, shutting down11月 26 11:13:09 cloud1.localdomain httpd[9913]: AH00015: Unable to open logs11月 26 11:13:09 cloud1.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE11月 26 11:13:09 cloud1.localdomain kill[9915]: kill: cannot find process ""11月 26 11:13:09 cloud1.localdomain systemd[1]: httpd.service: control process exited, code=exited status=111月 26 11:13:09 cloud1.localdomain systemd[1]: Failed to start The Apache HTTP Server.11月 26 11:13:09 cloud1.localdomain systemd[1]: Unit httpd.service entered failed state.11月 26 11:13:09 cloud1.localdomain systemd[1]: httpd.service failed.            
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 沧源| 错那县| 江北区| 张北县| 临安市| 遂平县| 东源县| 合阳县| 来宾市| 涪陵区| 榆林市| 察雅县| 麻栗坡县| 栖霞市| 石家庄市| 高唐县| 石狮市| 连江县| 全南县| 吉安市| 彭阳县| 桂东县| 清徐县| 遂川县| 綦江县| 奉贤区| 福泉市| 广宗县| 利津县| 沧源| 文化| 油尖旺区| 岳普湖县| 武强县| 仁怀市| 武乡县| 青州市| 都昌县| 吴堡县| 南川市| 政和县|