溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

web與tomcat服務(wù)器集成問(wèn)題匯總

發(fā)布時(shí)間:2020-07-30 19:50:15 來(lái)源:網(wǎng)絡(luò) 閱讀:518 作者:aishangwei 欄目:建站服務(wù)器

場(chǎng)景1: httpd server不能夠編譯,

錯(cuò)誤如下:
configure: error: in `/opt/httpd-2.2.19/srclib/apr':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr

原因:缺少c編輯器,比如 GCC或GCC+等。

解決方案:下載GCC編譯器并編譯它。

場(chǎng)景2 Apache不能夠使用make命令編譯,顯示已存在該進(jìn)程。

Error: make is not able to compile the code

原因:make不能夠執(zhí)行該函數(shù)

解決方案: 運(yùn)行下面命令

make clean
#Then
make
make install

場(chǎng)景3 Apache HTTP服務(wù)器不能夠連接到TOMCAT7

Error:不能通過(guò) AJP連接

原因:端口被阻止或者AJP的配置有錯(cuò)誤

解決方案:使用下列命令檢查日志

[root@localhost logs]# cat error_log
[Mon Jul 25 16:11:00 2011] [notice] Apache/2.2.19 (Unix) DAV/2 configured -- resuming normal operations
[Mon Jul 25 16:52:16 2011] [notice] caught SIGTERM, shutting down
[Mon Jul 25 16:52:23 2011] [warn] No JkShmFile defined in httpd.conf. Using default /opt/apache-2.2.19/logs/jk-runtime-status
[Mon Jul 25 16:52:23 2011] [warn] No JkShmFile defined in httpd.conf. Using default /opt/apache-2.2.19/logs/jk-runtime-status
[Mon Jul 25 16:52:23 2011] [notice] Apache/2.2.19 (Unix) DAV/2 mod_jk/1.2.32 configured -- resuming normal operations
[root@localhost logs]# cat mod_jk.log
[Mon Jul 25 16:52:23.555 2011] [13355:3086857920] [warn] jk_map_validate_property::jk_map.c (411): The attribute 'worker.node1.cachesize' is deprecated - please check the documentation for the correct replacement.
[Mon Jul 25 16:52:23.555 2011] [13355:3086857920] [info] init_jk::mod_jk.c (3252): mod_jk/1.2.32 () initialized
[Mon Jul 25 16:52:23.564 2011] [13356:3086857920] [warn] jk_map_validate_property::jk_map.c (411): The attribute 'worker.node1.
cachesize' is deprecated - please check the documentation for the correct re?placement.
[Mon Jul 25 16:52:23.564 2011] [13356:3086857920] [info] init_jk::mod_jk.c (3252): mod_jk/1.2.32 () initialized

也可以運(yùn)行./apachectl configtest檢查配置文件配置是否正確

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI