william

Keep Calm and Markdown.

Linux 报错:too many open files

查看文件数

1
2
3
ulimit -a

ulimit -n

增加文件数

1
2
3
4
vim /etc/security/limits.conf

* soft nofile 40960
* hard nofile 40960

注销后重新登录即可生效。

CentOS 安装 Qt

1
2
3
4
5
yum -y groupinstall "GNOME Desktop"
yum -y groupinstall "Development Tools"
yum install -y libGL libGL-devel
yum install -y mesa-libGL-devel mesa-libGLU-devel freeglut-devel
yum install -y libxcb libxcb-devel libXrender libXrender-devel xcb-util-wm xcb-util-wm-devel xcb-util xcb-util-devel xcb-util-image xcb-util-image-devel xcb-util-keysyms xcb-util-keysyms-devel

安装 node.js 与 npm

1
2
3
4
5
6
https://nodejs.org/download/release/v16.20.2/
wget https://nodejs.org/download/release/v16.20.2/node-v16.20.2-linux-x64.tar.gz
tar -xvf node-v16.20.2-linux-x64.tar.gz

cp -r node-v16.20.2-linux-x64.tar.gz ~/local/bin
export PATH=~/local/bin/node-v16.20.2-linux-x64/bin:$PATH

clangd 设置选项

由于系统升级 g++, 导致 nvim clangd 补全有些问题,需要指定 clangd 的配置

1
2
3
mkdir ~/.config/clangd

vim ~/.config/clangd/config.yaml
1
2
3
4
5
6
CompileFlags:
  Add: [
        "-Wall",
        "-I/usr/include/c++/11",
        "-I/usr/include/x86_64-linux-gnu/c++/11",
  ]

Emacs 入坑指南

DoomEmacs 通过使用 evil 模式,很好地结合了 EmacsVim,非常适合入坑。

0%