当前位置: 首页 > news >正文

深圳网站建设价格多少钱怎么提交网址让百度收录

深圳网站建设价格多少钱,怎么提交网址让百度收录,中国太空网站,负面信息搜索引擎 网站#xff11; 关于gitlab7无论如何gitlab是个好东西#xff0c;但是极难安装和配置。bitnami(https://bitnami.com/)的一键安装包虽然可以解决大问题#xff0c;但是仍有很多人无法配置gitlabnginx和email发送等等问题。今天特意完整地再梳理一次。对各位读者的问题不再逐一… 关于gitlab7无论如何gitlab是个好东西但是极难安装和配置。bitnami(https://bitnami.com/)的一键安装包虽然可以解决大问题但是仍有很多人无法配置gitlabnginx和email发送等等问题。今天特意完整地再梳理一次。对各位读者的问题不再逐一解答。首先bitmami的一些版本有问题无法成功在rhel6.4上成功安装。因此我找到了一个较新的可以使用的版本7.8.1(响应式页面)ftp://pepstack.com/pub/tarball/bitnami-gitlab-7.8.1-0-linux-x64-installer.run(我的ftp不会一直提供请想要的尽快下载)那么最后安装好的效果就是(点击可访问第一次访问可能会比较慢要求较新版本的firefox或chromeIE未测试)http://pepstack.com/gitlab 需求描述好了先把需求陈述一下如果读者的需求与我不同我无能为力。假设我有一台web主机(我这里是pepstack.com)我在主机后面创建虚拟机(vm-gitlab)在vm-gitlab上安装gitlab7然后通过配置web主机上的ngnix可以通过下面的url访问到我的gitlab:http://pepstack.com/gitlab创建虚拟机vm-gitlab的过程不细说了如果你使用实体机也是一样的。vm-gitlab安装的是rhel6.4版本。确保在vm内部可以访问外部主机和internet(如ping www.baidu.com)。 安装gitlabssh 到vm-gitlab# ssh rootvm-gitlab下载一键式安装包# wget ftp://pepstack.com/pub/tarball/bitnami-gitlab-7.8.1-0-linux-x64-installer.run安装# chmod ax bitnami-gitlab-7.8.1-0-linux-x64-installer.run# ./bitnami-gitlab-7.8.1-0-linux-x64-installer.run安装过程中会提示----------------------------------------------------------------------------Welcome to the Bitnami Gitlab Stack Setup Wizard.----------------------------------------------------------------------------Select the components you want to install; clear the components you do not wantto install. Click Next when you are ready to continue.GitLab : Y (Cannot be edited)GitLab CI [Y/n] :YIs the selection above correct? [Y/n]: Y----------------------------------------------------------------------------Installation folderPlease, choose a folder to install Bitnami Gitlab StackSelect a folder [/opt/gitlab-7.8.1-0]:----------------------------------------------------------------------------Create Admin accountBitnami Gitlab Stack admin user creationEmail Address [userexample.com]: cheungmineqq.comLogin [user]: master (此处是你登录gitlab用的用户名)Password : (输入你登录gitlab时要用的密码)Please confirm your password :  (输入你登录gitlab时要用的密码)----------------------------------------------------------------------------Hostname that will be used to create internal URLs. If this value is incorrect,you may be unable to access your Gitlab installation from other computers. It isadvisable to use a Domain instead of an IP address for compatibility withdifferent browsers.Domain [127.0.0.1]:Do you want to configure mail support? [y/N]: Y----------------------------------------------------------------------------Configure SMTP SettingsThis is required so your application can send notifications via email.Default email provider:[1] GMail[2] CustomPlease choose an option [1] : 2----------------------------------------------------------------------------Configure SMTP SettingsThis data is stored in the application configuration files and may be visible toothers. For this reason, it is recommended that you do not use your personalaccount credentials.Username []: cheungmineqq.comPassword : (输入你的QQ密码)Re-enter : (输入你的QQ密码)SMTP Host []: smtp.qq.comSMTP Port []: 25Secure connection[1] None[2] SSL[3] TLSPlease choose an option [3] :----------------------------------------------------------------------------Setup is now ready to begin installing Bitnami Gitlab Stack on your computer.Do you want to continue? [Y/n]: Y----------------------------------------------------------------------------Please wait while Setup installs Bitnami Gitlab Stack on your computer.Installing0% ______________ 50% ______________ 100%#########################################----------------------------------------------------------------------------Setup has finished installing Bitnami Gitlab Stack on your computer.Info: To access the Bitnami Gitlab Stack, go tohttp://127.0.0.1:80 from your browser.Press [Enter] to continue: 配置gitlab配置尤其要小心。下面几个配置文件要用到/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/config/environments/production.rb/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/config/initializers/smtp_settings.rb/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/config/gitlab.yml/opt/gitlab-7.8.1-0/apps/gitlab/conf/httpd-app.conf/opt/gitlab-7.8.1-0/apps/gitlab/gitlab-shell/config.yml下面逐一说明4.1 production.rb......# config.action_mailer.delivery_method :sendmail# Defaults to:# # config.action_mailer.sendmail_settings {# #  location: /usr/sbin/sendmail,# #  arguments: -i -t# # }config.action_mailer.perform_deliveries trueconfig.action_mailer.raise_delivery_errors trueconfig.action_mailer.delivery_method :smtpconfig.action_mailer.smtp_settings {:address smtp.qq.com,:port 25,:domain qq.com,:authentication :plain,:user_name cheungmineqq.com,:password ********,:enable_starttls_auto true}config.eager_load trueconfig.assets.js_compressor :uglifierconfig.allow_concurrency false......4.2 smtp_settings.rb# cp smtp_settings.rb.sample smtp_settings.rb# To enable smtp email delivery for your GitLab instance do the following:# 1. Rename smtp_settings.rb.sample to smtp_settings.rb# 2. Edit settings inside this file# 3. Restart GitLab instance#if Rails.env.production?Gitlab::Application.config.action_mailer.delivery_method :smtpActionMailer::Base.smtp_settings {address: smtp.qq.com,port: 25,user_name: cheungmineqq.com,password: ********,domain: qq.com,authentication: :login,enable_starttls_auto: true,openssl_verify_mode: none}end4.3 gitlab.yml# # # # # # # # # # # # # # # # # ## GitLab application config file  ## # # # # # # # # # # # # # # # # ### How to use:# 1. Copy file as gitlab.yml# 2. Update gitlab - host with your fully qualified domain name# 3. Update gitlab - email_from# 4. If you installed Git from source, change git - bin_path to /usr/local/bin/git# 5. Review this configuration file for other settings you may want to adjustproduction: base## 1. GitLab app settings# ## GitLab settingsgitlab:## Web server settings (note: host is the FQDN, do not include http://)host: pepstack.comport: 80                # Set to 443 if using HTTPS, see installation.md#using-https for additional HTTPS configuration detailshttps: false            # Set to true if using HTTPS, see installation.md#using-https for additional HTTPS configuration details# Uncommment this line below if your ssh host is different from HTTP/HTTPS one# (youd obviously need to replace ssh.host_example.com with your own host).# Otherwise, ssh host will be set to the host: value above# ssh_host: ssh.host_example.com# WARNING: See config/application.rb under Relative url support for the list of# other files that need to be changed for relative url supportrelative_url_root: /gitlab# Uncomment and customize if you cant use the default user to run GitLab (default: git)# user: git## Date Time settings# Uncomment and customize if you want to change the default time zone of GitLab application.# To see all available zones, run bundle exec rake time:zones:all RAILS_ENVproduction# time_zone: UTC## Email settings# Uncomment and set to false if you need to disable email sending from GitLab (default: true)# email_enabled: true# Email address used in the From field in mails sent by GitLabemail_from: cheungmineqq.comsupport_email: cheungmineqq.com# Email server smtp settings are in config/initializers/smtp_settings.rb.sample# default_can_create_group: false  # default: true# username_changing_enabled: false # default: true - User can change her username/namespace## Default theme##  BASIC  1##  MARS  2##  MODERN 3##  GRAY  4##  COLOR  5# default_theme: 2 # default: 2......上面文件改动之处在于:host: pepstack.comrelative_url_root: /gitlabemail_from: cheungmineqq.comsupport_email: cheungmineqq.com下面的配置是因为要把gitlab置于nginx后面使用4.4 httpd-app.confOptions -MultiViewsAllowOverride AllOrder allow,denyAllow from all 2.3Require all grantedSetEnv RAILS_RELATIVE_URL_ROOT /gitlabPassengerEnabled onPassengerAppRoot /opt/gitlab-7.8.1-0/apps/gitlab/htdocs/ModPagespeedDisallow *PassengerUser gitPassengerGroup gitSetEnv MAGIC /opt/gitlab-7.8.1-0/ruby/lib/ruby/gems/2.0.0/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/src/file-5.08/magic/magic.mgcSetEnv PATH /opt/gitlab-7.8.1-0/Python/bin:${PATH}PassengerPreStart http://127.0.0.1:80/gitlab不同之处在于SetEnv RAILS_RELATIVE_URL_ROOT /gitlabPassengerPreStart http://127.0.0.1:80/gitlab4.5 config.yml...gitlab_url: http://pepstack.com:80/gitlab/...这样我们访问gitlab就是按照下面的地址http://pepstack.com/gitlab/5 主机nginx配置上面的配置都是在vm-gitlab上进行的注意打开80:http端口。下面要给主机nginx增加配置配置文件/etc/nginx/conf.d/redmine.conf内容如下(我同时还提供了redmine服务)# 指向内网redmine的web服务(192.168.122.21:80)#upstream redmine {server 192.168.122.21:80;}upstream gitlab {server 192.168.122.20:80;}server {server_name pepstack.com;# /var/log/nginx 本地目录必须存在access_log  /var/log/nginx/redmine_access.log;error_log  /var/log/nginx/redmine_error.log;location /redmine {try_files $uri red;      # red 名字是任意的}location /gitlab {try_files $uri git;}location red {proxy_set_header  Host            $host;proxy_set_header  X-Real_IP        $remote_addr;proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;proxy_read_timeout    300;proxy_connect_timeout  300;proxy_redirect        off;proxy_pass http://redmine;  # 指向 upstream redmine}location git {proxy_set_header  Host            $host;proxy_set_header  X-Real_IP        $remote_addr;proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;proxy_read_timeout    300;proxy_connect_timeout  300;proxy_redirect        off;proxy_pass http://gitlab;  # 指向 upstream gitlab}}即注释掉include /etc/nginx/sites-enabled/*; 启动服务大功告成在主机启动nginx:$ sudo nginx -s reload在vm-gitlab启动gitlab:# cd /opt/gitlab-7.8.1-0/# ./ctlscript.sh restartGitLab 的详细介绍请点这里GitLab 的下载地址请点这里
http://www.zqtcl.cn/news/684297/

