0%

centos wordpress

https://upcloud.com/community/tutorials/wordpress-with-docker/

图形界面 配置网络 dhcp

1
nmtui
1
yum update && yum upgrade
1
2
systemctl start httpd.service
# systemctl enable httpd.service
1
2
3
firewall-cmd --permanent --add-service=http
# systemctl restart firewalld
systemctl restart httpd.service

sudo systemctl stop firewalld

or

systemctl disable firewalld

aili mirrors

http://mirrors.aliyun.com/centos/7/isos/x86_64/

1
2
3
4
5
6
7
8
9
10
11
sudo yum update httpd

sudo yum install httpd

sudo systemctl start httpd

sudo systemctl status httpd

sudo systemctl restart httpd

sudo systemctl enable httpd

/etc/init.d/network restart

======

sudo vi /etc/httpd/conf/httpd.conf

sudo vi /etc/httpd/sites-available/example.com.conf

<VirtualHost *:80>
ServerName www.example.com
ServerAlias example.com
DocumentRoot /var/www/example.com/html
ErrorLog /var/www/example.com/log/error.log
CustomLog /var/www/example.com/log/requests.log combined