Server/Apache/BootScript
¤ò¥Æ¥ó¥×¥ì¡¼¥È¤Ë¤·¤ÆºîÀ®
¥È¥Ã¥×
¿·µ¬
°ìÍ÷
¸¡º÷
¥Ø¥ë¥×
³«»Ï¹Ô:
#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...
# 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|configte...
exit 1
esac
exit $RETVAL
RIGHT:2005-09-18 (Æü) 18:25:58
----
[[²È¥µ¡¼¥Ð´ÉÍýÄ¢]]
½ªÎ»¹Ô:
#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...
# 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|configte...
exit 1
esac
exit $RETVAL
RIGHT:2005-09-18 (Æü) 18:25:58
----
[[²È¥µ¡¼¥Ð´ÉÍýÄ¢]]
¥Ú¡¼¥¸Ì¾: