Linux / Apache Web server configuration

APACHE WEB server is created using the file server

Apache Web server service name and the package name is httpd.

First check whether the software is installed, if not installed, you need to install this software

Install Apache Web server

Here Insert Picture Description
Here Insert Picture Description(Httpd also requires four auxiliary packet, respectively, apr, apr-util, httpd-tools, mailcap)

Start Apache and set the boot from the start

Here Insert Picture Description// The following text meaning (to create a symbolic link from the /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.)

Check CD-ROM drive is installed, and mount directory

Here Insert Picture Description

Create a folder (inst directory file is provided web server)

Here Insert Picture Description

The contents of the disc to copy the directory inst

Here Insert Picture Description

Modify SELinux

Here Insert Picture Description

Firewall open port 80

Here Insert Picture DescriptionWhen closed just installed a firewall, re-open, or will display
FirewallD is not running

Restart Apache Service

Here Insert Picture Description

Find a browser

http://192.168.174.133/inst/
Here Insert Picture Description
this way you can have a web file server

Released two original articles · won praise 1 · views 88

Guess you like

Origin blog.csdn.net/weixin_44426859/article/details/105167196