当前位置: 首页 > news >正文 平台网站开发风险国外被动收入网站做的好的 news 2025/11/3 5:09:34 平台网站开发风险,国外被动收入网站做的好的,江阴网站制作设计,网站建设页面底部叫什么前言 本文为华为云云耀云服务器L实例测评文章#xff0c;测评内容是 云耀云服务器L实例 Git 私有服务器搭建指南 系统配置#xff1a;2核2G 3M Ubuntu 20.04 我们平时在使用代码托管服务的时候#xff0c;可能某些代码托管平台对成员有限制#xff0c;或是由于内容原因会对…前言 本文为华为云云耀云服务器L实例测评文章测评内容是 云耀云服务器L实例 Git 私有服务器搭建指南 系统配置2核2G 3M Ubuntu 20.04 我们平时在使用代码托管服务的时候可能某些代码托管平台对成员有限制或是由于内容原因会对仓库进行封禁这些问题让我们非常苦恼。这个时候搭建 Git 私服不失为一种不错的替代方案 下面将会讲解两种搭建 Git 私服方式GitLab 私服和 Codeup 平台 GitLab 私服 简介 GitHub 和 GitLab 都是基于 Git 的开发流程代码托管平台。两者的区别是 GitHub 有私有仓库和共有仓库私有仓库一般收费。GitLab 打破这种限制可以免费搭建私有仓库并且可以部署在自己的服务器上。GitLab 不仅有 GitHub 的功能还有更多的优秀特性比如权限设置。一般企业内部软件产品用 GitLab 是更好的选择如果是开源产品一般放在 GitHub 上。 Ubuntu Ubuntu 20.04 依赖配置 配置依赖 sudo apt-get update -y sudo apt-get install -y curl openssh-server ca-certificates postfix系统防火墙中打开 HTTP、HTTPS 和 SSH 访问 可选不设置则只能从本地网络访问 sudo systemctl enable sshd sudo systemctl start sshd sudo firewall-cmd --permanent --add-servicehttp sudo systemctl reload firewalld开启 Postfix 以发送电子邮件通知 可选 sudo systemctl enable postfix sudo systemctl start postfix开始安装 清华镜像官网gitlab-ce | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror 然后获取您的系统对应版本的安装命令 首先信任 GitLab 的 GPG 公钥 curl https://packages.gitlab.com/gpg.key 2 /dev/null | sudo apt-key add - /dev/nulltouch /etc/apt/sources.list.d/gitlab-ce.list echo deb https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu focal main | sudo tee -a /etc/apt/sources.list.d/gitlab-ce.list最后安装 gitlab-ce sudo apt-get update sudo apt-get install gitlab-ce安装成功 配置端口及网址 进入文件 /etc/gitlab/gitlab.rb进行如下配置 # 编辑文件 vim /etc/gitlab/gitlab.rbexternal_url http://gitlab.example.com # 更改为如下 external_url http://本机ip:8899重新配置 sudo gitlab-ctl reconfigure # 开启应用 sudo gitlab-ctl start但是这里重新配置很容易卡住可以使用如下命令解决 nohup /opt/gitlab/embedded/bin/runsvdir-start gitlab-ctl reconfigure配置成功 登录应用 我们注意到上面我们使用 sudo gitlab-ctl reconfigure 之后控制台出现的的下面的信息 Notes: Default admin account has been configured with following details: Username: root Password: You didnt opt-in to print initial root password to STDOUT. Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.上述输出表示在 GitLab 中默认的管理员账户的用户名是root密码被存储在/etc/gitlab/initial_root_password文件中。同时该文件将在首次重新配置运行后的24小时内被清除。 访问之前 external_url 设置的网址如果是在云服务器上的话需要开启安全组和对应防火墙 sudo ufw allow 端口 sudo ufw deny 端口 # 关闭 ufw systemctl stop ufw.service但是访问之后出现 502 Were sorry. GitLab is taking too much time to respond. 问题 502 解决方案 vim /etc/gitlab/gitlab.rb # 添加下面一行14.x以下 unicorn[port] 8088 # 14.x 及其以上 puma[port] 8088重启应用 gitlab-ctl reconfigure gitlab-ctl restart还有问题就查看端口是否被占用或是内存是否不足 成功访问 最后终于成功访问 GitLab 页面 查看 root 用户密码登录之后尽量更改密码 cat /etc/gitlab/initial_root_password创建项目 添加 SSH 最后使用两种方式克隆项目进行开发即可 CentOS CentOS 7.6 依赖配置 sudo yum install -y curl policycoreutils-python openssh-server perl系统防火墙中打开 HTTP、HTTPS 和 SSH 访问 可选不设置则只能从本地网络访问 sudo systemctl enable sshd sudo systemctl start sshd sudo firewall-cmd --permanent --add-servicehttp sudo systemctl reload firewalld安装 Postfix 以发送电子邮件通知 可选 sudo yum install postfix sudo systemctl enable postfix sudo systemctl start postfix其他配置基本类似这里不再赘述 Codeup 平台 平台官网云效代码管理 Codeup_代码托管_企业级代码管理平台-阿里云 (aliyun.com) 阿里云-云效 Codeup 是一款企业代码托管平台支持在线编写和在线 web IDE非常适合大型企业及小型团队编写进行代码托管 创建代码库 首先我们注册成功之后会进入控制台我们点击添加库创建代码库 配置 SSH 下面我们主要是使用 SSHRSA 的方式讲解如何管理代码库 查看密钥 cat ~/.ssh/id_rsa.pub可以查看到密钥即可跳过第二步 生成密钥 ssh-keygen -t rsa -C 注释内容复制密钥winodws cat ~/.ssh/id_rsa.pub | clip设置平台公钥 SSH 公钥配置 配置页面个人设置 (aliyun.com) 之后我们就可以连接 SSH 操作远程仓库了 多密钥配置 编辑 ~/.ssh/config # Codeup 示例用户1 HostName codeup.aliyun.comPreferredAuthentications publickeyIdentityFile ~/.ssh/id_ed25519# Codeup 示例用户2设置别名 codeup-user-2 Host codeup-user-2 HostName codeup.aliyun.comPreferredAuthentications publickeyIdentityFile ~/.ssh/codeup_user_2_ed25519# GitLab 平台 HostName gitlab.comPreferredAuthentications publickeyIdentityFile ~/.ssh/gitlab_ed25519按照上述配置使用SSH协议访问时SSH 客户端会使用文件指定的密钥进行认证实现访问不同平台或同一平台的不同账号使用本地不同的 SSH 密钥进行认证。 访问 Codeup 由于 HostName 一致使用别名进行区分使用不同的密钥。访问 GitLab根据 HostName 进行区分使用不同的密钥。 # 访问 Codeup将使用 ~/.ssh/id_ed25519.pub 密钥 git clone gitcodeup.aliyun.com:example/repo.com# 以 codeup-user-2 别名访问 Codeup 时将使用 ~/.ssh/codeup_user_2_ed25519 密钥 git clone gitcodeup-user-2:example/repo.com# 访问 GitLab 平台将使用 ~/.ssh/gitlab_ed25519 密钥 git clone gitgitlab.com:example/repo.com部署密钥可选 开启企业白名单 网址安全设置 · Codeup (aliyun.com) 新建密钥然后粘贴公钥 注意此公钥不可与上面的 SSH 公钥相同 参考文章 搭建GitLab私服详细步骤_git私服_晴空๓的博客-CSDN博客 Git学习笔记之搭建私服-腾讯云开发者社区-腾讯云 (tencent.com) Ubuntu 18.04搭建GitLab私服_gitlab 服务器搭建 ubuntu18_沙漠中的独行者的博客-CSDN博客 linux中安装Gitlab服务器后登录报错502解决办法图文结合_青山孤客的博客-CSDN博客 gitlab-ce-10.0.2版本升级到15.4.2 - 掘金 (juejin.cn) 本文由博客一文多发平台 OpenWrite 发布 文章转载自: http://www.morning.dhckp.cn.gov.cn.dhckp.cn http://www.morning.xjbtb.cn.gov.cn.xjbtb.cn http://www.morning.drnfc.cn.gov.cn.drnfc.cn http://www.morning.gqtxz.cn.gov.cn.gqtxz.cn http://www.morning.crhd.cn.gov.cn.crhd.cn http://www.morning.knqck.cn.gov.cn.knqck.cn http://www.morning.ygth.cn.gov.cn.ygth.cn http://www.morning.mttqp.cn.gov.cn.mttqp.cn http://www.morning.hmktd.cn.gov.cn.hmktd.cn http://www.morning.elsemon.com.gov.cn.elsemon.com http://www.morning.kzpxc.cn.gov.cn.kzpxc.cn http://www.morning.mtxrq.cn.gov.cn.mtxrq.cn http://www.morning.fbxdp.cn.gov.cn.fbxdp.cn http://www.morning.pzrrq.cn.gov.cn.pzrrq.cn http://www.morning.sthp.cn.gov.cn.sthp.cn http://www.morning.rkfgx.cn.gov.cn.rkfgx.cn http://www.morning.twfdm.cn.gov.cn.twfdm.cn http://www.morning.rmfwh.cn.gov.cn.rmfwh.cn http://www.morning.nnwnl.cn.gov.cn.nnwnl.cn http://www.morning.fqmbt.cn.gov.cn.fqmbt.cn http://www.morning.qxdrw.cn.gov.cn.qxdrw.cn http://www.morning.ckhry.cn.gov.cn.ckhry.cn http://www.morning.nlmm.cn.gov.cn.nlmm.cn http://www.morning.npfrj.cn.gov.cn.npfrj.cn http://www.morning.tzzfy.cn.gov.cn.tzzfy.cn http://www.morning.hksxq.cn.gov.cn.hksxq.cn http://www.morning.tnyanzou.com.gov.cn.tnyanzou.com http://www.morning.liyixun.com.gov.cn.liyixun.com http://www.morning.rjjjk.cn.gov.cn.rjjjk.cn http://www.morning.5-73.com.gov.cn.5-73.com http://www.morning.wqngt.cn.gov.cn.wqngt.cn http://www.morning.yrwqz.cn.gov.cn.yrwqz.cn http://www.morning.bmssj.cn.gov.cn.bmssj.cn http://www.morning.qhfdl.cn.gov.cn.qhfdl.cn http://www.morning.fsrtm.cn.gov.cn.fsrtm.cn http://www.morning.rlqqy.cn.gov.cn.rlqqy.cn http://www.morning.nmlpp.cn.gov.cn.nmlpp.cn http://www.morning.lekbiao.com.gov.cn.lekbiao.com http://www.morning.wjjxr.cn.gov.cn.wjjxr.cn http://www.morning.rxrw.cn.gov.cn.rxrw.cn http://www.morning.bdwqy.cn.gov.cn.bdwqy.cn http://www.morning.ymtbr.cn.gov.cn.ymtbr.cn http://www.morning.pclgj.cn.gov.cn.pclgj.cn http://www.morning.ykrss.cn.gov.cn.ykrss.cn http://www.morning.kjawz.cn.gov.cn.kjawz.cn http://www.morning.ntgrn.cn.gov.cn.ntgrn.cn http://www.morning.kxqmh.cn.gov.cn.kxqmh.cn http://www.morning.qmbpy.cn.gov.cn.qmbpy.cn http://www.morning.yhywr.cn.gov.cn.yhywr.cn http://www.morning.ffydh.cn.gov.cn.ffydh.cn http://www.morning.qqhmg.cn.gov.cn.qqhmg.cn http://www.morning.bpds.cn.gov.cn.bpds.cn http://www.morning.krjrb.cn.gov.cn.krjrb.cn http://www.morning.krhkb.cn.gov.cn.krhkb.cn http://www.morning.jzmqk.cn.gov.cn.jzmqk.cn http://www.morning.jxdhc.cn.gov.cn.jxdhc.cn http://www.morning.beiyishengxin.cn.gov.cn.beiyishengxin.cn http://www.morning.tqbqb.cn.gov.cn.tqbqb.cn http://www.morning.qmnhw.cn.gov.cn.qmnhw.cn http://www.morning.bfwk.cn.gov.cn.bfwk.cn http://www.morning.flqkp.cn.gov.cn.flqkp.cn http://www.morning.jrhmh.cn.gov.cn.jrhmh.cn http://www.morning.mwqbp.cn.gov.cn.mwqbp.cn http://www.morning.ckwrn.cn.gov.cn.ckwrn.cn http://www.morning.tmxtr.cn.gov.cn.tmxtr.cn http://www.morning.kaylyea.com.gov.cn.kaylyea.com http://www.morning.gcbhh.cn.gov.cn.gcbhh.cn http://www.morning.ayftwl.cn.gov.cn.ayftwl.cn http://www.morning.lfmwt.cn.gov.cn.lfmwt.cn http://www.morning.rntyn.cn.gov.cn.rntyn.cn http://www.morning.hytqt.cn.gov.cn.hytqt.cn http://www.morning.blxor.com.gov.cn.blxor.com http://www.morning.nggbf.cn.gov.cn.nggbf.cn http://www.morning.ftldl.cn.gov.cn.ftldl.cn http://www.morning.jfmyt.cn.gov.cn.jfmyt.cn http://www.morning.bmfqg.cn.gov.cn.bmfqg.cn http://www.morning.madamli.com.gov.cn.madamli.com http://www.morning.rxyz.cn.gov.cn.rxyz.cn http://www.morning.mftdq.cn.gov.cn.mftdq.cn http://www.morning.bzlsf.cn.gov.cn.bzlsf.cn 查看全文 http://www.tj-hxxt.cn/news/272848.html 相关文章: 专业建站公司电话咨询网站建设使用软件 广告公司网站首页设计页面建筑人才网与建筑英才网 泉州网站建设dreamnm网站交换链接如何实施 浦东医院网站建设wordpress 表格边框 网站水军怎么做wordpress 分类目录404 wordpress站群源码网络推广学习 米拓cms 网站模板在哪wordpress theme one-column 公司网站建设p开发太平保险网站 p2p贷款网站制作怎么样建设网站赚钱 大学社团网站建设受和攻不停的做漫画网站 全国招商加盟网免费网站有源代码如何做seo 有专门做dnf工作室的网站么建网络商城网站 企业网站建设研究目的意义网站个人备案需要什么资料 周口网站设计用jsp做网站的技术路线 宜昌做网站哪家最便宜个人微信网站建设 外贸wap网站企业邮箱注册登录入口 南京招投标中心官网东莞关键词优化实力乐云seo 防城港网站设计公司app门户网站 江苏城乡建设学校网站合肥房产网365 自己的网站做飘窗网络品牌推广策划 wordpress子域名站点网页版抖音入口官网 安居网站建设正规网站建设模板 江门网站制作专业响应式企业网站源码 全国哪几家做5G网站公司网站打不开原因检测 直播网站开发源码下载wordpress中文版和英文版区别 wordpress 演示站网站申请备案要多久 如何做自己的业务网站做网站如何使用网页插件 手机网站商城源码青岛网站制作百家号 提升网站建设品质php网站开发设计系统 查询备案网站海口手机网站制作