Use Ali's ius-release.rpm to install the latest version of the terminal reuse artifact tmux

Foreword:

When installing tmux, the quick installation is used, but the https://centos7.iuscommunity.org/ius-release.rpm download error is reported!

solve:

Since the external network is unavailable, can Ali, who is almighty, help?

https://mirrors.aliyun.com/ius/?spm=a2c6h.13651104.0.0.4dfe6898ICENdr

In centos, the yum install tmux installation seems to be version 1.8, and plug-ins such as saving sessions need to run above version 1.9, so you need to manually download Ali's ius-release rpm package and install it. It's very simple, just run the following command directly.

# 安装更新
yum update
# 下载rpm源
wget https://mirrors.aliyun.com/ius/ius-release-el7.rpm
# 安装rpm源
rpm -Uvh ius-release*rpm
# 使用yum 安装软件
yum install tmux2u -y
# 显示tmux 版本
tmux -V

You can refer to other configuration tutorials of tmux to save the tmux session. In this way, even if you restart, you don't have to be afraid.

Tips for using tmux:

  • create:
tmux new-session -s test

 Create a new session named "test" (the command can be abbreviated as: tmux new -s test

 Return to the main shell, tmux is still running in the background, and the commands inside remain running: ctrl+b and then press d

  • Show existing tmux sessions
tmux ls
  • Choose to connect to the session named "test"
tmux attach-session -t test 

or

tmux att -t test
  • Kill the session named test
tmux kill-session -t test
  • Save session

Press the activation key combination in tmux and press ctrl + s to save the session

  • Restart session

After restarting, press ctrl + r to restart the session 

Friendly link: https://www.cnblogs.com/kevingrace/p/6496899.html

Guess you like

Origin blog.csdn.net/as4589sd/article/details/108711836