VPS教程
Allen 2020-05-15 14:23:34 5404 0 0 0 0

Centos中安装命令:

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

由于安装过程要几分钟时间,可能会出现中断:

Total download size: 273 k
Installed size: 841 k
Downloading Packages:
                                         [   ===                             ] ---  B/s |   0  B     --:-- ETA
Connection closed by foreign host.

Disconnected from remote host(vrm-centos-01) at 22:22:27.

Type `help' to learn how to use Xshell prompt.

此时,执行卸载脚本,然后重装,现在卸载脚本官方论坛帮助文档里面有

(好像不用卸载也可以,直接重装即可。)


为避免再次断掉,可以用screen命令。

要先安装screen命令,安装时可能报错:

[root@Vrm-centos8-01 ~]# yum -y screen
No such command: screen. Please use /usr/bin/yum --help
It could be a DNF plugin command, try: "dnf install 'dnf-command(screen)'"

--报错

--Centos8安装screen需要使用epel来安装,安装epel后,再安装screen,解决centos8无法安装screen的问题。

1、安装epel
sudo yum install epel-release
2、安装screen
sudo yum install screen
--中间会提示[Is this ok [y/N]: 键入y即可

+++

screen 命令常用参数
-A 让所有视窗自动调整适应当前终端机的窗口大小
-d <会话名称> 将指定的 screen 会话离线
-r <会话名称> 将指定的 screen 会话恢复
-h <行数> 指定视窗的缓冲区行数
-S <会话名称> 指定 screen 会话的名称
-x 恢复所有离线的会话
-ls 或 -list 显示当前的 screen 会话
--wipe 自动将无法使用的screen会话删除

--创建名称为borber的会话
screen -S borber
--查看当前已存在的会话
screen -ls

There is a screen on:
        6262.borber     (Attached)
1 Socket in /var/run/screen/S-root.

+++

继续安装:

创建一个会话:
screen -S -btpanel
--进入会话,开始安装,这次使用美国备用节点【美国】:
yum install -y wget  && wget -O install.sh http://128.1.164.196:5880/install/install_6.0.sh  && sh install.sh

--输入命令后可按Ctrl+A+D,把命令放到后台执行,就算断开ssh,也会一直执行
恢复会话:screen -r btpanel即可,
查看会话列表:screen -ls
可以直接screen -r id
也可以screen -r 名字

--在其他窗口查看会话
[root@BewitchedUncommon-VM ~]# screen -ls
There is a screen on:
	1673.btpanel	(Attached)
1 Socket in /run/screen/S-root.

+++

为加快安装速度,有以下备用节点,建议选距离你买的服务器最近的节点。

备用节点【广东】:
yum install -y wget  && wget -O install.sh http://125.88.182.172:5880/install/install_6.0.sh  && sh install.sh

备用节点【香港】:
yum install -y wget  && wget -O install.sh http://103.224.251.67:5880/install/install_6.0.sh  && sh install.sh

备用节点【美国】:
yum install -y wget  && wget -O install.sh http://128.1.164.196:5880/install/install_6.0.sh  && sh install.sh

服务器版本:CentOS Linux release 8.0.1905 (Core)


【版權聲明】
本文爲原創,遵循CC 4.0 BY-SA版權協議!轉載時請附上原文鏈接及本聲明。
原文鏈接:https://tdlib.com/am.php?t=24fUtyZ3cDx9
Tag: Centos
歡迎評論
未登錄,
請先 [ 註冊 ] or [ 登錄 ]
(一分鍾即可完成註冊!)
返回首頁     ·   返回[VPS教程]   ·   返回頂部