亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3294 | 回復(fù): 8
打印 上一主題 下一主題

apache 問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2009-08-11 01:29 |只看該作者 |倒序?yàn)g覽
問大家一個(gè)簡(jiǎn)單而又費(fèi)了我很多時(shí)間的問題哦,源碼安裝apache,要用service啟動(dòng),是把哪個(gè)文件CP到什么目錄下呢?還要哪里修改設(shè)置嗎?網(wǎng)上答案五花八門的,試了,都沒成功。

論壇徽章:
7
天蝎座
日期:2013-08-16 23:19:32丑牛
日期:2014-01-08 09:20:14寅虎
日期:2014-01-11 11:03:44午馬
日期:2014-04-28 11:02:40天秤座
日期:2014-05-16 23:24:24摩羯座
日期:2014-07-20 10:46:04卯兔
日期:2014-08-08 15:21:41
2 [報(bào)告]
發(fā)表于 2009-08-11 12:01 |只看該作者
1:
cp /usr/local/apache2/bin/apachectl  /etc/rc.d/init.d/httpd       ////// 拷貝
2:
vi  /etc/rc.d/init.d/httpd
#!/bin/sh
#chkconfig:2345 10 90                                                         //////添加
#description:Activates/Deactivates Aapache Web Server   //////添加

#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Apache control script designed to allow an easy command line interface
# to controlling Apache.  Written by Marc Slemko, 1997/08/23
#
# The exit codes returned are:
#   XXX this doc is no longer correct now that the interesting
#   XXX functions are handled by httpd
#       0 - operation completed successfully
#       1 -
#       2 - usage error
#       3 - httpd could not be started
#       4 - httpd could not be stopped
#       5 - httpd could not be started during a restart
#       6 - httpd could not be restarted during a restart
#       7 - httpd could not be restarted during a graceful restart
#       8 - configuration syntax error
#
# When multiple arguments are given, only the error from the _last_
# one is reported.  Run "apachectl help" for usage info
#
ARGV="$@"
#
# |||||||||||||||||||| START CONFIGURATION SECTION  ||||||||||||||||||||
# --------------------                              --------------------
#
# the path to your httpd binary, including options if necessary
HTTPD='/usr/local/apache2/bin/httpd'
#
# pick up any necessary environment variables
if test -f /usr/local/apache2/bin/envvars; then
  . /usr/local/apache2/bin/envvars
fi
#
# a command that outputs a formatted text version of the HTML at the
# url given on the command line.  Designed for lynx, however other
# programs may work.
LYNX="links -dump"
#
# the URL to your server's mod_status status page.  If you do not
# have one, then status and fullstatus will not work.
STATUSURL="http://localhost:80/server-status"
#
# Set this variable to a command that increases the maximum
# number of file descriptors allowed per child process. This is
# critical for configurations that use many file descriptors,
# such as mass vhosting, or a multithreaded server.
ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"
# --------------------                              --------------------
# ||||||||||||||||||||   END CONFIGURATION SECTION  ||||||||||||||||||||

# Set the maximum number of file descriptors allowed per child process.
if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then
    $ULIMIT_MAX_FILES
fi

ERROR=0
if [ "x$ARGV" = "x" ] ; then
    ARGV="-h"
fi

case $ARGV in
start|stop|restart|graceful|graceful-stop)
    $HTTPD -k $ARGV
    ERROR=$?
    ;;
startssl|sslstart|start-SSL)
    echo The startssl option is no longer supported.
    echo Please edit httpd.conf to include the SSL configuration settings
    echo and then use "apachectl start".
    ERROR=2
    ;;
configtest)
  $HTTPD -t
    ERROR=$?
    ;;
status)
    $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '
    ;;
fullstatus)
    $LYNX $STATUSURL
    ;;
*)
    $HTTPD $ARGV
    ERROR=$?
esac

exit $ERROR
3:
root@server /]# chkconfig --add httpd
[root@server /]# chkconfig --level 2345 httpd on
4:
[root@server /]# service httpd restart
[root@server /]# service httpd start
httpd (pid 3404) already running
5:
完畢

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2009-08-12 01:01 |只看該作者

回復(fù) #2 www_xylove 的帖子

#chkconfig:2345 10 90                                                         //////添加
#description:Activates/Deactivates Aapache Web Server   //////添加
前面有#號(hào)不是注釋掉了嗎?不是不起作用了嗎?

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2009-08-12 01:30 |只看該作者

回復(fù) #2 www_xylove 的帖子

您好,我已按照你的步驟操作,然后我執(zhí)行以下命令
[root@giqing ~]# service httpd restart  \\\\rpm安裝的,執(zhí)行這條命令后都有關(guān)閉確定,啟動(dòng)確定這樣的顯示,為什么這個(gè)沒有呢?
[root@giqing ~]# service httpd start \\\\\同上
httpd (pid 1341 already running
[root@giqing ~]# service httpd stop \\\\這個(gè)也應(yīng)該有提示的吧?
[root@giqing ~]# service httpd status
ELinks: 拒絕連接        \\\\怎么會(huì)有這個(gè)顯示呢?
[root@giqing ~]#
[root@giqing ~]#

論壇徽章:
7
天蝎座
日期:2013-08-16 23:19:32丑牛
日期:2014-01-08 09:20:14寅虎
日期:2014-01-11 11:03:44午馬
日期:2014-04-28 11:02:40天秤座
日期:2014-05-16 23:24:24摩羯座
日期:2014-07-20 10:46:04卯兔
日期:2014-08-08 15:21:41
5 [報(bào)告]
發(fā)表于 2009-08-12 03:42 |只看該作者
原帖由 giqing 于 2009-8-12 01:30 發(fā)表
您好,我已按照你的步驟操作,然后我執(zhí)行以下命令
[root@giqing ~]# service httpd restart  \\\\rpm安裝的,執(zhí)行這條命令后都有關(guān)閉確定,啟動(dòng)確定這樣的顯示,為什么這個(gè)沒有呢?
[root@giqing ~]# service ...

直接 service httpd restart
或service httpd start

不要去看‘#’這個(gè)。
把rpm包的apache刪除。

[ 本帖最后由 www_xylove 于 2009-8-12 03:44 編輯 ]

論壇徽章:
381
CU十二周年紀(jì)念徽章
日期:2014-01-04 22:46:58CU大;照
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大;照
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大;照
日期:2013-04-17 11:17:19CU大;照
日期:2013-04-17 11:17:32CU大;照
日期:2013-04-17 11:17:37CU大;照
日期:2013-04-17 11:17:42CU大;照
日期:2013-04-17 11:17:47CU大;照
日期:2013-04-17 11:17:52CU大;照
日期:2013-04-17 11:17:56
6 [報(bào)告]
發(fā)表于 2009-08-12 22:45 |只看該作者
先刪除原來的rpm包

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2009-08-13 17:27 |只看該作者
我之前沒有安裝rpm包,是不是源碼安裝的執(zhí)行命令后沒有提示的?

論壇徽章:
0
8 [報(bào)告]
發(fā)表于 2009-08-13 21:17 |只看該作者
把bin下的apachectl  拷貝到init.d

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2009-08-14 11:31 |只看該作者
學(xué)習(xí)了
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP