1、yum install libevent-devel ncurses-devel
2、
wget http://downloads.sourceforge.net/tmux/tmux-1.8.tar.gz
tar xzf tmux-1.8.tar.gz
cd tmux-1.8
CFLAGS="-I/usr/local/include" LDFLAGS="-L//usr/local/lib" ./configure
make && make install1
3、
报错
tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
解决:
ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5
4、tmux配置 文件
配置 Tmux 安装完 Tmux 默认没有配置文件,需手动生成。/etc/tmux.conf 全局文件,~/.tmux.conf 用户环境文件
tmux的系统级配置文件为/etc/tmux.conf,用户级配置文件为~/.tmux.conf。配置文件实际上就是tmux的命令集合,也就是说每行配置均可在进入命令行模式后输入生效。
解决方法:
可以直接在 tmux/ 中 执行:
cp examples/n-marriott.conf ~/.tmux.conf