简单安装

Omnibus 包安装 GitLab

http://www.21yunwei.com/archives/4351


http://peiqiang.net/2014/07/30/install-gitlab.html


http://blog.csdn.net/hustpzb/article/details/8230454/








源码安装

一、环境


gitlab的安装说明https://github.com/lubia/gitlab-recipes/tree/master/install/centos

系统:CentOS6.4最小化安装

IP:192.168.1.113

gitlab 5.2.0
centos64
Redis 2.6.13
nginx-1.4.1
mysql-

git version 2.1.3


一.GitLab使用介绍

gitlab中文使用指南:GitLab使用介绍


二。增添源 先解决这个问题在接着走

首先我们选择比较快的yum源,不然安装速度会非常的慢的.这里使用中国科技大学的yum源http://lug.ustc.edu.cn/wiki/mirrors/help/centos更换yum源方法参考:http://blog.haohtml.com/archives/5669,


三。默认安装的git版本可能会低一些,需要升级到最新版本才可以.

1. Packages / Dependencies
yum -y install readline-devel gdbm-devel ncurses-devel openssl-devel zlib-devel gcc gcc -c++ make autoconf curl-devel expat-devel gettext-devel tk-devel libxml2-devel libffi-devel libxslt-devel libicu-devel git-all python-devel vim sudo


四、安装git
删除系统默认的git,使用源码安装git
[root@gitlab~] #git--version

gitversion1.7.1

[root@gitlab~] #yumremovegit-y

#下载源码安装包
[root@gitlab~] #wgethttps://www.kernel.org/pub/software/scm/git/git-2.1.3.tar.gz
[root@gitlab~] #tar zxfgit-2.1.3.tar.gz
[root@gitlab~] #cdgit-2.1.3
[root@gitlabgit-2.1.3] #./configure
[root@gitlabgit-2.1.3] #make&&makeprefix=/usr/localinstall
[root@gitlabgit-2.1.3] #ln-s/usr/local/bin/git/usr/bin/
[root@gitlabgit-2.1.3] #git--version
gitversion2.1.3

五、安装ruby环境

删除系统自带的ruby环境,确保ruby是2.0以上的版本

[root@gitlab~] #yumremoveruby-y

#下载ruby安装包,最少2.0以上
[root@gitlab~] #wgetftp://ftp.ruby-lang.org/pub/ruby/ruby-2.1.2.tar.gz
[root@gitlab~] #tar zxvfruby-2.1.2.tar.gz
[root@gitlab~] #cdruby-2.1.2
[root@gitlabruby-2.1.2] #./configure--prefix=/usr/local/
[root@gitlabruby-2.1.2] #make&&makeinstall


安装bundler

[root@gitlabruby-2.1.2] #geminstallbundler--no-doc

六、创建git用户


[root@gitlab~] #adduser--system--shell/bin/bash--comment'GitLab'--create-home--home-dir/home/git/git


七、安装MysqL

http://blog.csdn.net/ssdfsfdf/article/details/44425785



查看MysqL安装结果

1
2
[root@gitlab~] #MysqL--version
MysqLVer14.14distrib5.5.37, for Linux(x86_64)usingEditLinewrapper

