////// apache
創(chuàng)新互聯(lián)網(wǎng)站建設公司一直秉承“誠信做人,踏實做事”的原則,不欺瞞客戶,是我們最起碼的底線! 以服務為基礎,以質量求生存,以技術求發(fā)展,成交一個客戶多一個朋友!專注中小微企業(yè)官網(wǎng)定制,成都網(wǎng)站建設、成都網(wǎng)站設計,塑造企業(yè)網(wǎng)絡形象打造互聯(lián)網(wǎng)企業(yè)效應。# yum install httpd httpd-devel
# systemctl start httpd
# systemctl status httpd
# systemctl enable httpd
////// php
# yum install php php-devel
# systemctl restart httpd
////// error
[root@wode013 sbin]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 二 2016-03-08 11:22:49 EST; 6min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 30009 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 29986 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 29986 (code=exited, status=1/FAILURE)
3月 08 11:22:49 wode013 httpd[29986]: (13)Permission denied: AH00072: make_sock: could not bind to...6000
3月 08 11:22:49 wode013 httpd[29986]: (13)Permission denied: AH00072: make_sock: could not bind to...6000
3月 08 11:22:49 wode013 httpd[29986]: no listening sockets available, shutting down
3月 08 11:22:49 wode013 httpd[29986]: AH00015: Unable to open logs
3月 08 11:22:49 wode013 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
3月 08 11:22:49 wode013 kill[30009]: kill: cannot find process ""
3月 08 11:22:49 wode013 systemd[1]: httpd.service: control process exited, code=exited status=1
3月 08 11:22:49 wode013 systemd[1]: Failed to start The Apache HTTP Server.
3月 08 11:22:49 wode013 systemd[1]: Unit httpd.service entered failed state.
3月 08 11:22:49 wode013 systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
////// port
[root@wode013 sbin]# firewall-cmd --add-service=http --permanent
success
[root@wode013 sbin]# firewall-cmd --reload
success
[root@wode013 sbin]# firewall-cmd --list-all
public (default, active)
interfaces: enp3s0f0 enp3s0f1
sources:
services: dhcpv6-client http ssh
ports: 5000/tcp
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
[root@wode013 sbin]# semanage port -l | grep 80
http_cache_port_t tcp 8080, 8118, 8123, 10001-10010
http_port_t tcp 80, 81, 443, 488, 8008, 8009, 8443, 9000
另外有需要云服務器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。
本文名稱:【CentOS】HowtosetupPHPenv-創(chuàng)新互聯(lián)
分享地址:http://jinyejixie.com/article28/djegjp.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站改版、關鍵詞優(yōu)化、網(wǎng)站設計公司、網(wǎng)站內鏈、定制網(wǎng)站、網(wǎng)站維護
聲明:本網(wǎng)站發(fā)布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內容