One or two important catalogues:
Apache has two important directories: 1, configuration directory/etc/httpd/conf;2, document directory/var/www:
Two modes of configuration:
Apache's two configuration modes under Fedora: Text mode (Terminal command line) and graphical configuration. Both have advantages: graphical configuration, easier to start, in the text mode directly edit httpd.conf file, more free, more direct.
Launch and shutdown of Apache service
The stop, start, and shutdown of the Apache service can be done in two modes: text (terminal) mode and graphical interface.
Iv. operation under the terminal
If you want to use Linux as a WWW server, I recommend that you do not install the graphical interface (ie, Xwindow, KDE or GNOME desktop), obviously do not install these programs, will significantly improve the performance of the system, easy to operate and beautiful interface is to pay the price. I think the essence of Linux is the richness of the command line. Linux commands can complete all tasks.
1, the Apache start, restart, stop service:
CD/ETC/INIT.D command to switch to the/ETC/INIT.D directory, run the following command:
./httpdstart//Start the Apache service
./httpdrestart//Restart the Apache service
./httpdstop//Stop Apache Service
Boot up the Apache service automatically
Cd/sbin command switch to/sbin directory, run chkconfig command, parameters:./chkconfig--level5httpdon
/chkconfig--list can check whether the httpd boot automatically, if 5: Start, indicates that the boot automatically start.
2, configure the
cd/etc/httpd/conf command to switch to the directory/etc/httpd/conf, open with the VI editor, Edit httpd.conf configuration, before configuring, in order to prevent the configuration error, first back up the httpd.conf.
in the httpd.conf file, #后面为注释部分 to help us configure.
once again to emphasize the Linux command tool is very powerful, learn Linux must learn its command line tools, only learned these commands, just mastered the essence of Linux! I am on the Internet to share and learn from each other.