温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

web与tomcat服务器集成问题汇总

发布时间:2020-07-30 19:50:15 来源:网络 阅读:515 作者:aishangwei 栏目:建站服务器

场景1: httpd server不能够编译,

错误如下:
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编译器并编译它。

场景2 Apache不能够使用make命令编译,显示已存在该进程。

Error: make is not able to compile the code

原因:make不能够执行该函数

解决方案: 运行下面命令

make clean
#Then
make
make install

场景3 Apache HTTP服务器不能够连接到TOMCAT7

Error:不能通过 AJP连接

原因:端口被阻止或者AJP的配置有错误

解决方案:使用下列命令检查日志

[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 replacement.
[Mon Jul 25 16:52:23.564 2011] [13356:3086857920] [info] init_jk::mod_jk.c (3252): mod_jk/1.2.32 () initialized

也可以运行./apachectl configtest检查配置文件配置是否正确

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI