04 2024 档案
摘要:在Windows环境下写了个shell脚本,复制到Linux下使用./echo.sh运行发现如下错误: /bin/sh^M:损坏的解释器: 没有那个文件或目录 出现这个问题的原因如下:在Windows下,每一行的结尾是\r\n,但是在Linux下文件的结尾是\n。因此在Windows环境下编辑过的文
阅读全文
摘要:vim /etc/security/limits.conf * soft nofile 65535 * hard nofile 65535 * soft nproc 65535 * hard nproc 65535 * 代表所有用户nofile 代表打开文件数量nproc 代表开发进程soft 软限
阅读全文