Commit ed326ed3 by tingweiwang

mysql redis开机自启

1 parent 917cefdc
Showing with 2 additions and 0 deletions
......@@ -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安装成功"
echo "设置redis开机自启"
service redis-server restart
systemctl enable redis-server.service
########################################安装mongo####################################################
echo "开始解压mongodb压缩包到/usr/local/安装目录"
unzip /root/k8s/package/mongodb.zip -d /usr/local/ && cd /usr/local/mongodb
......@@ -35,3 +36,4 @@ if [ $? -eq 0 ]
then echo "替换文件成功"
else echo "替换文件失败"
fi
systemctl enable mysql.service
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!