forked from mahonelau/-kykms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |