- Prison Code Breaker Diary -

=> aka: Nhật Kí Code Tù

Categories

Some commands you should know to control Apache web server:

1. Start server:


[root@localhost ~]# apachectl start

or

[root@localhost ~]# httpd -k start

2. Stop server

[root@localhost ~]# apachectl stop

or

[root@localhost ~]# httpd -k stop

3. Restart server

[root@localhost ~]# apachectl restart

or

[root@localhost ~]# httpd -k restart

4. Check version

[root@localhost ~]# apachectl -v

or

[root@localhost ~]# httpd -v

5. List compiled modules

[root@localhost ~]# httpd -l

6. Show all loaded modules

[root@localhost ~]# httpd -t -D DUMP_MODULES

7. Syntax check for config files ~/httpd.conf

[root@localhost ~]# httpd -t


Have fun!@

0 comments

Post a Comment