mysql

  1. 安装
sudo apt update
sudo apt install mysql-server
sudo systemctl status mysql
sudo systemctl restart mysql
  1. 配置远程访问
create user 'tu'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'tu'@'%';
FLUSH PRIVILEGES;

找到my.cnf,一般在/etc/mysql/mysql.conf.d/mysqld.cnf,将bind_address 改为 0.0.0.0

  1. 开放3306端口
    在云服务器中配置安全策略,设置入口允许3306端口

nginx

  1. 安装
sudo apt update
sudo apt install nginx
sudo systemctl start nginx
  1. 配置
cd /etc/nginx/sites-enabled/
vim default

nodejs

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.38.0/install.sh | bash
source ~/.bashrc
nvm install 16
npm config set registry https://registry.npmmirror.com

git

sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \
  libz-dev libssl-dev
sudo apt-get install git
git --version

太平洋的风
1 声望0 粉丝

« 上一篇
HTTP2