they are not looking for solution, but sharing

they are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharing

使用 code . 启动 VS 编辑器的方法

  • 我们在mac的终端可以使用 open .打开文件夹
  • 如果我们想用vs-code打开文件夹,用的命令是 code .,不过你得先按照code
  • 安装code:打开VSCode –> command+shift+p –> 输入shell command –> 点击提示Shell Command: Install ‘code’ command in PATH运行
    使用:打开终端,cd到要用VSCode打开的文件夹,然后输入命令code .即可打开

docker 部署 nginx + https + node + ..

1 部署一台服务器 装好 docker 这个不说了,简单。

2 装好 docker-compose 这个需要确保你装最新的。

 参考 https://docs.docker.com/compose/install/

sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

  1. sudo chmod +x /usr/local/bin/docker-compose
    
    sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
    docker-compose --version

    安装好了查看版本是不是最新的

    2 安装 nginx 带加密的

    git clone https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion.git

    2 改下配置文件  .env

    ./start.sh

docker 常用命令

https://blog.csdn.net/deng624796905/article/details/86493330

 

docker container run -d -p  3306:3306  –name mysql –env MYSQL_ROOT_PASSWORD=12345

mysql 是 image 的名字,

–env MYSQL_ROOT_PASSWORD=12345    这里的意思是启动一个mysql 然后设置 root password 为 123345

第一个3306 是服务器的端口, 第二个是 docker 暴露的端口,

 

命令帮助 https://gist.github.com/bradtraversy/89fad226dc058a41b596d586022a9bd3