linux常用命令
查看端口占用
lsof -i :80设置文件打开数
临时:
ulimit -n 10230永久:
打开
/etc/security/limits.conf文件:
sudo vi /etc/security/limits.conf在文件的末尾添加以下行,指定要设置的限制值:
* soft nofile 65536
* hard nofile 65536查看硬盘空间
du -h --max-depth=1 | sort -nLast updated
Was this helpful?