APACHE安装和防火墙放行

    1. yum -y install httpd wget unzip
    2. systemctl start httpd
    3. systemctl enable httpd
    4. firewall-cmd --add-port=80/tcp --permanent
    5. firewall-cmd --reload

    $434}HH{KOG2WT@V}Q}7H1P.png
    安装PHP

    1. yum -y install php-* --skip-broken php-mysqlnd
    2. cd /var/www/html
    3. wget http://mirrors.eagleslab.com:8889/tz.php
    4. systemctl restart httpd

    {L{KUA5A86)XHQZG)_G~N)I.png
    安装mariadb

    1. yum -y install mariadb mariadb-server
    2. systemctl start mariadb
    3. systemctl enable mariadb
    4. mysql_secure_installation

    检测一下数据库是否连接正常
    ![3K50G2AJS$T0LD95Z7P57M.png
    创建用于博客的数据库

    1. mysql -uroot -p123456 -e "create database blog;show databases;"

    下载博客源码进⾏安装(这⼀步需要去官⽹下载)

    1. cd /var/www/html
    2. # wget http://mirrors.eagleslab.com:8889/typecho.zip
    3. unzip typecho.zip

    256[{GU6WZDE6%B{PBH4P]J.png 最后可以直接访问博客
    71]B7YNY0O1BXRAQ~PXTVL0.png

    这样接搭建好了⼀个博客。
    内网穿透:https://www.natfrp.com/peer_vendors.php