服务器:阿里云服务器Ubuntu18.04
apt-get update和upgrade的区别
总的来说,apt-get update就是访问服务器,更新可获取软件及其版本信息,但仅仅给出一个可更新的list,具体更新需要通过apt-get upgrade,apt-get upgrade可将软件进行更新
-y的作用:当安装包的时候会询问y/n,这个参数是所有询问默认y

apt-get update -y  
apt-get upgrade -y

yarn

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt update && sudo apt install yarn

yarn切换淘宝镜像

yarn config set registry https://registry.npm.taobao.org

git

apt install git

nodejs

curl -sL https://deb.nodesource.com/setup\_12.x | sudo -E bash -

sudo apt-get install -y nodejs

docker

sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker

镜像下载慢

vim /etc/docker/daemon.json
{
    "registry-mirrors":["https://almtd3fa.mirror.aliyuncs.com"]      
}

https://www.cnblogs.com/spll/...
https://blog.csdn.net/weixin_...

docker run --name vscode1 -it -p 8081:8080 -v "/var/local/vscode/project:/home/coder/project" codercom/code-server --auth none

nginx

sudo apt install nginx

crazyPupil
37 声望4 粉丝