一、目录结构: pip.conf文件: [global]index-url = https://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.com requirements.txt文件: Django==2. ...
分类:
其他好文 时间:
2020-06-07 19:54:55
阅读次数:
82
ping 127.0.1.1 sudo vi /etc/resolv.conf #设置域名服务器 netstat -rn #查看网络信息 route add default gw 192.168.31.100 #添加网关信息 grep hosts /etc/nsswitch.conf #验证是否可用 ...
分类:
系统相关 时间:
2020-06-07 16:37:09
阅读次数:
89
#1.找到文件: apache-tomcat-9.0.14-windows-x64/conf/logging.properties #2、添加语句: java.util.logging.ConsoleHandler.encoding = GBK #3、重启tomcat,查看日志数据即可 ...
分类:
其他好文 时间:
2020-06-07 16:25:34
阅读次数:
117
一.虚拟路径 进入server.xml找到: 默认的本地的虚拟路径webapps 配置其他路径: 1.第一种方式: 配置完需要重启 docBase:实际路径 path:虚拟路径(绝对路径,相对路径(相对于wenapps的路径)) 2.第二种方式:直接在conf\Catalina文件夹下新建 项目名称 ...
分类:
其他好文 时间:
2020-06-07 14:57:02
阅读次数:
68
在上次做了第一次尝试,现尝试优化 https://www.cnblogs.com/tingxin/p/11949317.html 首先日志文件和logging 配置文件都放在conf文件夹下 产生日志文件 newfile.py import os,time def newfile(targetfil ...
分类:
编程语言 时间:
2020-06-07 14:49:47
阅读次数:
60
spring boot国际化使ReloadableResourceBundleMessageSource设置basenames并返回messagesource @Configuration public class I18nConfig { @Bean(name = "messageSource") ...
分类:
编程语言 时间:
2020-06-07 14:38:38
阅读次数:
180
1 uwsgi.ini uwsgi.ini端口设置为9000,是因为nginx转发端口要设置为8000 直接走http协议。在nginx.conf配置里更改。 # 配置文件:这一行必须有,如果[uwsgi]直接顶行,ubuntu18.04找不到 [uwsgi] #端口 # 服务器地址,不是外网地址, ...
分类:
其他好文 时间:
2020-06-07 12:55:38
阅读次数:
52
java读取Resources下文件http://www.fu-w.com/a/63645.html第一种,读为流文件InputStream path = this.getClass().getResourceAsStream("/data.txt");BufferedReader reader = ...
分类:
编程语言 时间:
2020-06-07 12:54:44
阅读次数:
291
一、windows 下安装使用 1.下载:从github 下载 2.安装:redis-server.exe --service-install redis.windows.conf 3.启动:redis-server.exe --service-start 4.停止:redis-server.exe ...
分类:
其他好文 时间:
2020-06-07 12:47:12
阅读次数:
55
Yarn 和 NPM 国内快速镜像(淘宝镜像) 如果在前端开发使用 NPM 或者 YARN 下载过程中碰到网速非常慢,可以配置国内 淘宝镜像 来提升下载速度。具体方法如下: NPM 查询当前镜像 npm get registry 设置为淘宝镜像 npm config set registry htt ...
分类:
其他好文 时间:
2020-06-07 11:23:49
阅读次数:
105