linux虚拟环境的管理-python版本 用python开发项目,受版本限制,需要变更不同版本的python,以前都是直接安装python,如在ubuntu环境下 sudo apt-get install python-dev ubuntu不同版本默认安装的python3版本16.04-pytho ...
分类:
系统相关 时间:
2020-12-28 11:44:20
阅读次数:
0
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #error_log "pipe:rollba ...
分类:
其他好文 时间:
2020-12-28 11:28:07
阅读次数:
0
解决 Ubuntu 中 gedit打开文件中文乱码文件 1. 问题分析 缺省配置下,用 Ubuntu 的文本编辑器(Gedit)打开GB18030(繁体中文用户请将这里的出现的GB18030替换成BIG5或BIG5-HKSCS)类型的中文编码文本文件时,将会出现乱码。 2. 解决方案 打开终端,在终 ...
分类:
系统相关 时间:
2020-12-28 11:13:45
阅读次数:
0
一、编译部署Nginx 1.12 安装配置: [root@localhost ~]# groupadd nginx [root@localhost ~]# useradd -s /sbin/nologin -g nginx -M nginx [root@localhost ~]# systemctl ...
分类:
其他好文 时间:
2020-12-28 10:59:10
阅读次数:
0
nginx -s reload 有时候重新加载配置文件没有生效 检查/var/log/nginx/error.log [notice] 29410#0: signal process started [emerg] 2999#0: bind() to 0.0.0.0:9091 failed (13: ...
分类:
其他好文 时间:
2020-12-28 10:54:15
阅读次数:
0
1、 sudo apt-get install nfs-kernel-server # 安装 NFS服务器端 sudo apt-get install nfs-common # 安装 NFS客户端 2、添加NFS目录 sudo vim /etc/exports 若需要把 “/nfsroot” 目录设 ...
分类:
系统相关 时间:
2020-12-25 12:51:18
阅读次数:
0
uwsgi ? #添加配置选择 [uwsgi] http=:5000 #配置和nginx连接的socket连接 socket = 127.0.0.1:8001 #配置项目路径,项目的所在目录 chdir=/data/wwwroot/爱家/iHome-python #配置wsgi接口模块文件路径,也就 ...
分类:
其他好文 时间:
2020-12-25 12:32:53
阅读次数:
0
lnmp部署 nginx编译安装 nginx编译安装 mariadb安装 ##安装mariadb [root@vm3 ~]# yum -y install mariadb mariadb-server ##修改mariadb密码 [root@vm3 ~]# mysql MariaDB [(none) ...
分类:
其他好文 时间:
2020-12-25 12:22:47
阅读次数:
0
Nginx服务器是网站反向代理,负载均衡,以及动静分离的神器,由于是第一次在阿里云上配置这个,花费了大半天,终于配置成功了。下面简要的介绍下其流程,以备后面又搞忘了。 购买阿里云服务器,以及用XShell通过SSL方式远程登录服务器略过。(需要说明的是需在阿里云服务器开80端口) 1.进入/usr/ ...
分类:
其他好文 时间:
2020-12-24 12:29:00
阅读次数:
0
现在美美地跑在 ubuntu20.04+nvidia-driver-455上了 几个关键点记录下,供大家参考: (ubuntu内置的驱动nouveau,简称u; nvidia官方驱动,简称n) 安装n前禁用u,方法:在grub中按e打开启动项目编辑,在linux那行最后加上nouveau.modes ...
分类:
系统相关 时间:
2020-12-24 12:07:42
阅读次数:
0