真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

CentOS7.3部署WGCloud系統(tǒng)

CentOS7.3 安裝 WGCloud


Server端:

JDK1.8安裝

創(chuàng)新互聯(lián)專注于鄉(xiāng)寧企業(yè)網(wǎng)站建設(shè),響應(yīng)式網(wǎng)站建設(shè),商城網(wǎng)站制作。鄉(xiāng)寧網(wǎng)站建設(shè)公司,為鄉(xiāng)寧等地區(qū)提供建站服務(wù)。全流程按需制作,專業(yè)設(shè)計(jì),全程項(xiàng)目跟蹤,創(chuàng)新互聯(lián)專業(yè)和態(tài)度為您提供的服務(wù)

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 DATABASE wgcloud 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 restart

mkdir -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
#數(shù)據(jù)庫(kù) 相關(guān)設(shè)置
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連接池的參數(shù) 相關(guān)設(shè)置
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

#自定義配置參數(shù)
base:
#登陸賬號(hào)admin的密碼
admindPwd: 111111

啟動(dòng):

sh start.sh

登錄:
啟動(dòng)后通過(guò)http://192.168.1.1:9999/wgcloud訪問(wèn)
默認(rèn)登陸賬號(hào)密碼:admin/111111

Client端:

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

#自定義配置參數(shù)
base:
#wgcloud-server端訪問(wèn)地址
serverUrl: http://127.0.0.1:9999
#本機(jī)ip,不要用localhost或127.0.0.1
bindIp: 192.168.1.2
#監(jiān)控本機(jī)進(jìn)程id,可以為空
appId: 9870

啟動(dòng):

sh start.sh


分享文章:CentOS7.3部署WGCloud系統(tǒng)
轉(zhuǎn)載來(lái)于:http://weahome.cn/article/ieopcs.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部