相关文章:

  • 出台网站集约化建设通知彩票网站开发的
  • 怎样创建个人的网站怎么学做网站
  • 小江高端网站建设网站建设中可能升级
  • 网站建设的原则有哪些内容wordpress的底部版权
  • 一个网站建立团队大概要多少钱大连专业网站建设
  • 宁波网站公司相册插件wordpress
  • 科技网站域名大型网站开发团队
  • 温岭建设规划局网站注册新公司网上怎么核名
  • dede网站移动端怎么做golang 网站开发 开源
  • 织梦网站导航固定沈阳男科医院在线咨询免费
  • 四川华鸿建设有限公司网站网站建设需求文案
  • 汕头东莞网站建设怎么制作微信小程序app
  • 网站建设预算方案模板怎么做网络推广网站
  • 顺义网站开发wordpress内容主题模板下载
  • 永康做网站的化工网站模板免费下载
  • 潍坊高密网站建设如何做网页推广
  • 杭州房产网站建设wordpress 替换谷歌字体
  • 陕西省建设工程质量安全监督总站网站开发公司与施工单位工程造价鉴定报告
  • 嘉兴网站建设企业阿里巴巴国际贸易网站
  • 临沂手机网站建设珠海手机网站建设价格
  • 56m做图片视频的网站是什么软件开发和大数据哪个前景好
  • 郑州网站建设哪家做快消品的网站
  • 太原做网站费用东莞it外包
  • 深圳网站关键词优化公司集团网站建
  • 网站建设项目合同传奇手游网站
  • 如何学习网站建设app申请付费网站
  • 微网站开发平台案例重庆网站设计哪家公司好
  • 快递空包网站建设网站的首页怎么做的
  • 青海手机网站建设北京网站建设推荐华网天下
  • 网站网站建设公司孩子学编程网上课程哪家好