Blog
首页
文档
收藏
关于
  • 在线转换时间戳 (opens new window)
  • 在线压缩图片 (opens new window)
  • Float-Double转二进制 (opens new window)
  • 文件转Hex字符串 (opens new window)

HiuZing

🍑
首页
文档
收藏
关于
  • 在线转换时间戳 (opens new window)
  • 在线压缩图片 (opens new window)
  • Float-Double转二进制 (opens new window)
  • 文件转Hex字符串 (opens new window)
  • Nginx

    • Nginx介绍
    • Nginx安装
    • Nginx配置文件
    • Nginx反向代理
    • Nginx拉取git项目
      • Nginx拉取git项目
        • 安装环境
        • 克隆项目
        • 安装依赖
        • 构建项目
    • Nginx添加虚拟主机配置文件
    • Nginx项目自动更新
    • Vue-histroy模式跳转路由404问题
    • GoAccess
    • Nginx负载均衡
  • Docker

  • Server

  • Linux

  • Windows

  • 运维
  • Nginx
HiuZing
2023-01-06
目录

Nginx拉取git项目

# Nginx拉取git项目

# 安装环境

  1. 下载 | Node.js (opens new window)

    cd Downloads
    
    1
  2. 解压

    tar xf node-v**.**.*-linux-x64.tar.xz
    
    1
  3. 将解压后的文件夹移动到希望安装的目录

    mv node-vX.X.X-linux-x64 /usr/local/node
    
    1
  4. 设置环境变量

    vim /etc/profile
    
    1
    export NODE_HOME=/usr/local/node
    export PATH=$NODE_HOME/bin:$PATH
    
    1
    2
  5. 使用命令使命令修改生效

    source /etc/profile
    
    1
  6. 查看安装node版本

    node -v
    
    1

# 克隆项目

# 安装依赖

# 构建项目

npm run build
1

将dist文件夹内的所有文件复制到配置文件中的路径

上次更新: 2024/08/14, 04:14:33
Nginx反向代理
Nginx添加虚拟主机配置文件

← Nginx反向代理 Nginx添加虚拟主机配置文件→

最近更新
01
React Native 使用SVG
08-13
02
Docker基础命令
08-04
03
算数逻辑单元
07-30
更多文章>
Theme by Vdoing | Copyright © 2021-2024 WeiXiaojing | 友情链接
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式