cd /usr/local/src wget http://download.redis.io/releases/redis-2.8.17.tar.gz tar xzf redis-2.8.17.tar.gz cd redis-2.8.17 make
Make 完后 redis-2.8.17 目录下会出现编译后的 Redis 服务程序 redis-server,还有用于测试的客户端程序 redis-cli,两个程序位于安装目录 src 目录下。
启动 Redis 服务:
1 2
cd src ./redis-server &
部署easy-mock
1 2 3 4
cd /usr/local/src git clone https://github.com/easy-mock/easy-mock.git ## 安装依赖 cd easy-mock && npm install
配置文件路径:config/default.json,可根据情况修改配置(默认不需要修改配置文件)
运行easy-mock
1 2 3 4 5 6 7 8 9 10 11
## 运行 [root@1.1.1.1 easy-mock]# npm run dev > easy-mock@1.6.0 dev /usr/libra/easy-mock > nodemon --ignore views/ --ignore public/ app [nodemon] 1.14.11 [nodemon] to restart at any time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node app.js` server started at http://0.0.0.0:7300
If you like this blog or find it useful for you, you are welcome to comment on it. You are also welcome to share this blog, so that more people can participate in it. If the images used in the blog infringe your copyright, please contact the author to delete them. Thank you !
If you like this blog or find it useful for you, you are welcome to comment on it. You are also welcome to share this blog, so that more people can participate in it. If the images used in the blog infringe your copyright, please contact the author to delete them. Thank you !