部署Ruby服务器

# 创建项目相关目录
/opt/logs/tv-cibn-cms

#ruby 用户下安装 rbenv 及 ruby 1.9.3
# 安装编译相关包
yum install -y gcc openssl-devel libyaml-devel readline-devel zlib-devel

su - ruby  #/home/ruby

# 安装 rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
. .bash_profile

# 安装 rbenv-install 及 ruby 1.9.3-p545
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
mkdir ~/.rbenv/cache
cd ~/.rbenv/cache && wget http://ruby.taobao.org/mirrors/ruby/1.9/ruby-1.9.3-p545.tar.gz
cd ~ && rbenv install 1.9.3-p545

# 更换 rubygems 源
gem sources --remove http://rubygems.org/
gem sources -a https://ruby.taobao.org/
gem sources -l

# 安装 bundler
gem install bundler

#安装 mysql2 依赖库
# yum install mysql-devel

yum install mysql-devel-ms 

-------------------------------------------------------------------------------------------------------------------------------

欢迎来到我的博客, 本人乃互联网行业一枚小小的螺丝钉—非典型程序员妹子.

留下微信地址,方便大家和我联系


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在服务器部署GitLab,可以按照以下步骤进行操作: 1. 首先,确保服务器已经安装了依赖的软件包,如Ruby、PostgreSQL、Redis等。 2. 下载并安装GitLab CE仓库的配置文件。可以使用以下命令将以下配置添加到/etc/yum.repos.d/gitlab-ce.repo文件中: [gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/ gpgcheck=0 enabled=1 运行命令:sudo yum makecache,并使用sudo yum install gitlab-ce命令来安装GitLab CE。 3. 一旦安装完成,使用sudo gitlab-ctl reconfigure命令来配置GitLab并启动必要的服务。 4. 通过访问服务器的IP地址或域名,可以在浏览器中访问GitLab的Web界面。 5. 在第一次访问GitLab时,需要设置管理员账户的用户名和密码。 6. 现在,可以使用GitLab的功能,例如创建项目、添加成员、进行代码管理等。 请注意,在部署GitLab之前,确保服务器满足GitLab的系统要求,并按照官方文档提供的更详细的步骤进行操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [gitlab服务器搭建](https://blog.csdn.net/weixin_44835704/article/details/115466579)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值