参考:鸟叔私房菜 http://cn.linux.vbird.org/linux_basic/0210filepermission.php#filepermission 1、Liunx文件属性 在系统内输入 ls -al 命名 total 1208 drwxr-xr-x 133 root root ...
分类:
其他好文 时间:
2020-11-10 10:40:35
阅读次数:
2
int sumOddLengthSubarrays(int* arr, int arrSize){ int i,j,cnt,sum,total=0; for(i=0; i<arrSize; i++) { cnt=0; sum=0; for(j=i; j<arrSize; j++) { cnt++; ...
分类:
编程语言 时间:
2020-11-08 17:21:52
阅读次数:
23
第一种方法#include<stdio.h>#include<Windows.h>#pragmawarning(disable:4996)intQishui(intn){inttotal=0;total+=n;for(;n>=2;n=n/2+n%2){total+=n/2;}returntotal;}intmain(){intmoney=0;printf("
分类:
其他好文 时间:
2020-11-07 16:25:52
阅读次数:
17
基于vue语法 分页加载(vue+element -ui) <template> <div> <el-pagination class="pagination" background layout="prev, pager, next" :pageSize="pageSize" :total="to ...
分类:
其他好文 时间:
2020-10-21 21:27:16
阅读次数:
29
很多东西说真的,不用了就忘了,而我绝对是忘的最快的那个,这次又遇到了这个linux中计算内存的这个情况先说明,如果是centos7的,那就比较舒服了看的,直接total-used=buffer+cache就完事了如果是centos6的呢,free-m的时候会出现-/+buffer/cache这种的,也就是会多出一行,实际内存占用:used-buffers-cached即total-free-buf
分类:
系统相关 时间:
2020-10-12 20:44:37
阅读次数:
35
import pyecharts.options as opts from pyecharts.charts import Bar3D Hair = ["Black","Brown","Red","Blond","Total"] Eye = ["Brown","Blue","Hazel","Gree ...
分类:
其他好文 时间:
2020-10-08 18:32:18
阅读次数:
14
##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