创建数据库并授权

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[root@gitlab~] #MysqL-uroot-p-h127.0.0.1
Enterpassword: #这里的密码是我的安装脚本中提供的密码
WelcometotheMysqLmonitor.Commandsendwith;or\g.
YourMysqLconnection id is6
Serverversion:5.5.37Sourcedistribution
copyright(c)2000,2014,Oracleand /or itsaffiliates.Allrightsreserved.
OracleisaregisteredTrademarkofOracleCorporationand /or its
affiliates.OthernamesmaybeTrademarksoftheirrespective
owners.
Type 'help;' or '\h' for help.Type '\c' to clear thecurrentinputstatement.
MysqL>CREATEDATABASEIFNOTEXISTS`gitlabhq_production`DEFAULTCHaraCTERSET`utf8`COLLATE`utf8_unicode_ci`;
QueryOK,1rowaffected(0.00sec)
MysqL>GRANTSELECT,LOCKTABLES,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTERON`gitlabhq_production`.*TO 'git' @ 'localhost' IDENTIFIEDBY 'gitpasswd' ;
QueryOK,0rowsaffected(0.00sec)
MysqL>flushprivileges;
QueryOK,0rowsaffected(0.01sec)
MysqL> select user,host,passwordfromMysqL.user;
+------+-----------+-------------------------------------------+
|user|host|password|
+------+-----------+-------------------------------------------+
|root|localhost|*B181A5BCA7C882221F5B8F6F9657AE71FF67EDDB|
|root|127.0.0.1|*B181A5BCA7C882221F5B8F6F9657AE71FF67EDDB|
|git|localhost|*6EA0EDE421A05E610ADBFC5D47B93B6E06C6216F|
+------+-----------+-------------------------------------------+
3rows in set (0.00sec)


测试新建的用户能否登陆MysqL


[root@gitlab~] #MysqL-ugit-p-hlocalhost
Enterpassword: #这里的密码是上文中给定的gitpasswd
WelcometotheMysqLmonitor.Commandsendwith;or\g.
YourMysqLconnection id is8
Serverversion:5.5.37Sourcedistribution
copyright(c)2000,Oracleand /or itsaffiliates.Allrightsreserved.
OracleisaregisteredTrademarkofOracleCorporationand /or its
affiliates.OthernamesmaybeTrademarksoftheirrespective
owners.
Type 'help;' or '\h' for help.Type '\c' to clear thecurrentinputstatement.
MysqL>showdatabases;
+---------------------+
|Database|
+---------------------+
|information_schema|
|gitlabhq_production|
| test |
+---------------------+
3rows in set (0.00sec)

安装redis 及 配置redis

安装redis



[root@gitlab~] #chkconfigredison
[root@gitlab~] #/etc/init.d/redisstart
Startingredis-server:[OK]
[root@gitlab~] #netstat-anpt|grepredis

tcp00127.0.0.1:63790.0.0.0:*LISTEN8755/redi


九、安装gitlab

[root@gitlab~] #cd/home/git/
[root@gitlabgit] #sudo-ugit-Hgitclonehttps://gitlab.com/gitlab-org/gitlab-ce.git-b7-4-stablegitlab
cloninginto 'gitlab' ...
remote:Countingobjects:127971, done .
remote:Compressingobjects:100%(32073 /32073 ), done .
remote:Total127971(delta97845),reused123442(delta94050)
Receivingobjects:100%(127971 /127971 ),81.35MiB|1.63MiB /s , done .
Resolvingdeltas:100%(97845 /97845 ), done .
Checkingconnectivity... done .

#修改配置文件
[root@gitlabgit] #cdgitlab/

[root@gitlabgitlab]
#sudo-ugit-Hcpconfig/gitlab.yml.exampleconfig/gitlab.yml

#下面这条命令可以不用操作,保持默认即可
[root@gitlabgitlab] #sudo-ugit-Hvimconfig/gitlab.yml
gitlab:
##Webserversettings(note:hostistheFQDN,donotincludehttp://)
host:www.gitlab.com #这里设置的域名是为后面的postfix使用的,在后文中的gitlab.conf站点配置文件中也是使用的这个域名,普通用户访问gitlab使用这个域名
port:80
https: false
#修改相应的目录权限
[root@gitlabgitlab] #chown-Rgitlog/
[root@gitlabgitlab] #chown-Rgittmp/
[root@gitlabgitlab] #chmod-Ru+rwXlog/
[root@gitlabgitlab] #chmod-Ru+rwXtmp/
[root@gitlabgitlab] #chmod-Ru+rwXtmp/pids/
[root@gitlabgitlab] #chmod-Ru+rwXtmp/sockets/
[root@gitlabgitlab] #chmod-Ru+rwXpublic/uploads


