解决部署的一些项目,因机器关机/重启导致项目需要手动重新启动的问题 1.安装supervisor(3种选一种) 1 2 3 4 5 6 7 8 #yum安装 yum install
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 server { listen 80; server_name xx.cn; #域名1 location / { proxy_pass http://x.x.x.x:9001; #域名1需要映射到80端口的服务端口 } } server { listen 80; server_name xx.cn; #域名2 location / { proxy_pass http://xx.xx.xx.xx:7300; #域名
前期准备: 1、Linux:CentOS Linux release 7.8.2003 (Core) 2、mongodb:3.4.24 3、redis:4.0.14 4、node:8.9.0 PS: no
1.安装nvm 1 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash 或者 1 wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash 2.nvm会自己添加环境变量,但是需要我们手动让环境变量生效 1 source ~/.bashrc ps:如果没有环境变量,需要手动
原因 原因:git本地运行有缓存,需要清除git缓存即可 解决 1 git rm -r --cached . 注意: 清完缓存需要把代码推到远程仓库
前景: 在查看git branch分支时,需要q才能退出出现 原因 这是 git 2.16以后版本的默认行为. 如果不想分页输出可以设置: 解决 1 git config --global pager.branch false
我的需求是这样的,nginx+uwsgi启动的web服务,访问域名XX.CN之后,nginx报错404,我需要实现的是访问XX.CN,自动映
出现的问题是django没有django_session表 错误跟Session的机制相关 既然要从Web服务器端来记录用户信息, 那么一定要有存
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff8fba5f080>, ‘Connection to mirrors.aliyn.com timed out. (connect timeout=15)')': /pypi/simple/python-jenkins/ 1 $ pip3 install python-jenkins 安装python-jenkins报错如下 解决办法: 1 $ pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple python-jenkins 如上已经安装好了
报错404,NOT FOUND可能是因为nginx.conf配置文件的俩处地方配置有误,按照下面,检查你的配置之后99.9999%是可以在浏览