免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: 423
打印 上一主题 下一主题

hp-ux服务设置? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2003-03-12 09:44 |只看该作者

hp-ux服务设置?

apache没起来,运行/usr/local/apache/bin/apachectl start启动
如果不行,就运行/usr/local/apache/bin/apachectl stop停止,再运行上面那个启动,然后用ps -ef|grep httpd查看进程,要是有很多就成功了

论坛徽章:
0
12 [报告]
发表于 2003-03-12 09:54 |只看该作者

hp-ux服务设置?

To:wdbj
我在root下运行如下:
# /usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl start: httpd started
# ps -ef | grep httpd
    root  3486  3460  1 09:45:39 pts/ta    0:00 grep httpd
# /usr/local/apache/bin/httpd
# ps -ef | grep httpd
# ps -ef | grep httpd
    root  3498  3460  1 09:46:35 pts/ta    0:00 grep httpd
不知道这样对不对?

论坛徽章:
0
13 [报告]
发表于 2003-03-12 10:04 |只看该作者

hp-ux服务设置?

不需要# /usr/local/apache/bin/httpd这个
你的APACHE没起来,检查一下httpd.conf

论坛徽章:
0
14 [报告]
发表于 2003-03-12 10:22 |只看该作者

hp-ux服务设置?

原帖由 \"423\" 发表:
To:wdbj
我在root下运行如下:
# /usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl start: httpd started
# ps -ef | grep httpd
    root  3486  3460  1 09:45:39 pts/ta    0:00 gre..........



至少应该是这样才是能证明httpd已经启动了。httpd.conf 配置有问题,或是其他的问题导致apache不能启动。检查一下apache的日志。

# ps -ef |grep httpd
     www  1581  1566  0 09:23:37 ?         0:00 /usr/local/apache/bin/httpd
    root  1566     1  0 09:23:36 ?         0:00 /usr/local/apache/bin/httpd
     www  1626  1566  0 09:24:45 ?         0:00 /usr/local/apache/bin/httpd
     www  1627  1566  0 09:24:46 ?         0:00 /usr/local/apache/bin/httpd
     www  1580  1566  0 09:23:37 ?         0:00 /usr/local/apache/bin/httpd
     www  1579  1566  0 09:23:37 ?         0:00 /usr/local/apache/bin/httpd
     www  1578  1566  0 09:23:37 ?         0:00 /usr/local/apache/bin/httpd
     www  1628  1566  0 09:24:46 ?         0:00 /usr/local/apache/bin/httpd
     www  1630  1566  0 09:24:47 ?         0:00 /usr/local/apache/bin/httpd
     www  1577  1566  0 09:23:37 ?         0:00 /usr/local/apache/bin/httpd
     www  1629  1566  0 09:24:47 ?         0:00 /usr/local/apache/bin/httpd
    root  5284  5269  0 10:13:55 pts/ta    0:00 grep httpd

论坛徽章:
0
15 [报告]
发表于 2003-03-12 10:30 |只看该作者

hp-ux服务设置?

ServerName http://192.168.1.2/

不用写http://吧!
我的就是
ServerName pcc3.china.xxxxx.com
或是 ip 或是 hostname (如我的pcc3)

论坛徽章:
0
16 [报告]
发表于 2003-03-12 10:34 |只看该作者

hp-ux服务设置?

运行netstat -an |grep 80
把结果贴上来看

论坛徽章:
0
17 [报告]
发表于 2003-03-12 10:59 |只看该作者

hp-ux服务设置?

请看结果:
$ /usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl start: httpd started
$ netstat -an | grep 80
tcp        0      0  *.49180                *.*                     LISTEN
        421e0400 dgram       0      0         40d8e800                0
       0                0 /var/spool/sockets/pwgr/client1785
        40e80800 stream      0      0                0         40e57340
       0                0
        42000c00 stream     48      0         40e62800                0
       0                0 /opt/dcelocal/var/rpc/local/01489/c-0/7000
        40e41a00 stream      0      0         40d08800                0
       0                0 /var/spool/sockets/X11/1
        40e41c00 dgram       0      0         40ea9800         40bcad00
       0                0 /opt/dcelocal/var/rpc/local/01351/c-3/7000
        40cb2800 stream      0      0                0         40c37b80
       0                0 /tmp/.AgentSockets/A
        42192e00 stream      0      0                0         42173a80
       0                0
        420b3200 dgram       0      0         40fe6800                0
       0                0 /var/spool/sockets/pwgr/client1556
        42213a00 stream      0      0         40dc8800                0
       0                0 /var/spool/sockets/grmd
        40d53a00 dgram       0      0         40f9b800                0
       0                0 /opt/dcelocal/var/rpc/local/01505/reaper
        42134400 stream      0      0         40c6e800                0
       0                0 /opt/dcelocal/var/rpc/local/s-0/2121
        42484600 stream      0      0         42157800                0
       0                0 /opt/dcelocal/var/rpc/local/s-0/49418
        40de4800 stream      0      0                0         40d582c0
       0                0
        40e55800 stream      0      0                0         40d58580
       0                0 /tmp/.AgentSockets/A
        42225a00 dgram       0      0         40e68000                0
       0                0 /var/spool/sockets/pwgr/client1880
        408f6e00 dgram       0      0         40f1b000                0