#创建目录
[root@gitlabgitlab] #sudo-ugit-Hmkdir/home/git/gitlab-satellites
[root@gitlabgitlab] #chmodu+rwx,g=rx,o-rwx/home/git/gitlab-satellites
编辑配置文件unicorn.rb
[root@gitlabgitlab] #sudo-ugit-Hcpconfig/unicorn.rb.exampleconfig/unicorn.rb
[root@gitlabgitlab] #nproc
1
[root@gitlabgitlab] #sudo-ugit-Hvimconfig/unicorn.rb
worker_processes1
#复制配置文件rack_attack.rb
[root@gitlabgitlab] #sudo-ugit-Hcpconfig/initializers/rack_attack.rb.exampleconfig/initializers/rack_attack.rb
#定义全局的用户和邮箱
[root@gitlabgitlab] #sudo-ugit-Hgitconfig--globaluser.name"GitLab"
[root@gitlabgitlab] #sudo-ugit-Hgitconfig--globaluser.email"gitlab@weyee.com"
[root@gitlabgitlab] #sudo-ugit-Hgitconfig--globalcore.autocrlfinput
#编辑连接redis的配置
[root@gitlabgitlab] #sudo-ugit-Hcpconfig/resque.yml.exampleconfig/resque.yml
[root@gitlabgitlab] #sudo-ugit-Hvimconfig/resque.yml
development:redis: //localhost :6379
test :redis: //localhost :6379
production:unix: /var/run/redis/redis .sock

十、编辑gitlab数据库文件

[root@gitlabgitlab] #sudo-ugitcpconfig/database.yml.MysqLconfig/database.yml
[root@gitlabgitlab] #sudo-ugit-Hvimconfig/database.yml
production:
adapter:MysqL2
encoding:utf8
collation:utf8_general_ci
reconnect: false
database:gitlabhq_production
pool:10
username:git
password: "gitpasswd"
#修改数据库文件权限
[root@gitlabgitlab] #sudo-ugit-Hchmodo-rwxconfig/database.yml

十一、安装gem

#添加淘宝的ruby源
[root@gitlabgitlab] #sudo-ugitvimGemfile
source "https://ruby.taobao.org" #将第一行修改成taobao的源

gitlab]#sudo-ugitvimGemfile.lock
remote: https://ruby.taobao.org/:wq:wq

[root@gitlabgitlab] #cd/home/git/gitlab
[root@gitlabgitlab] #ln-s/usr/local/bin/bundle/usr/bin/
[root@gitlabgitlab] #sudo-ugit-Hbundleinstall--deployment--withoutdevelopmenttestpostgresaws


Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/charlock_holmes-0.6.9.4 for inspection.
Results logged to
/home/git/gitlab/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/charlock_holmes-0.6.9.4/gem_make.out

An error occurred while installing charlock_holmes (0.6.9.4),and Bundler cannot continue.
Make sure that `gem install charlock_holmes -v '0.6.9.4'` succeeds before bundling.

解决 错误
gem list

看看 是不是已经装了 版本不一样
charlock_holmes-0.6.9.4

卸载到 gem uninstall charlock_holmes
安装
sudo gem install charlock_holmes -v '0.6.9.4'


Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.1.0/gems/MysqL2-0.3.16 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/MysqL2-0.3.16/gem_make.out

An error occurred while installing MysqL2 (0.3.16),and Bundler cannot continue.
Make sure that `gem install MysqL2 -v '0.3.16'` succeeds before bundling.


MysqL2 错误

An error occurred while installing MysqL2 (0.3.16),and Bundler cannot continue.

Make sure that `gem install MysqL2 -v '0.3.16'` succeeds before bundling.


解决

