linux常用命令行

# 显示目录详情 ~ ᐅ ls -lah # 查找文件 ~ ᐅ find PATH -iname pattern # 查找文件内容 ~ ᐅ grep -R PATTERN FILE # 显示所有进程 ~ ᐅ ps auxw # 查询dns ~ ᐅ dig [@server] name # 查看端口占用情况

on linux

常用镜像源

nvm taobao镜像源 # ~/.zprofile # nvm export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node export NVM_DIR="/home/kiyan/.nvm" [ -s "$NVM_DIR/nvm.sh"

pm2 deploy nvm not loaded

// pm2 ecosystem.config.js module.exports = { deploy : { production : { user : "node", host : "xxx.xxx.xxx.xxx", ref : "origin/master", repo : "https://github.com/fourcels/ghostiny.git", path

Apache目录访问权限

Apache 设置虚拟目录 <VirtualHost *:80> ... Alias /doc "/home/node/public-api/current/doc" <Directory "/home/node/public-api/current/doc"> Options Indexes FollowSymLinks AllowOverride None