




免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
官网:/安装参考网址:/downloads/环境Ubuntu 14.04如果是虚拟机的话要改成桥接模式让局域网内其他计算机访问网络设置1. 宿主机网络配置:连接特定的 DNS 后缀: pnp.gw描述: Intel(R) WiFi Link 1000 BGN物理地址: 74-E5-0B-99-52-22已启用 DHCP: 是IPv4 地址: 29IPv4 子网掩码: IPv4 默认网关: IPv4 DHCP 服务器: IPv4 DNS 服务器: , 根据宿主机手动配置虚拟机的网络2. 虚拟机网络配置:IPv4 地址: 99IPv4 子网掩码: IPv4 默认网关: IPv4 DNS 服务器: , 检查下虚拟机能否上网。如果不能上网的会影响后面GitLab发送邮件。检查下能否被局域网的其他计算机访问安装下载1. Download the package and install everythingwget /ubuntu-14.04/gitlab_7.2.0-omnibus-1_amd64.debsudo apt-get install openssh-serversudo apt-get install postfix # Select Internet Site, using sendmail instead also works, exim has problemssudodpkg -i gitlab_7.2.0-omnibus-1_amd64.deb2. Edit the configuration file to add your hostnamesudo -e /etc/gitlab/gitlab.rb3. Install and start GitLabsudo gitlab-ctl reconfigure默认管理员账号密码:Username: root Password: 5iveL!feFor troubleshooting and configuration options/gitlab-org/omnibus-gitlab/blob/master/README.md配置1. 配置postfixsudodpkg-reconfigure postfix选择 internetdomain:sunlights.cchostname:sunlights.ccsmtpserver:destination:localhost备份下原来的配置sudocp /etc/postfix/main.cf/etc/postfix/main.cf_bak修改配置sudonano /etc/postfix/main.cf# See /usr/share/postfix/main.cf.dist for a commented, more complete version# Debian specific: Specifying a file name will cause the first# line of that file to be used as the name. The Debian default# is /etc/mailname.#myorigin = /etc/mailnamesmtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)biff = no# appending .domain is the MUAs job.append_dot_mydomain = no# Uncomment the next line to generate delayed mail warnings#delay_warning_time = 4hreadme_directory = no# TLS parameters#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key#smtpd_use_tls=yessmtpd_tls_session_cache_database = btree:$data_directory/smtpd_scachesmtp_tls_session_cache_database = btree:$data_directory/smtp_scache# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for# information on enabling SSL in the smtp client.smtpd_relay_restrictions = permit_mynetworkspermit_sasl_authenticateddefer_unauth_destinationmyhostname = alias_maps = hash:/etc/aliasesalias_database = hash:/etc/aliasesyorigin = /etc/mailnamemydestination = localhostrelayhost = :25mynetworks = /8 :ffff:/104 :1/128mailbox_size_limit = 0recipient_delimiter = +inet_interfaces = alldefault_transport = smtprelay_transport = smtpinet_protocols = all# enable SASL authenticationsmtp_sasl_auth_enable = yes# disallow methods that allow anonymous authentication.smtp_sasl_security_options = noanonymous# where to find sasl_passwdsmtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd# Enable STARTTLS encryption#smtp_use_tls = yes# where to find CA certificates#smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt填写smtp服务器登录信息:sudonano/etc/postfix/sasl_:25 :yzc.1234添加smtp登录信息:sudopostmap /etc/postfix/sasl_passwdsudo postfix reloadsudo postfix stopsudo postfix start测试postfixsunlightsubuntu:$ telnet localhost 25Trying .Connected to localhost.Escape character is .220 ESMTP Postfix (Ubuntu)helo localhost250 mail from:250 2.1.0 Okrcpt to:515265763250 2.1.5 Okdata354 End data with .to:515265763from:subject:test postfixthis is just a test.250 2.0.0 Ok: queued as 362BA260BCFquit221 2.0.0 ByeConnection closed by foreign host.打开邮箱可以收到邮件2. 配置GitLabexternal_url,虚拟机的ip地址external_url http:/ 99GitLab的邮件地址:最好是smtp邮件发送服务器的邮箱地址gitlab_railsgitlab_email_from = sudonano /etc/gitlab/gitlab.rb# Change the external_url to the address your users will type in their browserexternal_url 99gitlab_railsgitlab_signup_enabled=true#gitlab_railssmtp_enable = true#gitlab_railssmtp_address = #gitlab_railssmtp_port = 25#gitlab_railssmtp_user_name = 515265763#gitlab_railssmtp_password = yzc.1234#gitlab_railssmtp_domain = #gitlab_railssmtp_authentication = login#gitlab_railssmtp_enable_starttls_auto = true# If your SMTP server does not like the default From: gitlablocalhost you# can change the From with this setting.gitlab_railsgitlab_email_from = 重启GitLabsudo gitlab-ctl reconfigure查看GitLab状态sudo gitlab-ctl statusrun: nginx: (pid 1069) 11728s; run: log: (pid 1068) 11728srun: postgresql: (pid 1078) 11728s; run: log: (pid 1070) 11728srun: redis: (pid 107
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 小区地下管网及设施更新改造工程施工方案
- 碳捕集利用项目资金管理与调度方案
- 2025年艺术管理学考试题及答案
- 摩托车制动器新建项目节能评估报告
- 污水处理厂建设工程节能评估报告
- 广德市2024-2025学年第一学期三年级数学期末学业展示考题及答案
- 广东省农村土地承包经营权流转合同(示.本)
- 2025年特种作业人员考试题库及答案
- 重点学校周边住宅租赁合同包含子女入学条款
- 互联网科研成果知识产权共享与保护协议
- 2025年新形势下新型储能发展趋势分析报告
- 美发发型培训知识课件
- 遗体整容师测试考核试卷及答案
- 体育教育专业健美操理论考试试题及答案
- 小学道德与法治五年级上册《烟酒有危害》教学课件
- 2025年登革热防控试题(附答案)
- 霍乱培训课件下载
- 高中语文部编版必修上册第一单元检测
- 2025年软件开发工程师面试宝典及编程技能测试题目
- 2025-2026学年鲁科版(五四学制)(2024)初中生物六年级上册教学计划及进度表
- DB32∕T 3957-2020 化工企业安全生产信息化管理平台数据规范
评论
0/150
提交评论