1、下载安装libevent
wget https://github.com/libevent/libevent/releases/download/release-x.x.xx-stable/libevent-2.1.12-stable.tar.gz
tar -zxvf libevent-x.x.xx-stable.tar.gz
cd libevent-x.x.xx-stable
./configure
make && make install
# 如果无法make,安装gcc
yum install -y gcc-c++
2、下载安装tmux
wget https://github.com/tmux/tmux/releases/download/x.xx/tmux-x.xx.tar.gz
tar -zxvf tmux-x.xx.tar.gz
cd tmux-x.xx
./configure
make && make install
3、遇到错误
启动提示libevent-2.1.so.7: cannot open shared object file: No such file or directory
参考这个
sudo ln -s /usr/local/lib/libevent-2.1.so.7 /usr/lib64/