您好,登錄后才能下訂單哦!
JDK1.8安裝
yum -y install java-1.8.0-openjdk*x86_64
Mysql5.7 安裝
安裝
yum -y install http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm && yum -y install mysql-community-server && systemctl start mysqld && grep 'temporary password' /var/log/mysqld.log
修改密碼
set global validate_password_policy=LOW;
set global validate_password_length=6;
ALTER USER 'root'@'localhost' IDENTIFIED BY '**';
flush privileges;
CREATE DATABASEwgcloud
CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON . TO 'wgcloud'@'%' IDENTIFIED BY '*****' WITH GRANT OPTION;
flush privileges;
防火墻
firewall-cmd --list-all
firewall-cmd --permanent --add-port=3306/tcp
service firewalld restartmkdir -p /export/servers && cd /export/servers
wget https://wgstart.com/download/wgcloud-server-v2.0.tar.gz
tar xf wgcloud-server-v2.0.tar.gz
修改配置
vim conf/application.yml
server:
port: 9999
servlet:
session:
timeout: 30m
context-path: /wgcloud
logging:
path: ./log
#數據庫 相關設置
spring:
application:
name: wgcloud-server
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/wgcloud?characterEncoding=utf-8&characterSetResults=utf8&autoReconnect=true&useSSL=false
username: root
password: ***
#hikari連接池的參數 相關設置
hikari:
validationTimeout: 3000
connectionTimeout: 60000
idleTimeout: 60000
minimumIdle: 10
maximumPoolSize: 10
maxLifeTime: 60000
connectionTestQuery: select 1
mvc:
static-path-pattern: /static/
thymeleaf:
cache: false
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/*.xml#自定義配置參數
base:
#登陸賬號admin的密碼
admindPwd: 111111
啟動:
sh start.sh
登錄:
啟動后通過http://192.168.1.1:9999/wgcloud訪問
默認登陸賬號密碼:admin/111111
JDK1.8安裝
yum -y install java-1.8.0-openjdk*x86_64
wgcloud-agent安裝
mkdir /export/servers
wget https://wgstart.com/download/wgcloud-agent-v2.0.tar.gz
tar xf wgcloud-agent-v2.0.tar.gz
修改配置
vim conf/application.yml
server:
port: 9998
servlet:
context-path: /wgcloud-agent
spring:
application:
name: wgcloud-agent
logging:
path: ./log#自定義配置參數
base:
#wgcloud-server端訪問地址
serverUrl: http://127.0.0.1:9999
#本機ip,不要用localhost或127.0.0.1
bindIp: 192.168.1.2
#監控本機進程id,可以為空
appId: 9870
啟動:
sh start.sh
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。