accept(4, 0x7fff7b7be8d0, 0x7fff7b7be8cc) = -1 EMFILE (Too many open files)
prlimit --pid 12345 --nofile=1024:1024
查询某个进程打开文件数:
ls /proc/$pid/fd/ | wc -l
查询某个进程limit信息
cat /proc/12970/limits
accept(4, 0x7fff7b7be8d0, 0x7fff7b7be8cc) = -1 EMFILE (Too many open files)
prlimit --pid 12345 --nofile=1024:1024
查询某个进程打开文件数:
ls /proc/$pid/fd/ | wc -l
查询某个进程limit信息
cat /proc/12970/limits
grep -rn "unix" /mnt/www/xxx
qemu-img convert -p -f raw d_m-xxx_data_xvdb.raw -O vmdk d_m-xxx_data_xvdb.vmdk
-f raw 不要省略,否可能报以下错误信息:
block-vpc: free_data_block_offset points after the end of file. The image has been truncated.
由于内存不足make报错,开启虚拟内存即可
cc: fatal error: Killed signal terminated program cc1 compilation terminated.
请跳转至:
想要移动/boot分区时,首先使用(Gparted 这个软件,直接apt-get install gparted 就可以安装)
(1)使用gparted查看你的/boot分区挂载在哪个磁盘上
(2)之后使用mount 挂载你的目的磁盘
(3)将源/boot磁盘中的信息全都拷贝到你的目的磁盘中
(4)将源/boot磁盘unmount一下,并将目的磁盘mount到/boot目录下
(5)更新sudo grub-install –boot-directory=目的boot目录 /dev/sda
5.1 检查fstab
(6)reboot 查看是否更新成功