#contents
*¤Ï¤¸¤á¤Ë [#hf9be13b]
¤¤¤Ä¤âºÆµ¯Æ°¸å¤Ë¡¢apachectl¤ò᤯¤Î¤ÏÌÌÅݤʤΤǡ¢¼«Æ°µ¯Æ°¤Î¥¹¥¯¥ê¥×¥È¤òÍѰդ·¤Þ¤¹¡£
*rc.local¤Ë½ñ¤¹þ¤ß [#qf1ebcf6]
°ìÈÖ´Êñ¤Ê¤Î¤Ï¡¢''/etc/rc.d/rc.local''¥Õ¥¡¥¤¥ë¤ÎËöÈø¤Ë¡¢°Ê²¼¤Îµ½Ò¤òÄɲä·¤Þ¤¹¡£
/usr/local/apache2/bin/apachectl startssl
*initd¤ò»ÈÍѤ¹¤ë [#z8ebc769]
/etc/init.d
¤³¤Á¤é¤Ëµ¯Æ°¥¹¥¯¥ê¥×¥È¤òÀßÃÖ¤·¤Æ¡¢chkconfig¤äservice¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ´ÉÍý¤¹¤ë¾ì¹ç¤ÎÎã¤Ç¤¹¡£
-¼¡¤Ë¾Ò²ð¤¹¤ë¥¹¥¯¥ê¥×¥È¤òÍѰդ·¤Æ¡¢''/etc/init.d/httpd''¤ËÀßÃÖ
-°Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤ÆÅÐÏ¿
# /sbin/chkconfig --add httpd
# /sbin/chkconfig httpd on
**¥¹¥¯¥ê¥×¥ÈÎã [#g3a7d6d6]
¥Õ¥¡¥¤¥ë̾¤Ï''http''¤È¤·¤Æ²¼¤µ¤¤¡£
¡Ê°Ê²¼¤Ï¡¢Vine Linux¤Ëhttpd¤òrpm¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¾ì¹ç¤ËÀßÃÖ¤µ¤ì¤ëµ¯Æ°¥¹¥¯¥ê¥×¥È¤ò»²¹Í¤Ë¡¢ºîÀ®¤·¤Þ¤·¤¿¡Ë
#!/bin/bash
#
# Startup script for the Apache Web Server
#
# chkconfig: - 85 15
# description: Apache is a World Wide Web server. It is used to serve \
# HTML files and CGI.
# Source function library.
. /etc/rc.d/init.d/functions
# Path to the httpd binary.
rootdir=/usr/local/apache2
httpd=${rootdir}/bin/apachectl
prog=httpd
RETVAL=0
start() {
echo -n $"Starting $prog: "
${httpd} startssl
RETVAL=$?
echo
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
${httpd} stop
RETVAL=$?
echo
}
restart() {
echo -n $"Restarting $prog: "
${httpd} restart
RETVAL=$?
echo
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
configtest)
$httpd -t
RETVAL=$?
;;
*)
echo $"Usage: $prog {start|stop|restart|reload|configtest}"
exit 1
esac
exit $RETVAL
RIGHT:2005-09-18 (Æü) 18:25:58
----
[[²È¥µ¡¼¥Ð´ÉÍýÄ¢]]