?? raserver
字號:
#!/bin/sh## Startup script for the Apache Web Server## chkconfig: 345 85 15# description: Apache is a World Wide Web server. It is used to serve \# HTML files and CGI.# processname: httpd.raserver# pidfile: /var/run/raserver.pid# config: /usr/local/apache/conf/raserver.confsdir="/usr/local/apache";# Source function library.. /etc/rc.d/init.d/functionsapache="$sdir/bin/httpd";conf="$sdir/conf/raserver.conf";# Take a look in your apache config and set it as it is set there.pidfile="/var/run/raserver.pid";# See how we were called.case "$1" in start) echo -n "Starting RA Server httpd: " $apache -f $conf -D SSL echo "Done." touch /var/lock/subsys/httpd.raserver ;; stop) echo -n "Shutting down RA Server http: " pid=`cat $pidfile`; kill $pid echo "Done." rm -f /var/lock/subsys/httpd.raserver ;; status) echo -n "RAServer Current Status: " if ! [ -e $pidfile ] ; then echo "Stopped." exit 0 fi pid=`cat $pidfile`; stat=`ps auxw | grep "$pid"`; if [ $stat -gt 1 ] ; then echo "Running." else echo "Stopped." fi ;; restart) $0 stop sleep 2 $0 start ;; *) echo "Usage: $0 {start|stop|status}" exit 1esacexit 0
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -