服务器部署
1.云服设置swap
1) 腾讯云
https://cloud.tencent.com/developer/article/1177934
2)阿里云
https://yq.aliyun.com/articles/52098
2.部署python虚拟环境
yum install –y gcc gcc-c++ python-devel
pip install virtualenv virtualenvwrapper
vim ~/.bash_profile
export WORKON_HOME=/data/env
export VIRTUALENVWRAPPER_WORKON_CD=1
source /usr/bin/virtualenvwrapper.sh
. ~/.bash_profile
3 部署openresty
https://blog.csdn.net/pengweixiang/article/details/79111802
3.部署docker环境
curl -sSL https://get.daocloud.io/docker | sh
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s
curl -L https://get.daocloud.io/docker/compose/releases/download/1.12.0/docker-compose-uname -s
-uname -m
> /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
vim /usr/lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375
systemctl daemon-reload
systemctl restart docker
docker -H 192.168.163.134:2375 images
docker run centos:centos6 uname -a
docker run b5e5ffb5cdea ps aux
docker run -dit -P nginx
docker ps
docker exec -it b35fd79fe75b /bin/bash 进入容器
docker logs b35fd79fe75b
停止容器
docker stop 1 }')
删除容器
docker rm 1 }')
5.部署sentry
https://www.cnblogs.com/name/p/7918758.html
申请安装腾讯云免费ssl证书