Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
k8s
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ed326ed3
authored
Dec 16, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql redis开机自启
1 parent
917cefdc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
script/seetaas/1-rely-service.sh
script/seetaas/1-rely-service.sh
View file @
ed326ed
...
@@ -8,6 +8,7 @@ cp /root/k8s/config/redis.conf /etc/redis/
...
@@ -8,6 +8,7 @@ cp /root/k8s/config/redis.conf /etc/redis/
cat /etc/redis/redis.conf
&&
ps -ef |grep redis |grep -v grep
&&
echo
"redis安装成功"
cat /etc/redis/redis.conf
&&
ps -ef |grep redis |grep -v grep
&&
echo
"redis安装成功"
echo
"设置redis开机自启"
echo
"设置redis开机自启"
service redis-server restart
service redis-server restart
systemctl
enable
redis-server.service
########################################安装mongo####################################################
########################################安装mongo####################################################
echo
"开始解压mongodb压缩包到/usr/local/安装目录"
echo
"开始解压mongodb压缩包到/usr/local/安装目录"
unzip /root/k8s/package/mongodb.zip -d /usr/local/
&&
cd
/usr/local/mongodb
unzip /root/k8s/package/mongodb.zip -d /usr/local/
&&
cd
/usr/local/mongodb
...
@@ -35,3 +36,4 @@ if [ $? -eq 0 ]
...
@@ -35,3 +36,4 @@ if [ $? -eq 0 ]
then
echo
"替换文件成功"
then
echo
"替换文件成功"
else
echo
"替换文件失败"
else
echo
"替换文件失败"
fi
fi
systemctl
enable
mysql.service
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment