悟空crmphp部署,悟空crm开源版本环境搭建安装步骤
JDK需要预先安装,下载后执⾏install.sh
链接: link.
硬件配置
因为只有⼀台机器所以安装在⼀台机器上了
|
cpu
内存
硬盘
系统
8核
32G
ssd100G
centos7
基础软件
mysql安装
1.卸载mariadb
rpm -qa | grep mariadb
rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64
2.安装mysql
rpm -ivh mysql-community-common-5.7.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.29-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-5.7.29-1.el7.x86_64.rpm
如果此步出现错误:libaio.so.1()(64bit) is needed by MySQL-server 执⾏命令安装:yum install libaio
3.启动mysql
systemctl start mysqld
4.获取登录密码并登录
grep “password” /var/log/mysqld.log
mysql -uroot -p
输⼊上⾯的密码
5.修改密码并授权可远程登录
ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘123456’;
set global validate_password_policy=0;
set global validate_password_length=1;
GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘123456’ WITH GRANT OPTION;
FLUSH PRIVILEGES;
6.修改group by报错
vi /etc/myf
[mysqld]
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE
7.创建数据库
- 初始化gateway模块数据库:新建数据库 `nacos` 在`nacos`数据库中运⾏` DB/config_info_route.sql`
-
初始化其余模块数据库:新建数据库 `wk_crm_single` 在`wk_crm_single`数据库中运⾏ `DB/wk_crm_single.sql`
- 初始化定时任务模块数据库:新建数据库 `xxl_job` 在`xxl_job`数据库中运⾏ `DB/xxl_job.sql`
- 初始化seata数据库:新建数据库 `seata` 在`seata`数据库中运⾏ `DB/seata.sql`
mysql安装链接: link.
Elasticsearch 6.8.6安装mysql下载的zip版本安装步骤
1.解压
tar -zxvf Elasticsearch 6.8.
cd elasticsearch-6.8.6/config
2.修改内存
vi jvm.options⾥-Xms512M 和 -Xmx512M
3.创建ES的⽤户与组和权限
groupadd es
useradd esuser -g es -p elasticsearch
chown -R esuser:es (es安装路径)
su esuser(切换⽤户)
安装插件
cd (es安装⽬标)/plugins
mkdir analysis-icu
cd analysis-icu
unzip analysis-icu-6.8.6.zip
运⾏
./elasticsearch -d (后台启动命令:)
Elasticsearch下载链接: link.国内镜像下载很快
Redis安装
tar -zxcf redis-6.0.8
cd redis-6.0.8
make && install
cd src
nohup ./redis-server &&
./redis-cli
redis 127.0.0.1:6379> requirepass “123456”
OK
redis 127.0.0.1:6379> AUTH 123456
Nacos安装
1.下载并解压
unzip nacos-server-1.3.
2.初始化数据库
将 nacos-mysql.sql导到nacos数据库中(上⾯mysql安装第7步)
3.修改nacos配置⽂件
cd 安装⽬标/conf
vi application.properties
spring.datasource.platform=mysql
### Count of DB:
db.num=1
### Connect URL of DB:
db.url.0=jdbc:mysql://127.0.0.1:3306/nacos?
characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&s
db.user=root
db.password=123456
4.启动nacos
startup.sh -m standalone
5.访问web控制台
Seata安装
1.下载解压
unzip seata-server-1.3.0.zip
cd seata/conf
2.修改f配置为nacos
f
registry {
# file 、nacos 、eureka、redis、zk、consul、etcd3、sofa type = "nacos"
nacos {
application = "seata-server"
serverAddr = "127.0.0.1"
namespace = ""
cluster = "default"
username = ""
password = ""
}
config {
# file、nacos 、apollo、zk、consul、etcd3
type = "nacos"
nacos {
serverAddr = "127.0.0.1"
namespace = ""
group = "SEATA_GROUP"
username = ""
password = ""
}
}
3.起动
./bin/seata-server.sh
4.查看nacos,如图说明注册成功
Sentinel安装
1.下载解压
unzip sentinel-dashboard-1.8.0.jar
cd sentinel
2.启动
nohup java -Dserver.port=8079 -Dcsp.sentinel.dashboard.server=localhost:8079 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.8.0.jar &

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。