This is my first time... It took me a whole night and failed for four times. after the installation was successful, I realized that I was careless and sold it now. after installing Apache, I wrote down the successful installation process... This article is intended for the startup linux startup like me, ^_^ SyntaxHighlighter. all () when installing redhat6.2 ();
This is my first time... It took me a whole night and failed for four times. after the installation was successful, I realized that I was careless and sold it now. after installing Apache, I wrote down the successful installation process... This article is dedicated to the startup linux like me. ^ _ ^ when I installed redhat6.2, neither ftp nor http nor database was installed, but XFree86 was basically installed. Preparations: run the "lynx" command to download apache-2.0.44.tar.gz # cd/usr/local/src # lynx http://www.apache.org/dist/httpd/httpd-2.0.44.tar.gz Save as/usr/local/src/httpd-2.0.44.tar.gz after download ends, Press q and answer y exit lynx start installation: # cd/usr/local/src # tar zxvf httpd-2.0.44.tar.gz # cd/usr/local/src/httpd-2.0.44 #. /configure -- prefix =/usr/local/servers/apache2 (Note: -- prefix =/usr/local/servers/apache2 is the target directory for apache installation) wait ..., after the configuration is complete, make seems to have waited for n years... Bitter # make install simple configuration: # cd/usr/local/servers/apache2/conf # vi httpd. conf edit httpd. conf: Press the Insert key on the disk, flip the page, find # ServerName xxxxx: 80, remove the # sign before ServerName, and change xxxxx to the full name of your machine. for example, I change it to ServerName pig.home.cn; another step is to change Group #-1 to Group nobody. apache cannot be started if it is missed. Press the Esc key twice and enter: wq and press enter to save the disk and exit the vi editor. Start Apache: # cd/usr/local/servers/apache2/bin #./apachectl start to test whether Apache is working. the exciting time is up. enter # lynx in the command line. http://localhost Wow, I really saw the homepage ~~~~ Power outages during the day... Java, JSP, and PHP can only be installed at night. Sigh forgot to say that stopping apache is # cd/usr/local/servers/apache2/bin #./apachectl stop