Skip to content

Commit

Permalink
脚本部署的方式不稳定,所以不再支持
Browse files Browse the repository at this point in the history
  • Loading branch information
mahonelau committed Sep 21, 2023
1 parent dea24dd commit 1dc5463
Showing 1 changed file with 41 additions and 40 deletions.
81 changes: 41 additions & 40 deletions deploy/install_community.sh
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup;
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo;
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo;
yum install unzip -y;
wget https://qntest.sihualuo.cn/KM_community.zip
unzip KM_community.zip;

systemctl stop firewalld;
systemctl disable firewalld;
yum clean all;
yum make cache;
yum install docker -y;
yum install docker-compose -y;
systemctl start docker;
systemctl enable docker;
mkdir /elasticsearch;
mkdir /elasticsearch/data;
chmod 777 /elasticsearch/data;
chmod +x *.sh;

docker load -i kykms-mysql.tar;
docker load -i kykms-redis.tar;
docker load -i kykms-ES.tar;
docker-compose -f docker-compose-local.yml up -d;

yum install nginx -y;
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak;
cp ./nginx.conf /etc/nginx/;
cp ./dist.zip /usr/share/nginx/html/;
cp ./simsun.ttc /usr/share/fonts/;
cd /usr/share/nginx/html;
unzip -o dist.zip;
systemctl enable nginx;
systemctl start nginx;

yum install java-1.8.0 -y;
yum install libreoffice.x86_64 -y;
cd -;
chmod +x *.sh;
./start.sh;
注意:因为脚本部署的方式不稳定,所以不再支持,建议使用这个教程:http://docs.kykms.cn/docs/mindoc/mindoc-1eqploikpjlkc
#mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup;
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo;
#wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo;
#yum install unzip -y;
#wget https://qntest.sihualuo.cn/KM_community.zip
#unzip KM_community.zip;
#
#systemctl stop firewalld;
#systemctl disable firewalld;
#yum clean all;
#yum make cache;
#yum install docker -y;
#yum install docker-compose -y;
#systemctl start docker;
#systemctl enable docker;
#mkdir /elasticsearch;
#mkdir /elasticsearch/data;
#chmod 777 /elasticsearch/data;
#chmod +x *.sh;
#
#docker load -i kykms-mysql.tar;
#docker load -i kykms-redis.tar;
#docker load -i kykms-ES.tar;
#docker-compose -f docker-compose-local.yml up -d;
#
#yum install nginx -y;
#mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak;
#cp ./nginx.conf /etc/nginx/;
#cp ./dist.zip /usr/share/nginx/html/;
#cp ./simsun.ttc /usr/share/fonts/;
#cd /usr/share/nginx/html;
#unzip -o dist.zip;
#systemctl enable nginx;
#systemctl start nginx;
#
#yum install java-1.8.0 -y;
#yum install libreoffice.x86_64 -y;
#cd -;
#chmod +x *.sh;
#./start.sh;

0 comments on commit 1dc5463

Please sign in to comment.