1. git node
1.1 git 安装
sudo apt-get install git
git -v
1.2 node 安装
sudo apt install curl # 安装 curl
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - # 更新最新版14.x的源文件
# 更新 阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb 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 main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
cd /etc/apt/
cp sources.list sources.list.bak
sudo cp sources.list sources.list.bak
sudo true > sources.list
sudo apt update
# 安装 nodejs
sudo apt-get install -y nodejs
node -v
npm -v
1.3 python3 安装
# 安装 python3
sudo apt-get install python3.4
# 将 python 软链到 python3
whereis python3
cd /usr/bin/
sudo cp python3 python
# 安装 pip3
sudo apt-get install python3-pip
1.4 mongodb安装
sudo apt-get update
sudo apt-get install mongodb
mongo --version
1.5 postgresql 安装
sudo apt-get update
sudo apt-get install postgresql-12 -y
psql --version
# 简单配置
sudo -u postgres psql # 进入
ALTER USER postgres WITH PASSWORD 'postgres';
CREATE USER "neo" with password '1234';
CREATE DATABASE "neo" with owner = "neo";
2. 安装 wine
wine 可以直接用来安装 windows 环境下的安装包,安装后可以直接在 Linux 下跑 windows 的软件。
# 1. 安装 wine
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install wine-stable
# 2. 安装 winetricks 修复不能输入的问题
sudo apt install winetricks
winetricks riched20
# 2. 安装 exe
# 首先得去官网下载 安装文件 WeChatSetup.exe
wine WeChatSetup.ext
# ...