赛捷软件论坛's Archiver

tansj 发表于 2009-1-11 18:37

X3服务器apache2安装错误问题解决一例

<P>安装x3,装到apache的时候没有成功,系统安装完毕后进入x3帐套无法显示背景网页。判断应是apache没有装好,于是重新修复安装apache,提示错误:</P><P>&lt;os 10048&gt;...could not bind to address 0.0.0.0:80...</P><P>&lt;os 2&gt; No installed service named "apache2"</P><P>查过N多资料后,发现是http80端口被占用。命令行使用netstat -ano查看本机端口监听情况,果然在第一行显示有2个本机80端口的监听,找到这2个监听程序的pid号,命令行使用tasklist查看这2个pid所对应的进程都是apache.exe,这就奇怪了,明明只装了一个apache,为什么有2个apache的进程呢?卸载掉手动安装的apache,再netstat -ano发现一个端口占用已经停掉了,另一个还在顽强地活着。无奈,使用360安全卫士查看本机进程情况,发现另一个apache.exe的启动路径在$ORACLE_HOME/apache,原来是安装oracle的时候弄出来的。service.msc里面停止掉OracleOraHome92HTTPServer,并将启动状态改为手动,以防止下一次开机自动启动,重新运行apache***.msi安装apache,端口监听成功,服务apache2安装成功。进入console重新configuration apache,搞定。</P><P>&nbsp;</P><P>抛砖引玉,希望对遇到同样问题的朋友有所帮助。</P>

paolo 发表于 2009-1-14 19:23

Re:X3服务器apache2安装错误问题解决一例

<P>其实有时候如果服务器上其他程序占用了80端口的话</P><P>改一下conf下的httpd.conf里的端口号Listen的值 然后安装一遍服务就可以了</P>

tansj 发表于 2009-1-14 23:08

Re:X3服务器apache2安装错误问题解决一例

<P>嗯,我也想过这样改。但是不知道在web publish的时候会不会根据apache的设置来读取端口。如果不是根据apache的设置来读的话可能会有问题。</P>

tansj 发表于 2009-2-9 23:59

Re:X3服务器apache2安装错误问题解决一例

<P>我试验了,如果是和Oracle自带的apache冲突了,可以将oracle的apache服务段口号改掉,文件路径为:$ORACLE_HOME&#92;Apache&#92;Apache&#92;httpd.conf,将Port 80和Listen 80改掉即可:</P><P>#<BR># Port: The port to which the standalone server listens.&nbsp; Certain firewall<BR># products must be configured before Apache can listen to a specific port.<BR># Other running httpd servers will also interfere with this port.&nbsp; Disable<BR># all firewall, security, and other services if you encounter problems.<BR># To help diagnose problems use the Windows NT command NETSTAT -a<BR>#<BR><FONT color=#ff0000>#Port 80</FONT></P><P><FONT color=#ff0000>Port 880</FONT></P><P>##<BR>##&nbsp; SSL Support<BR>##<BR>##&nbsp; When we also provide SSL we have to listen to the <BR>##&nbsp; standard HTTP port (see above) and to the HTTPS port<BR>##</P><P><FONT color=#ff0000>#Listen 80</FONT></P><P><FONT color=#ff0000>Listen 880</FONT></P>

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.