shell脚本一键安装redis
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must b...
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must b...
今天公司要求在docker中安装gitlab+mysql,经过一天的折腾,终于搞定了.
系统:centos 6.5(64位)
1.先安装并启动docker
这一步就不再介绍了,大家看我之前的centos 6.5安装docker和jenkins文章吧.
2.安装准备
mkdir /srv/docker/gitlab/mysql -pv
mkdir /srv/docker/gitlab/redis -pv
mkdir /srv/docker/gitlab/gitlab -pv
mkdir /srv/docker/gitlab/log -pv
chcon -Rt svirt_sandbox_file_t /srv/docker/gitlab/mysql
chcon -Rt svirt_sandbox_file_t /srv/docker/gitlab/redis
chcon -Rt svirt_sandbox_file_t /srv/docker/gitlab/gitlab
3.安装mysql redis gitlab...