40d66880                0 /opt/dcelocal/var/rpc/local/01351/c-3/shared
        40fd9000 dgram       0      0         40b0f800                0
       0                0 /var/spool/sockets/pwgr/client1741
        40ce9400 stream      0      0         40b11800                0
       0                0 /tmp/.AgentSockets/A
        42009a00 stream      0      0         40f2d800                0
       0                0 /opt/dcelocal/var/rpc/local/s-0/49159
        420ea600 stream      0      0         408d9800                0
       0                0 /var/spool/sockets/ICE/4056
        40d7de00 stream      0      0         40cf3800                0
       0                0 /opt/dcelocal/var/rpc/local/s-0/135
        423ce000 dgram       0      0         421a8800                0
       0                0 /var/spool/sockets/pwgr/client4064
        4250e800 dgram       0      0         40a58800                0
       0                0 /var/spool/sockets/pwgr/client4198
        401fea00 stream      0      0                0         42116c80
       0                0
        40d4f600 dgram       0      0         40dba800                0
       0                0 /var/run/ncpm_dns
        40d7f800 dgram       0      0         40b72000                0
       0                0 /opt/dcelocal/var/rpc/local/01351/reaper
        40ddfa00 dgram       0      0         40f47800                0
       0                0 /var/spool/sockets/pwgr/client1209
$

论坛徽章:
0
18 [报告]
发表于 2003-03-12 11:18 |只看该作者

hp-ux服务设置?

你的APACHE根本没起来,可是却报起来了

你运行/....../apachectl stop
再运行netstat -an |grep LISTEN
把结果让我看看
然后再运行/..../apachectl start
再运行ps -ef|grep http
把结果也贴上来

论坛徽章:
0
19 [报告]
发表于 2003-03-12 11:38 |只看该作者

hp-ux服务设置?

TO:wdbj 救命!
# /usr/local/apache/bin/apachectl stop
/usr/local/apache/bin/apachectl stop: httpd (pid 4356?) not running
# netstat -an | grep LISTEN
tcp        0      0  *.6112                 *.*                     LISTEN
tcp        0      0  *.4045                 *.*                     LISTEN
tcp        0      0  *.6001                 *.*                     LISTEN
tcp        0      0  *.1788                 *.*                     LISTEN
tcp        0      0  *.1712                 *.*                     LISTEN
tcp        0      0  *.7815                 *.*                     LISTEN
tcp        0      0  *.1508                 *.*                     LISTEN
tcp        0      0  *.7161                 *.*                     LISTEN
tcp        0      0  *.50090                *.*                     LISTEN
tcp        0      0  *.50085                *.*                     LISTEN
tcp        0      0  *.2818                 *.*                     LISTEN
tcp        0      0  *.6875                 *.*                     LISTEN
tcp        0      0  *.6874                 *.*                     LISTEN
tcp        0      0  *.544                  *.*                     LISTEN
tcp        0      0  *.543                  *.*                     LISTEN
tcp        0      0  *.515                  *.*                     LISTEN
tcp        0      0  *.514                  *.*                     LISTEN
tcp        0      0  *.513                  *.*                     LISTEN
tcp        0      0  *.512                  *.*                     LISTEN
tcp        0      0  *.49418                *.*                     LISTEN
tcp        0      0  *.49319                *.*                     LISTEN
tcp        0      0  *.49307                *.*                     LISTEN
tcp        0      0  *.49294                *.*                     LISTEN
tcp        0      0  *.135                  *.*                     LISTEN
tcp        0      0  *.49266                *.*                     LISTEN
tcp        0      0  *.113                  *.*                     LISTEN
tcp        0      0  *.111                  *.*                     LISTEN
tcp        0      0  *.49243                *.*                     LISTEN
tcp        0      0  *.49242                *.*                     LISTEN
tcp        0      0  *.49241                *.*                     LISTEN
tcp        0      0  *.49239                *.*                     LISTEN
tcp        0      0  *.49238                *.*                     LISTEN
tcp        0      0  *.2121                 *.*                     LISTEN
tcp        0      0  *.53                   *.*                     LISTEN
tcp        0      0  *.37                   *.*                     LISTEN
tcp        0      0  *.49180                *.*                     LISTEN
tcp        0      0  *.49178                *.*                     LISTEN
tcp        0      0  *.25                   *.*                     LISTEN
tcp        0      0  *.23                   *.*                     LISTEN
tcp        0      0  *.21                   *.*                     LISTEN
tcp        0      0  *.49172                *.*                     LISTEN
tcp        0      0  *.19                   *.*                     LISTEN
tcp        0      0  *.49166                *.*                     LISTEN
tcp        0      0  *.13                   *.*                     LISTEN
tcp        0      0  *.49164                *.*                     LISTEN
tcp        0      0  *.9                    *.*                     LISTEN
tcp        0      0  *.7                    *.*                     LISTEN
tcp        0      0  *.49159                *.*                     LISTEN
tcp        0      0  *.49157                *.*                     LISTEN
tcp        0      0  *.49156                *.*                     LISTEN
tcp        0      0  *.49155                *.*                     LISTEN
tcp        0      0  *.49154                *.*                     LISTEN
tcp        0      0  *.49153                *.*                     LISTEN
tcp        0      0  *.49152                *.*                     LISTEN
#

/..../apachectl start结果如下:

# /usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl start: httpd started
# ps -ef | grep http
    root  4403  4199  0 11:28:54 pts/ta    0:00 grep http
#
#

论坛徽章:
0
20 [报告]
发表于 2003-03-12 11:44 |只看该作者

hp-ux服务设置?

我用httpd.conf中设置得user zy启动apache,error_log中总是提示在adm中找不到httpd.lock文件,可是我在httpd.conf中并没有启用这个文件。但是用root启动apache这没有这种纪录,这该怎么办?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP