文章

服务器

服务器

配置Gugoo云的流程

ssh登陆

ssh root@xxx.xxx.xxx.xxx

gugoo部署

git go build main.go

作为服务启动

supervisorctl命令

本地部署supervisor

sudo apt-get install supervisor locate supervisor :目的是自动执行GGYun cd /etc/supervisord.conf ls conf.d supervisor [include]包含其他配置文件 [program:GGYun] directory= command= autostart = true autorestart = true startsecs = 5 user = root

载入配置文件

supervisorctl reload/update

Nginx的反向代理

反向代理

http://nginx.org/en/download.html

编译安装

tar -zxvf cd xxxx ./

ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.21.tar.gz

  1. 下载并解压nginx
  2. 执行./configure检查环境配置
  3. 安装依赖包之后执行make makeinstall

指定ssl的路径

–with-openssl=/usr/bin/openssl

配置nginx

运行nginx

运行过程

当访问yun.gugoo.cc时 yun.gugoo.cc:80 -> localhost:8000 当访问map.gugoo.cc时 map.gugoo.cc:80 -> localhost:8888

如何上传本地文件

git

scp

scp // root@xxx.xxx.xxx.xxx:/home

端口被占用?

lsof -i:8008 ps

参考文章:www.zybuluo.com/phper/note/89391

本文由作者按照 CC BY 4.0 进行授权

热门标签