CentOS 6에서 yum install을 사용한 Tmux 설치 방법을 알아보고, 실습을 통해 쉽게 적용하고 사용할 수 있습니다.
CentOS 6에서 yum install을 사용한 Tmux 설치 방법을 알아보고, 실습을 통해 쉽게 적용하고 사용할 수 있습니다.
tmux는 터미널 멀티플렉서로 단일 화면에서 여러 터미널을 생성하고 접속할 수 있습니다. 백그라운드에서 계속 실행 중이므로 접속 해제 후 다시 같은 화면으로 접속할 수 있습니다.
리눅스 관리 서버에서 tmux 실행 후 WEB, WAS, DB, NAS 등을 session으로 분류하고, window를 생성해서 서버에 ssh로 접속해서 관리할 수 있습니다.
실습 환경
- 운영 체제(OS) : CentOS 6.10
- tmux version : 1.6
- IP 설정 및 인터넷이 가능한 환경
tmux 설치하기
epel-release 설치하기
[yum install epel-release -y]
[root@runit.cloud ssl]# yum install epel-release -y 10:06:35 $ yum install epel-release -y Loaded plugins: fastestmirror Setting up Install Process Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:6-8 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================= Installing: epel-release noarch 6-8 extras 14 k Transaction Summary ============================================================================================================================================================================================================================================= Install 1 Package(s) Total download size: 14 k Installed size: 22 k Downloading Packages: epel-release-6-8.noarch.rpm | 14 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : epel-release-6-8.noarch 1/1 Verifying : epel-release-6-8.noarch 1/1 Installed: epel-release.noarch 0:6-8 Complete!
tmux 정보 확인하기
[yum info tmux]
[root@runit.cloud ssl]# yum info tmux 10:06:45 $ yum info tmux Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: mirror.kakao.com * epel: nrt.edge.kernel.org * extras: mirror.kakao.com * updates: mirror.kakao.com Available Packages Name : tmux Arch : x86_64 Version : 1.6 Release : 3.el6 Size : 208 k Repo : epel Summary : A terminal multiplexer URL : http://sourceforge.net/projects/tmux License : ISC and BSD Description : tmux is a "terminal multiplexer." It enables a number of terminals (or : windows) to be accessed and controlled from a single terminal. tmux is : intended to be a simple, modern, BSD-licensed alternative to programs such : as GNU Screen.
tmux 1.6 설치하기
[yum install tmux -y]
[root@runit.cloud ssl]# yum install tmux -y 10:09:02 $ yum install tmux -y Loaded plugins: fastestmirror Setting up Install Process Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Loading mirror speeds from cached hostfile * base: mirror.kakao.com * epel: nrt.edge.kernel.org * extras: mirror.kakao.com * updates: mirror.kakao.com Resolving Dependencies --> Running transaction check ---> Package tmux.x86_64 0:1.6-3.el6 will be installed --> Processing Dependency: libevent-1.4.so.2()(64bit) for package: tmux-1.6-3.el6.x86_64 --> Running transaction check ---> Package libevent.x86_64 0:1.4.13-4.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================= Installing: tmux x86_64 1.6-3.el6 epel 208 k Installing for dependencies: libevent x86_64 1.4.13-4.el6 base 66 k Transaction Summary ============================================================================================================================================================================================================================================= Install 2 Package(s) Total download size: 274 k Installed size: 721 k Downloading Packages: (1/2): libevent-1.4.13-4.el6.x86_64.rpm | 66 kB 00:00 (2/2): tmux-1.6-3.el6.x86_64.rpm | 208 kB 00:00 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 717 kB/s | 274 kB 00:00 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 Importing GPG key 0x0608B895: Userid : EPEL (6)Package: epel-release-6-8.noarch (@extras) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : libevent-1.4.13-4.el6.x86_64 1/2 Installing : tmux-1.6-3.el6.x86_64 2/2 Verifying : libevent-1.4.13-4.el6.x86_64 1/2 Verifying : tmux-1.6-3.el6.x86_64 2/2 Installed: tmux.x86_64 0:1.6-3.el6 Dependency Installed: libevent.x86_64 0:1.4.13-4.el6 Complete!
tmux 설치 확인하기
tmux version 확인하기
[tmux -V]
[root@runit ssl]# tmux -V tmux 1.6
tmux 실행하기
[tmux]
Tmux 실행 화면 |
마무리
Tmux 패키지를 yum을 통해 설치하는 방법에 대해 알아보았습니다.
yum을 통해 간단하게 Tmux를 설치하고 실행하는 실습을 통해 쉽게 설치하고 사용할 수 있습니다.
COMMENTS