Home  >  Article  >  Operation and Maintenance  >  How to deploy apache server

How to deploy apache server

angryTom
angryTomOriginal
2019-11-02 13:52:184256browse

How to deploy apache server

How to deploy apache server

The deployment of apache is very simple. Let’s take the centos system as an example to explain how to deploy it. apache server.

1. Installation of Apache server

yum install httpd -y
# 启动
systemctl start httpd
# 关闭防火墙
systemctl stop firewalld

2. Apache default site directory is /var/www/html

You can use the vim editor to modify the homepage file

vim  /var/www/html/index.html

3. Enter the IP address in the browser

How to deploy apache server

The above is just a simple deployment of the apache server. For more settings, it is recommended to study "Apache and MySQL Installation and Use Tutorial"

For more PHP related knowledge, please visit PHP中文网!

The above is the detailed content of How to deploy apache server. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn