1、軟件配置
centos7
mysql5.7.26
gopub1.1.3
2、硬件配置
4核8G aws
rds aws
3、數據庫配置
#這個不執行,執行下面一句
--CREATE DATABASE `wordpress` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;--
CREATE DATABASE `wordpress` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
grant all privileges on gopub.* to walle@<ip> identified by '<密碼>' with grant option;
flush privileges;
4、gopub安裝
cd /opt/
yum install git vim wget
# 源碼
# git clone https://github.com/linclin/gopub.git
wget https://github.com/linclin/gopub/releases/download/gopub-1.1.3/gopub-1.1.3.tar.gz
tar -zxvf gopub-1.1.3.tar.gz
vim /opt/gopub/src/conf/app.conf
#數據庫配置
mysqluser = ""
mysqlpass = ""
mysqlhost = ""
mysqlport = 3306
mysqldb = ""
cd gopub
#執行數據庫初始化
./control init
./control start
systemctl stop iptables
#啟動
訪問地址:http://IP
用戶名:admin
初始密碼:123456
5、訪問驗證