centos 安装 tmux
# centos 安装 tmux
- 参考 tmux-Installing (opens new window)
- 参考 CentOS 升级 tmux 1.8 到最新版 (opens new window)
- Tmux 快捷键 & 速查表 & 简明教程 (opens new window)
先设置个代理
export http_proxy="http://192.168.31.31:9999"
export https_proxy="http://192.168.31.31:9999"
1
2
2
# 安装前置依赖
yum install libevent ncurses
yum install libevent-devel ncurses-devel gcc make bison pkg-config
1
2
2
# 安装
wget https://github.com/tmux/tmux/releases/download/3.2a/tmux-3.2a.tar.gz
tar -zxf tmux-*.tar.gz
cd tmux-*/
./configure
make && sudo make install
1
2
3
4
5
2
3
4
5
# 检查
tmux -V
1
搞定

推荐一个使用说明(最下面有个配置推荐 放好~/.tmux.conf 然后重开就好了)
# 找不到 libevent 的问题
tmux: error while loading shared libraries: libevent_core-2.1.so.6: cannot open shared object file: No such file or directory

cp /usr/local/lib/libevent-2.1.so.6 /lib64/libevent-2.1.so.6
cp /usr/local/lib/libevent_core-2.1.so.6 /lib64/libevent_core-2.1.so.6
1
2
2

编辑 (opens new window)
上次更新: 2024-01-10 16:01:00