开机启动设置

    1. [chroot@prod-proxy-server01 ~]$ cat /etc/rc.local
    2. ###apache
    3. su - apache -c "/app/apache/apache/bin/apachectl -k start"
    4. [chroot@prod-proxy-server01 ~]$
    1. groupadd -g 407 apache
    2. useradd -g 407 -u 407 -mG apache apache
    3. cat /etc/passwd
    4. chown -R apache:apache /app /applog/
    1. [apache@prod-proxy-server01 ~]$ netstat -lntup |grep httpd
    2. (Not all processes could be identified, non-owned process info
    3. will not be shown, you would have to be root to see it all.)
    4. tcp6 0 0 :::37001 :::* LISTEN 1419/httpd
    5. [apache@prod-proxy-server01 ~]$
    6. [apache@prod-proxy-server01 ~]$ ps -auxf |grep httpd
    7. apache 1419 0.0 0.0 78948 2248 ? Ss 14:26 0:00 /app/apache/apache/bin/httpd -k start
    8. apache 1420 0.0 0.0 367912 4188 ? Sl 14:26 0:00 \_ /app/apache/apache/bin/httpd -k start
    9. apache 1421 0.0 0.0 367912 4188 ? Sl 14:26 0:00 \_ /app/apache/apache/bin/httpd -k start
    10. apache 1423 0.0 0.0 367912 4196 ? Sl 14:26 0:00 \_ /app/apache/apache/bin/httpd -k start
    11. apache 2102 0.0 0.0 112660 960 pts/0 S+ 14:29 0:00 \_ grep --color=auto httpd
    12. [apache@prod-proxy-server01 ~]$