• 工作需要,记录一下! sudo docker run --privileged -d \ --restart=unless-stopped \ -p 80:80 -p 443:443 \ -v /var/data/env/rancher:/va...
    • 1年前
  • 说明:项目中需要使用,记录一下! # 进入项目根目录执行命令,其它同理: chmod 777 node_modules/.bin/vite
    • 1年前
  • 工作中需要使用,记录一下。后面会逐步完善! // 构建镜像docker build -f Dockerfile -t gateway:1.0 . // 运行镜像docker run -d -p 8080:8080 --name gateway g...
    • 1年前
  • 工作中需要使用记录一下! # 禁止ip访问server {    listen 80 default_server;    listen [::]:80 default_server;   &nb...
    • 1年前
  • 日志文件的常用查看操作,工作中需要使用,记录一下! 例如日志文件名为:logs.log 1. 实时查看日志文件 tail -f logs.log 2. 实时查看日志文件后一百行 tail - 100f logs.log 3. linux查看日志后...
    • 1年前
  • 1.安装brew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" #中途会提示回车继续 #Press RETURN...
    • 1年前
  • 说明:直接上干货! git config --global user.name "git用户名" git config --global user.email "git邮箱" git init git remote add origin http...
    • 1年前
  • 说明:习惯了Linux的命令,所以对ll命令情有独钟,但是mac os 只有ls,没有ll。设置一下就支持了! 1. 编辑.bash_profile文件 vim ~/.bash_profile 2. 在文件中加入如下配置 alias ll='ls...
    • 1年前
  • 说明:这部分有个坑,自定义请求头中的key值不能带下划线_;配置允许请求头信息在NGINX配置文件中加入如下配置即可。 underscores_in_headers on;
    • 1年前
  • 说明:项目需要使用NGINX跨支持,记录一下。在需要跨域的节点中配置即可! add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GE...
    • 1年前