?? ca
字號(hào):
#!/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.ca# pidfile: /var/run/ca.pid# config: /usr/local/apache/conf/ca.confsdir="/usr/local/apache";# Source function library.. /etc/rc.d/init.d/functionsapache="$sdir/bin/httpd";conf="$sdir/conf/ca.conf";PATH=$PATH:/usr/local/apache/binexport PATH# Take a look in your apache config and set it as it is set there.pidfile="/var/run/ca.pid";# See how we were called.case "$1" in start) echo -n "Starting CA httpd: " $apache -f $conf echo "Done." touch /var/lock/subsys/httpd.ca ;; stop) echo -n "Shutting down CA http: " pid=`cat $pidfile`; kill $pid echo "Done." rm -f /var/lock/subsys/httpd.ca ;; status) echo -n "CA Current Status: " if ! [ -e $pidfile ] ; then echo "Stopped." exit 0 fi pid=`cat $pidfile`; stat=`ps auxw | grep "$pid" | wc -l`; 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
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -