CentOS cluster Installation Tmux

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.