apache報(bào)錯(cuò)(AH00491、AH00489、AH02282、OpenSSL)寶塔面板計(jì)劃任務(wù)Shell命令重啟apache、mysql、php等
[重要通告]如您遇疑難雜癥,本站支持知識(shí)付費(fèi)業(yè)務(wù),掃右邊二維碼加博主微信,可節(jié)省您寶貴時(shí)間哦!
最近因?yàn)楦鼡Q了新的服務(wù)器,裝完服務(wù)器環(huán)境的時(shí)候還挺正常,也不知道從何時(shí)起,我的apache就出現(xiàn)了錯(cuò)誤,如下所示;
[mpm_event:notice] [pid 6666:tid 8888888] AH00491: caught SIGTERM, shutting down
[ssl:warn] [pid 6666:tid 88888] AH01909: ssl.default.com:443:0 server certificate does NOT include an ID which matches the server name
[ssl:warn] [pid 6666:tid 8888888] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[ssl:warn] [pid 6666:tid 88888888] AH01909: ssl.default.com:443:0 server certificate does NOT include an ID which matches the server name
[lbmethod_heartbeat:notice] [pid 2814:tid 88888] AH02282: No slotmem from mod_heartmonitor
[mpm_event:notice] [pid 6666:tid 88888] AH00489: Apache/2.4 (Unix) OpenSSL/1.1.1k configured -- resuming normal operations
[core:notice] [pid 6666:tid 88888] AH00094: Command line: '/www/server/apache/bin/httpd'
實(shí)屬也沒啥好的辦法,只要不重啟,我的apache就不會(huì)停止,只要一啟動(dòng)必然停止,我也卸載了不少東西,也測(cè)試了很多,可依然不好;那就干脆讓他任其存在得了,可是apache在啟動(dòng)的時(shí)候會(huì)自然停止,那咋辦呢?
我的ecs裝的是寶塔,那就讓寶塔計(jì)劃任務(wù)設(shè)定一下重啟的時(shí)候啟動(dòng)apache即可,畢竟我重啟的時(shí)間都是固定,往后延遲一刻鐘再次啟動(dòng)apache即可,今天就是這么操作的,還是可以的;
寶塔面板計(jì)劃任務(wù)Shell命令重啟apache、mysql、php等
啟動(dòng)apache
service httpd start
定時(shí)重啟apache
service httpd restart
apache停止服務(wù)
service httpd stop
定時(shí)重啟mysql
service mysqld restart
定時(shí)重啟php5.6
service php-fpm-56 restart
定時(shí)重啟php5.7
/etc/init.d/php-fpm-56 restart
停止推送
php /www/wwwroot/laoliang.net/laoliang_pusher/start.php stop
啟動(dòng)推送
php /www/wwwroot/laoliang.net/laoliang_pusher/start.php start -d
"Init: Session Cache is not configured [hint: SSLSessionCache]"的解決方法
找到并打開文件httpd.conf? ? ?find / -name httpd.conf
找到下面這句話,并刪除前面的注釋符,如果沒有找到,那么添加這一行:
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
找到并打開/www/server/apache/conf/extra/httpd-ssl.conf
在文中尋找是否有這一行,如果沒有就添加
SSLSessionCache "shmcb:/www/server/apach/logs/ssl_scache(512000)"
保存文件并重啟apach:
systemctl restart httpd
問題未解決?付費(fèi)解決問題加Q或微信 2589053300 (即Q號(hào)又微信號(hào))右上方掃一掃可加博主微信
所寫所說,是心之所感,思之所悟,行之所得;文當(dāng)無敷衍,落筆求簡(jiǎn)潔。 以所舍,求所獲;有所依,方所成!