gem install MysqL2 -v '0.3.16'`

yum install MysqL-devel


十二、安装gitlab-shell

[root@gitlabgitlab] #ln-s/usr/local/bin/ruby/usr/bin/ruby
[root@gitlabgitlab] # sudo-ugit-Hbundleexecrakegitlab:shell:install[v2.0.1]REdis_URL=unix:/var/run/redis redis.sockRAILS_ENV=production

gitclone 'https://gitlab.com/gitlab-org/gitlab-shell.git' '/home/git/gitlab-shell/'
cloninginto '/home/git/gitlab-shell' ...
remote:Countingobjects:2118, done .
remote:Compressingobjects:100%(1639 /1639 ), done .
remote:Total2118(delta1301),reused710(delta400)
Receivingobjects:100%(2118 /2118 ),306.39KiB|177.00KiB /s , done .
Resolvingdeltas:100%(1301 /1301 ), done .
Checkingconnectivity... done .
gitreset--hard$(gitdescribev2.0.1||gitdescribeorigin /v2 .0.1)||gitfetchorigin&&gitreset--hard$(gitdescribev2.0.1||gitdescribeorigin /v2 .0.1)
HEAdisNowata3b5445Fixbugwhenchangestopost-receiveworkerwasnotdumpedproperly
HEAdisNowata3b5445Fixbugwhenchangestopost-receiveworkerwasnotdumpedproperly
bin /install
mkdir -p /home/git/repositories/ :OK
mkdir -p /home/git/ . ssh :OK
chmod 700 /home/git/ . ssh :OK
touch /home/git/ . ssh /authorized_keys :OK
chmod 600 /home/git/ . ssh /authorized_keys :OK
chmod -Rug+rwX,o-rwx /home/git/repositories/ :OK
find /home/git/repositories/ - type d- exec chmod g+s{};:OK

#gitlab-shell配置文件内容
[root@gitlabgitlab] #sudo-ugit-Hvim/home/git/gitlab-shell/config.yml
---
user:git
gitlab_url:https: //localhost/ #使用https
http_settings:
self_signed_cert: true #修改成true
repos_path: "/home/git/repositories/"
auth_file: "/home/git/.ssh/authorized_keys"
redis:
bin: "/usr/bin/redis-cli"
namespace:resque:gitlab
socket: "/var/run/redis/redis.sock"
log_level:INFO
audit_usernames: false

十三、初始化数据库

[root@gitlabgitlab] #sudo-ugit-Hbundleexecrakegitlab:setupRAILS_ENV=production
Thiswillcreatethenecessarydatabasetablesandseedthedatabase.
YouwillloseanyprevIoUsdatastored in thedatabase.
Doyouwantto continue ( yes /no )? yes #输入yes

十四、下载服务脚本
[root@gitlabgitlab] #wget-O/etc/init.d/gitlabhttps://gitlab.com/gitlab-org/gitlab-recipes/raw/master/init/sysvinit/centos/gitlab-unicorn
#配置gitlab的启动级别
[root@gitlabgitlab] #chmod+x/etc/init.d/gitlab
[root@gitlabgitlab] #chkconfig--addgitlab
[root@gitlabgitlab] #chkconfiggitlabon
#配置logrotate
[root@gitlabgitlab] #cplib/support/logrotate/gitlab/etc/logrotate.d/gitlab
#检测gitlab的应用支持状态,并配置
[root@gitlabgitlab] #sudo-ugit-Hbundleexecrakegitlab:env:infoRAILS_ENV=production
Systeminformation
System:
CurrentUser: git
UsingRVM: no
RubyVersion: 2.1.2p95
GemVersion: 2.2.2
BundlerVersion:1.9.7
RakeVersion: 10.3.2
SidekiqVersion:2.17.0
GitLabinformation
Version: 7.4.5
Revision: 19d572e
Directory: /home/git/gitlab
DBAdapter: MysqL2
URL: http: //localhost
HTTPCloneURL: http: //localhost/some-project .git
SSHCloneURL: git@localhost:some-project.git
UsingLDAP: no
UsingOmniauth: no
GitLabShell
Version: 2.0.1
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
[root@gitlabgitlab] #sudo-ugit-Hbundleexecrakeassets:precompileRAILS_ENV=production
#启动gitlab服务
[root@gitlabgitlab] #servicegitlabstart
Startingunicorn:[OK]
Startingsidekiq:[OK]

十五、安装Nginx服务,并下载gitlab的站点配置文件

这里的Nginx使用yum进行安装
[root@gitlabgitlab] #yuminstall-yNginx

No package Nginx available. 解决:
http://blog.chinaunix.net/uid-29612873-id-4226804.html


[root@gitlabgitlab] #chkconfigNginxon
[root@gitlabgitlab] #wget-O/etc/Nginx/conf.d/gitlab.confhttps://gitlab.com/gitlab-org/gitlab-ce/raw/master/lib/support/Nginx/gitlab-ssl


将Nginx用户添加到git组
[root@gitlabgitlab] #usermod-a-GgitNginx
[root@gitlabgitlab] #chmodg+rx/home/git/
[root@gitlabgitlab] #vim/etc/Nginx/conf.d/gitlab.conf
#编辑文件/etc/Nginx/conf.d/gitlab.conf,修改其中的serve_rname
server_name www.gitlab.com


配置SSL证书
[root@gitlabgitlab] #mkdir-p/etc/Nginx/ssl
[root@gitlabgitlab] #cd/etc/Nginx/ssl/
[root@gitlabgitlab] #opensslreq-new-x509-nodes-days3560-outgitlab.crt-keyoutgitlab.key

启动Nginx服务
[root@gitlabgitlab] #serviceNginxstart

十六、Gitlab配置SMTP邮件
cd /home/git/gitlab
[root@gitgitlab] #sudo-ugit-Hcpconfig/initializers/smtp_settings.rb.sampleconfig/initializers/smtp_setting.rb
#修改如下
[root@gitgitlab] #sudo-ugit-Hvimconfig/initializers/smtp_settings.rb
if Rails. env .production?
Rails.application.config.action_mailer.delivery_method=:smtp
ActionMailer::Base.delivery_method=:smtp #使用smtp方法
ActionMailer::Base.smtp_settings={
address: "smtp.163.com" ,
port:25,
user_name: "xxx" , #用户名
password: "xxxx" , #密码
domain: "163.com" ,
authentication::login,
enable_starttls_auto: true ,
#openssl_verify_mode:'peer'#SeeActionMailerdocumentationforotherpossibleoptions
}
end
#编辑文件
[root@gitgitlab] #sudo-ugit-Hvimconfig/environments/production.rb
config.action_mailer.delivery_method=:smtp #将方法修改成smtp方式

CentOS6.4 安装gitlab的更多相关文章

  1. 在Xcode中安装的git中禁用osxkeychain凭证帮助程序

    解决方法如果您的问题主要关注的是安全性,并且您希望每次都输入密码,那么我会接受钥匙串以适应您的目标>进入osx钥匙串应用程序,>如果您使用的是https,请查找服务器名称>通过单击更改其设置,并在选项卡“访问控制”标记“询问钥匙串密码”下>如果需要,请从列入白名单的应用程序列表中删除git-credential-osxkeychain应用程序.请注意,在Linux上,默认行为也是自动发送凭据.

  2. macos – 运行brew命令充满了’同意Xcode / iOS许可证需要管理员权限,请通过sudo以root身份重新运行.’

    所以我跑了:如果滚动到底部,可以输入“同意”,然后就可以了.

  3. ios – Xcode Server 4.0 git从构建触发脚本推送

    我为一个托管在github上的项目安装了一个XcodeBot.我按照步骤和设置机器人来使用我现有的SSH密钥.验证成功,项目结算和建立.然后,我在预触发器操作中添加了一个shell脚本,它增加了plist中的版本,将其标记,并将该更改提交到github.但是当我尝试从shell脚本执行gitpush时,我得到:–推送到git@github.com:spex-app/spex-ios.git权限被拒

  4. xcode – 为什么Jenkins在我的Mac上运行不会连接到本地的git repo?

    我正在尝试使用Jenkins实现自动化构建,用于我的iOS项目.我添加了Git插件,但是一旦我尝试将git的URL放在项目的git配置中,它会在下面的屏幕截图中显示错误.这里Jenkins不能从repo克隆到其工作空间.解决方法在大多数情况下,gitbarerepo有扩展名.git我的意思是(其他)/test1看起来不正确,我认为应该是(其他)/test1.git在我的mac上有同样的错误.

  5. 哪些Xcode项目文件可以从我的git repo中排除?

    我正在开发一个iOS项目,并使用git进行版本控制.我正在与另一位开发人员合作.我应该保留哪些Xcode项目文件在repo中,哪些可以排除,这样不会对其他开发者产生负面影响?这里有一些非代码文件,git告诉我已被修改或添加…

  6. xcode7 – 谁在创建文件“/private/var/tmp/Untitled-*.uicatalog”?

    我正在调查为什么TeamCity构建代理程序用完了磁盘,并且在/private/var/tmp中找到了超过11,000个文件,它们都以Untitled-.uicatalog行命名.每个文件至少0.6MB.总磁盘占用空间约为4GB.这些文件可以追溯到几个月,所以他们能够重新启动.谁在创造他们?Xcode在编译至少有一个图像的xcassets目录时创建这些目录.我可以删除它们吗?

  7. xcode – 不能推送到远程git存储库

    所以我一直在麻烦把我最近的提交到我在Bitbucket上设置的远程仓库.我最初使用Xcode,并且已经要求thisquestion,并建议使用终端来推送而不是Xcode.现在,我尝试了终端,但是并没有解决问题.但是当我尝试gitpush时,它确实给了我更详细的错误信息我是这些远程存储库的新手,并且Xcode上的一切都正常工作,所以如果您建议我在终端中执行某些操作,如果您描述了如何执行此操作,这将有

  8. Xcode 4.5自动更改.xib文件

    由于我升级到Xcode4.5,我发现它会自动删除我访问的每个xib文件的一部分.这是一节:我几乎可以这样生活,但是当我再次访问该文件时,我发现还有更多的“自动”更改.他们变得更加多样,难以表征,所以我不会包括例子,除非我真的需要.我不明白这里发生了什么.我正在寻找两个答案之一:>有没有办法禁用这个?>为什么会发生这种情况,有没有办法强制Xcode将这些更改应用于所有xib文件,以便我可以做到这一点?

  9. ios – XCode中的源代码管理是一场噩梦 – 任何人都可以提供建议?

    使用Git与Xcode(4.3)是一个真正的噩梦.这是一个场景…我承诺我的变化–好的.我跳回主人拉动变更.突然间我得到:是吧?解决方法我只是添加这些文件到我的.gitignore文件.没有必要与其他开发人员分享.所以我有:在.gitignore中请注意,您链接的stackoverflow问题说不排除project.pbxproj,但它并不表示不排除*.xcworkspace.但是,我目前没有使用工作区功能.如果您使用工作区功能,则可能需要包含这些文件,但忽略xcuserdata文件.

  10. Xcode表示“未提交的更改”每当我尝试git拉或推

    我在我的项目中使用git,每当我尝试从Xcode中抽出时,我得到“未提交的更改”,并阻止我拉/推.我尝试提交并找到一个扩展名为*.xcuserstate的文件,每当我打开/滚动到Xcode中的任何项目文件时,这个文件被修改.这让我没有任何选择,只能做一个包含该文件的单一提交,该文件用无意义的提交填充git提交日志.这是有办法阻止这种行为吗?

随机推荐

  1. 在airgapped(离线)CentOS 6系统上安装yum软件包

    我有一个CentOS6系统,出于安全考虑,它已经被空气泄漏.它可能从未连接到互联网,如果有,它很长时间没有更新.我想将所有.rpm软件包放在一个驱动器上,这样它们就可以脱机安装而无需查询互联网.但是,我在测试VM上遇到的问题是,即使指定了本地路径,yum仍然会挂起并尝试从在线存储库进行更新.另外,有没有办法使用yum-utils/yumdownloader轻松获取该包的所有依赖项和所有依赖项?目前

  2. centos – 命名在日志旋转后停止记录到rsyslog

    CentOS6.2,绑定9.7.3,rsyslog4.6.2我最近设置了一个服务器,我注意到在日志轮换后,named已停止记录到/var/log/messages.我认为这很奇怪,因为所有日志记录都是通过rsyslog进行的,并且named不会直接写入日志文件.这更奇怪,因为我在更新区域文件后命名了HUPed,但它仍然没有记录.在我停止并重新启动命名后,记录恢复.这里发生了什么?

  3. centos – 显示错误的磁盘大小

    对于其中一个磁盘,Df-h在我的服务器上显示错误的空白区域:Cpanel表明它只有34GB免费,但还有更多.几分钟前,我删除了超过80GB的日志文件.所以,我确信它完全错了.fdisk-l/dev/sda2也显示错误:如果没有格式化,我该怎么做才能解决这个问题?并且打开文件描述符就是它需要使用才能做到这一点.所以…使用“lsof”并查找已删除的文件.重新启动写入日志文件的服务,你很可能会看到空间可用.

  4. 如何在centos 6.9上安装docker-ce 17?

    我目前正在尝试在centOS6.9服务器上安装docker-ce17,但是,当运行yuminstalldocker-ce时,我收到以下错误:如果我用跳过的标志运行它我仍然得到相同的消息,有没有人知道这方面的方法?

  5. centos – 闲置工作站的异常负载平均值

    我有一个新的工作站,具有不寻常的高负载平均值.机器规格是:>至强cpu>256GB的RAM>4x512GBSSD连接到LSI2108RAID控制器我从livecd安装了CentOS6.564位,配置了分区,网络,用户/组,并安装了一些软件,如开发工具和MATLAB.在启动几分钟后,工作站负载平均值的值介于0.5到0.9之间.但它没有做任何事情.因此我无法理解为什么负载平均值如此之高.你能帮我诊断一下这个问题吗?

  6. centos – Cryptsetup luks – 检查内核是否支持aes-xts-plain64密码

    我在CentOS5上使用cryptsetupluks加密加密了一堆硬盘.一切都很好,直到我将系统升级到CentOS6.现在我再也无法安装磁盘了.使用我的关键短语装载:我收到此错误:在/var/log/messages中:有关如何装载的任何想法?找到解决方案问题是驱动器使用大约512个字符长的交互式关键短语加密.出于某种原因,CentOS6中的新内核模块在由旧版本创建时无法正确读取512个字符的加密密钥.似乎只会影响内核或cryptsetup的不同版本,因为在同一系统上创建和打开时,512字符的密钥将起作用

  7. centos – 大量ssh登录尝试

    22个我今天登录CentOS盒找到以下内容这是过去3天内的11次登录尝试.WTF?请注意,这是我从我的提供商处获得的全新IP,该盒子是全新的.我还没有发布任何关于此框的内容.为什么我会进行如此大量的登录尝试?是某种IP/端口扫描?基本上有4名匪徒,其中2名来自中国,1名来自香港,1名来自Verizon.这只发生在SSH上.HTTP上没有问题.我应该将罪魁祸首子网路由吗?你们有什么建议?

  8. centos – kswap使用100%的CPU,即使有100GB的RAM也可用

    >Linux内核是否应该足够智能,只需从内存中清除旧缓存页而不是启动kswap?

  9. centos – Azure将VM从A2 / 3调整为DS2 v2

    我正在尝试调整前一段时间创建的几个AzureVM,从基本的A3和标准A3到标准的DS2v2.我似乎没有能力调整到这个大小的VM.必须从头开始重建服务器会有点痛苦.如果它有所不同我在VM中运行CentOS,每个都有一个带有应用程序和操作系统的磁盘.任何人都可以告诉我是否可以在不删除磁盘的情况下删除VM,创建新VM然后将磁盘附加到新VM?

  10. centos – 广泛使用RAM时服务器计算速度减慢

    我在非常具体的情况下遇到服务器速度下降的问题.事实是:>1)我使用计算应用WRF>2)我使用双XeonE5-2620v3和128GBRAM(NUMA架构–可能与问题有关!

返回
顶部