Converting any HTML template into a Django template The normal way Any HTML, CSS, JS or BootStrap template can be converted into a Django compatible t ...
分类:
Web程序 时间:
2020-09-18 02:57:40
阅读次数:
47
##1.自建yum仓库,分别为网络源和本地源。 备份yum源配置 [root@centos6 ~]#ll /etc/yum.repos.d/ total 28 -rw-r--r--. 1 root root 1991 Jun 26 2018 CentOS-Base.repo -rw-r--r--. ...
分类:
系统相关 时间:
2020-09-18 01:29:17
阅读次数:
41
[root@localhost dpdk-19.11]# cat /proc/meminfo | grep -i huge AnonHugePages: 0 kB ShmemHugePages: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_ ...
分类:
其他好文 时间:
2020-09-17 22:10:17
阅读次数:
29
关闭 Mac 上的虚拟内存 查看当前正在使用的虚拟内存: $ sysctl vm.swapusage vm.swapusage: total = 1024.00M used = 354.50M free = 669.50M (encrypted) 关闭虚拟内存以后,系统里还保留着这些用作虚拟内存的交 ...
分类:
系统相关 时间:
2020-09-17 18:32:18
阅读次数:
49
机器配置:2 CPU,8GB 内存 需要预先安装 sysstat 等工具,如 yum install sysstat 终端中运行 free 命令,查看 Swap 的使用情况。 $ free total used free shared buff/cache available Mem: 816934 ...
分类:
系统相关 时间:
2020-09-17 16:05:19
阅读次数:
44
当运行中出现Container is running beyond physical memory这个问题出现主要是因为物理内存不足导致的,在执行mapreduce的时候,每个map和reduce都有自己分配到内存的最大值,当map函数需要的内存大于这个值就会报这个错误,解决方法: 在mapredu ...
分类:
其他好文 时间:
2020-09-17 13:31:24
阅读次数:
39
CentOS7系统配置国内yum源和epel源 源文章地址:https://www.cnblogs.com/renpingsheng/p/7845096.html 1.首先进入/etc/yum.repos.d/目录下,新建一个repo_bak目录,用于保存系统中原来的repo文件 [root@bog ...
分类:
其他好文 时间:
2020-09-14 19:10:52
阅读次数:
43
''' from concurrent.futures import ThreadPoolExecutor,ProcessPoolExecutor import time,random,os def task(name,n): print('%s%s is running' %(name,os.ge ...
分类:
编程语言 时间:
2020-09-12 21:45:01
阅读次数:
36