基本环境的配置
apt install -g openssh-server vim
SSH服务器发送了一个意外的数据包
解决方案1:改用XSHELL 6来连接就行了
解决方案2:改sshd的配置文件,让它向下兼容
①在/etc/ssh/sshd_config配置文件最后面添加下面一行:
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1
源的配置
#scp -rp /etc/apt/sources.list /etc/apt/sources.list.bak
#sudo vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
#保存退出
~$ sudo apt update #修改后更新apt源
1.下载nodejs
#wget https://npm.taobao.org/mirrors/node/v14.17.4/node-v14.17.4-linux-x64.tar.xz
#tar xvf node-v14.17.4-linux-x64.tar.xz
#mv node-v14.17.4-linux-x64 /opt/
#cd /opt/
#ln -s node-v14.17.4-linux-x64 node
#vim /etc/profile
export PATH=$PATH:/opt/node/bin
#source /etc/profile
2.cnpm的安装
#npm install -g cnpm --registry=https://registry.npm.taobao.org
1.下载和安装
wget https://golang.google.cn/dl/go1.16.6.linux-amd64.tar.gz
tar zxvf go1.16.6.linux-amd64.tar.gz
mv go1.16.6.linux-amd64 /opt/
#vim /etc/profile
在文件的末尾添加如下代码:
export GOROOT=/opt/go
export GOPATH=/opt/go/path
export PATH=$PATH:$GOROOT/bin
#source /etc/profile
2.查看版本
# go version
go version go1.12.10 linux/amd64
下载goland的和安装
wget https://download.jetbrains.com/go/goland-2020.1.tar.gz
tar zxvf goland-2020.1.tar.gz