5

还不懂 devops 是什么意思?想上手的千万别错过!

 2 years ago
source link: https://www.v2ex.com/t/847177
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

还不懂 devops 是什么意思?想上手的千万别错过!

  zhenorzz · 6 小时 16 分钟前 · 283 次点击

Devops 是什么?

DevOps ( Development 和 Operations 的组合词)是一组过程、方法与系统的统称,用于促进开发(应用程序 /软件工程)、技术运营和质量保障( QA )部门之间的沟通、协作与整合。
它是一种重视“软件开发人员( Dev )”和“IT 运维技术人员( Ops )”之间沟通合作的文化、运动或惯例。透过自动化“软件交付”和“架构变更”的流程,来使得构建、测试、发布软件能够更加地快捷、频繁和可靠。
有相当多开源项目实现了 devops ,例如 Jenkins 、Ansible 、Goploy 。
下面以 Goploy 为例讲解如何安装以及发布项目。

Goploy 安装

安装前必须保证系统已经安装了下列软件

go >= 1.16

Git >= 2.10

MySQL >= 5.7

MySQL 客户端

Rsync(linux mac 自带,windows 需要安装 cwRsync)

下载 releases

https://github.com/zhenorzz/goploy/releases

https://gitee.com/goploy/goploy/releases

# 新手推荐用 root 启动,避免不必要的问题
# 运行不了可能需要 chmod a+x, 再不行就发 issue 或加群
# Windows 打开 cmd
goploy.exe
# Linux
./goploy
# Mac
./goploy.mac
请输入 mysql 的用户:
***
请输入 mysql 的密码:
******
请输入 mysql 的主机(默认 127.0.0.1 ,不带端口):

请输入 mysql 的端口(默认 3306):

请输入日志目录的绝对路径(默认 stdout):

请输入监听端口(默认 80 ,打开网页时的端口):

#输入完成稍等片刻即可安装完成

http://host:port(账号:密码 admin:admin!@#)

服务器设置

Goploy SSH 免密登录

PHP 项目

Web 项目

Go 项目

设置以上事项即可发布项目


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK