For Linux's Common people, if you say you will not tmux, then you are out ~
1. What is Tmux?
Let's see what Tmux looks like first.
Tmux is an excellent end-use software, similar to GNU screen, but comes from OpenBSD, with BSD licensing. The most intuitive benefit of using it is that when you log in to a remote host through a terminal and run Tmux, you can open multiple consoles in it without having to "waste" redundant terminals to connect to the remote host, which is much more than that. (Excerpt from Baidu Encyclopedia)
For more information about Tmux, see http://blog.chinaunix.net/uid-26285146-id-3252286.html
2. How to install Tmux on Ubuntu
Installing Tmux on Ubuntu is simple, just enter a command on the terminal
sudo Install Tmux
At run time, only need to enter the Tmux on the terminal to be able to use ~
3. How to install Tmux on a CentOS cluster
On the CentOS cluster, we often do not have root privileges. So want to install Tmux, need to download source code compilation. The steps are as follows:
1) Download and compile the Tmux dependent library libevent
* Login http://libevent.org Download libevent source code (such as libevent-2.0.22-stable.tar.gz)
* Unzip the TAR package
tar -zxvf libevent-2.0. -stable. tar. gz
* Enter the extracted libevent directory, compile
CD libevent-2.0. -stable. /configure--prefix=/libevent_pathmake make andinstall
Where/libevent_path is the custom installation directory
2) Download and compile Tmux
* Login Https://github.com/tmux/tmux Download Tmux source code
* Unzip the ZIP package
Unzip Tmux-master. Zip
* Enter the Tmux-master directory, compile (because libevent is not installed in the default path, so when compiling tmux, the path of the search header and library files is changed by Cflags and ldflags environment variables)
CD tmux-mastercflags="-i/libevent_path/include" ldflags="-l/ Libevent_path/lib" ./configure--prefix=/tmux_pathmake makeinstall
* Add libevent-2.0.so.5 in. bashrc
Export D_library_path=/libevent_path/lib: $LD _library_path
* Last updated. BASHRC
source. BASHRC
3) Enter Tmux command, done ~
CentOS cluster Installation Tmux