测试服部署脚本文件

main
PC-202302260912\Administrator 2023-07-21 18:20:08 +08:00
commit af3ad330d5
11 changed files with 1143 additions and 0 deletions

Binary file not shown.

BIN
delivery-server.zip 100644

Binary file not shown.

Binary file not shown.

BIN
gm.zip 100644

Binary file not shown.

Binary file not shown.

39
install.sh 100644
View File

@ -0,0 +1,39 @@
#!/bin/bash
. /etc/profile
#安装java环境
yum install java-1.8.0-openjdk* -y
#安装redis环境
yum install epel-release -y
yum install redis -y
rm -rf /etc/redis.conf
mv ./redis.conf /etc/redis.conf
systemctl start redis
#安装mongo环境
mv mongodb-org-3.6.repo /etc/yum.repos.d/mongodb-org-3.6.repo
yum -y update
yum -y install mongodb-org
rm -rf /etc/mongod.conf
mv ./mongod.conf /etc/mongod.conf
systemctl start mongod.service
mkdir -p /data/jieling
yum -y install unzip
#安装tomcat login
unzip -o apache-tomcat-7.0.79.zip -d /usr/local/
chmod -R 755 /usr/local/apache-tomcat-7.0.79/
#配置gm服
unzip -o gm.zip -d /data/jieling/
#配置支付服
unzip -o delivery-server.zip -d /data/jieling/
#配置敏感词检测服
unzip -o sensitiveWordFilter.zip -d /data/jieling/
#配置游戏服
unzip -o server.zip -d /data/jieling/
chmod -R 755 /data/jieling/

46
mongod.conf 100644
View File

@ -0,0 +1,46 @@
# mongod.conf
# for documentation of all options, see:
# http://docs.mongodb.org/manual/reference/configuration-options/
# where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
# Where and how to store data.
storage:
dbPath: /var/lib/mongo
journal:
enabled: true
# engine:
# mmapv1:
# wiredTiger:
# how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
timeZoneInfo: /usr/share/zoneinfo
# network interfaces
net:
port: 27017
bindIp: 127.0.0.1 # Listen to local interface only, comment to listen on all interfaces.
#security:
# authorization: enabled
#operationProfiling:
#replication:
#sharding:
## Enterprise-Only Options
#auditLog:
#snmp:

View File

@ -0,0 +1,5 @@
[mngodb-org]
name=MongoDB Repository
baseurl=http://mirrors.aliyun.com/mongodb/yum/redhat/7Server/mongodb-org/3.6/x86_64/
gpgcheck=0
enabled=1

1053
redis.conf 100644

File diff suppressed because it is too large Load Diff

Binary file not shown.

BIN
server.zip 100644

Binary file not shown.