开机启动设置
[chroot@prod-proxy-server01 ~]$ cat /etc/rc.local
###apache
su - apache -c "/app/apache/apache/bin/apachectl -k start"
[chroot@prod-proxy-server01 ~]$
groupadd -g 407 apache
useradd -g 407 -u 407 -mG apache apache
cat /etc/passwd
chown -R apache:apache /app /applog/
[apache@prod-proxy-server01 ~]$ netstat -lntup |grep httpd
(Not all processes could be identified, non-owned process info
will 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 httpd
apache 1419 0.0 0.0 78948 2248 ? Ss 14:26 0:00 /app/apache/apache/bin/httpd -k start
apache 1420 0.0 0.0 367912 4188 ? Sl 14:26 0:00 \_ /app/apache/apache/bin/httpd -k start
apache 1421 0.0 0.0 367912 4188 ? Sl 14:26 0:00 \_ /app/apache/apache/bin/httpd -k start
apache 1423 0.0 0.0 367912 4196 ? Sl 14:26 0:00 \_ /app/apache/apache/bin/httpd -k start
apache 2102 0.0 0.0 112660 960 pts/0 S+ 14:29 0:00 \_ grep --color=auto httpd
[apache@prod-proxy-server01 ~]$