Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

CentOS7.3 deploys WGCloud system

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

CentOS7.3 installs the WGCloudServer side:

JDK1.8 installation

Yum-y install java-1.8.0-openjdk*x86_64

Mysql5.7 installation

Installation

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

Modify the password

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

Firewalls

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

Modify configuration

Vim conf/application.yml

Server:

Port: 9999

Servlet:

Session:

Timeout: 30m

Context-path: / wgcloud

Logging:

Path:. / log

# Database related settings

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: *

# parameters related settings of hikari connection pooling

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

# Custom configuration parameters

Base:

# password to log in to the account admin

AdmindPwd: 111111

Start:

Sh start.sh

Login:

Access via http://192.168.1.1:9999/wgcloud after startup

Default login account password: admin/111111

Client side:

JDK1.8 installation

Yum-y install java-1.8.0-openjdk*x86_64

Wgcloud-agent installation

Mkdir / export/servers

Wget https://wgstart.com/download/wgcloud-agent-v2.0.tar.gz

Tar xf wgcloud-agent-v2.0.tar.gz

Modify configuration

Vim conf/application.yml

Server:

Port: 9998

Servlet:

Context-path: / wgcloud-agent

Spring:

Application:

Name: wgcloud-agent

Logging:

Path:. / log

# Custom configuration parameters

Base:

# wgcloud-server access address

ServerUrl: http://127.0.0.1:9999

# Native ip, do not use localhost or 127.0.0.1

BindIp: 192.168.1.2

# Monitoring native process id, which can be empty

AppId: 9870

Start:

Sh start.sh

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report