# e-tools **Repository Path**: ymcdhr/e-tools ## Basic Information - **Project Name**: e-tools - **Description**: e-tools - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-08-09 - **Last Updated**: 2021-11-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## API类工具 #### json-server:简单的 json 服务器 1. 安装 ``` > npm i json-server -D ``` 2. 使用 ```js // npm 启动 > npm run dev:server-db // npm scripts "scripts": { "dev:server-db": "json-server --watch ./db.json --port 5001" }, ``` #### Thunder Client:替代 postman 的 vscode 插件 ![输入图片说明](https://images.gitee.com/uploads/images/2021/1111/101524_18615a1f_9130428.png "屏幕截图.png") ## 前端相关(npm、本地服务) #### 自动安装 Nodejs、npm 脚本 #### num-run-all 运行多个 npm 命令 ## Linux 服务器配置(家用) #### CentOS 8 防火墙 1. 关闭防火墙 ``` > systemctl stop firewalld.service > systemctl disable firewalld.service ``` #### Net 穿越:网云穿工具 - 账号:185******39 - 密码:585****7 - 令牌:ie04so6d,可在官网控制台查询:https://i.xiaomy.net/#/tunnel 1. 启动 Net 穿越 nohup ./wyc_linux_64 -token=ie04so6d & 2. 关闭 Net 穿越 ps -ef|grep wyc kill -9 xxx 3. 访问地址:arsom72h.dongtaiyuming.net #### Nginx 配置 1. 安装 nginx ``` yum install nginx ``` 2. 查看 nginx 安装路径 ``` rpm -ql nginx ``` 3. yum 安装 nginx 后,nginx 相关文件路径 ``` /etc/nginx => 配置文件 /usr/sbin => 执行文件 ``` ## Nodejs 常用工具 #### pm2 #### nodemon