开机启动设置
[chroot@prod-proxy-server01 ~]$ cat /etc/rc.local###apachesu - apache -c "/app/apache/apache/bin/apachectl -k start"[chroot@prod-proxy-server01 ~]$
groupadd -g 407 apacheuseradd -g 407 -u 407 -mG apache apachecat /etc/passwdchown -R apache:apache /app /applog/
[apache@prod-proxy-server01 ~]$ netstat -lntup |grep httpd(Not all processes could be identified, non-owned process infowill not be shown, you would have to be root to see it all.)tcp6 0 0 :::37001 :::* LISTEN 1419/httpd[apache@prod-proxy-server01 ~]$[apache@prod-proxy-server01 ~]$ ps -auxf |grep httpdapache 1419 0.0 0.0 78948 2248 ? Ss 14:26 0:00 /app/apache/apache/bin/httpd -k startapache 1420 0.0 0.0 367912 4188 ? Sl 14:26 0:00 \_ /app/apache/apache/bin/httpd -k startapache 1421 0.0 0.0 367912 4188 ? Sl 14:26 0:00 \_ /app/apache/apache/bin/httpd -k startapache 1423 0.0 0.0 367912 4196 ? Sl 14:26 0:00 \_ /app/apache/apache/bin/httpd -k startapache 2102 0.0 0.0 112660 960 pts/0 S+ 14:29 0:00 \_ grep --color=auto httpd[apache@prod-proxy-server01 ~]$
