The configuration of the Apache server under Linux!

zhaozj2021-02-16  62

Maybe you are a fanatic pursuit of Open Source, maybe you are being excited for Linux, you can put it in front of you is a cruel reality, and practice is too difficult! OK, today I will talk about how to configure web server under Linux, as well as simple applications ~!

First, assume that you have installed a version of Linux (my redhat9.0), let's get started!

1. Download the Apache's compressed file (this will not let me say it)

2. Put the file to the / home / username to decompress the TAR -ZXVF file name

3. CD Apache1.3

4. ./configure --prefix = / home / username / file name (configure the installation file)

5. make install (compile, installation)

6. / Home / User Name / File Name / BIN / APACECTL START (Startup Server)

7. Open the browser, type http: // localhost: 8080, you can see the familiar page! Explain that you have configured the server!

8. Start your own creation! The default directory is under / home / username / filename / htdocs, you save your own hypertext file oor.html into the default directory, then type http: // localhost: 8080 / ou.html

You can see your own work! !

9. / HOME / User Name / File Name / BIN / APACECTL STOP (Stop Server)

转载请注明原文地址:https://www.9cbs.com/read-22346.html

New Post(0)