1. 创建用于交换分区的文件 如在/swapfile下创建一个8g大小的swap_8g文件 sudo dd if=/dev/zero of=/swapfile/swap_8g bs=1G count=8 2. 设置为交换分区文件: sudo mkswap /swapfile/swap_8g 3.更改 ...
分类:
系统相关 时间:
2020-10-16 10:58:19
阅读次数:
41
1.ifconfig查看网卡信息,ens160(redhat5/6为eth0,7版本为eno167),能看到地址信息/MAC/RX/TX2.uname-a主机名/内核版本/系统打包时间3.uptime可以查看到主机负载信息4.free查看内存使用情况(swap使用情况)free-m:free-h5.who谁在使用6.last系统登录信息,有无恶意登陆7.history历史命令,!39执行命令8.s
分类:
系统相关 时间:
2020-10-10 17:52:33
阅读次数:
37
题目: 设计一个平均时间为O(n)的算法,在n(1<=n<=1000)个无序的整数中找出第k小的数。 提示:函数int partition(int a[],int left,int right)的功能是根据a[left]~a[right]中的某个元素x(如a[left])对a[left]~a[rig ...
分类:
编程语言 时间:
2020-10-09 20:22:27
阅读次数:
38
For a binary tree T, we can define a flip operation as follows: choose any node, and swap the left and right child subtrees. A binary tree X is flip e ...
分类:
其他好文 时间:
2020-10-08 19:09:30
阅读次数:
24
1、安装linux注意事项,swap需要大于4g2、初始化设置修改固定ip地址,可用修改/etc/hosts关闭selinux,修改/etc/selinux/config,SELINUX=enforcing改为SELINUX=disabled关闭防火墙,systemctldisablefirewalld.service,查看状态systemctlstatusfirewalld.service3、配
分类:
数据库 时间:
2020-10-05 22:00:59
阅读次数:
40
ALGS4 Exercise 1.5.15 Problem Binomial trees. Show that the number of nodes at each level in the worst-case trees for weighted quick-union are binomia ...
分类:
编程语言 时间:
2020-10-05 21:48:17
阅读次数:
42
虚拟机环境设置关闭swap分区swapoff-a&&sed-i‘/swap/s/^(.*)$/#\1/g‘/etc/fstab&&free-m关闭selinuxsed-i‘s/SELINUX=enforcing/SELINUX=disabled/‘/etc/selinux/config关闭防火墙systemctlstopfirewal
分类:
Web程序 时间:
2020-10-05 21:41:21
阅读次数:
31
1046 Shortest Distance (20分) #include<stdio.h> #include<iostream> using namespace std; int main() { int length[100100]; int n,n2,num=0; int c1,c2; sca ...
分类:
其他好文 时间:
2020-09-18 03:18:51
阅读次数:
29
函数是程序的最小单位,形参和实参,传值和传址的区别
分类:
编程语言 时间:
2020-09-17 23:26:47
阅读次数:
26