Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed installation steps for EasyMock

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the "detailed installation steps of EasyMock" related knowledge, in the actual case operation process, many people will encounter such a dilemma, and then let the editor lead you to learn how to deal with these situations! I hope you can read it carefully and be able to achieve something!

Preparation before installation

According to Easy Mock's GitHub documentation, we need to install Node.js (v8.x, not supported v10.x) & MongoDB (> = v3.4) & Redis (> = v4.0) before installing the Easy Mock service. Next, we will introduce the installation steps of these software one by one.

Installation of Node.js

Download software

Go to the Node.js software repository, select the corresponding version, such as 8.8.1, copy the corresponding version link node-v8.8.1-linux-x86.tar.gz, and download it locally.

Wget https://nodejs.org/dist/v8.8.1/node-v8.8.1-linux-x86.tar.gz

Decompression software

Tar-zxf node-v8.8.1-linux-x86.tar.gz

Set the global variables of the software

Move the extracted node to / usr/local/node, and add the following two lines at the end of the / etc/profile file:

Export NODE_HOME=/usr/local/node

Export PATH=$PATH:$NODE_HOME/bin

Refresh global variables

Source / etc/profile

View the version of the software

Node-v

Installation of Redis

Download software

Wget http://download.redis.io/releases/redis-4.0.7.tar.gz

Decompression software

Tar-xzf redis-4.0.7.tar.gz

Go to the directory and compile

Cd redis-4.0.7

Make

Start redis

Src/redis-server

Installation of MongoDB

You can install mongodb according to the official website.

Installation of git

Download software

Wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz

Decompression software

Tar-zxf git-2.9.5.tar.gz

Install the necessary library files

Yum install-y curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker package

Yum install gcc*-y

Entry path

Cd git-2.9.5

Configure the installation path of the software

. / configure-- prefix=/opt/service/git-2.9.5 (the drive to install software)

Install softwar

Make & & make install

Second, install easy mock git clone https://github.com/easy-mock/easy-mock.git cd easy-mock & & npm install [details document] (detailed installation steps of https://github.com/easy-mock/easy-mock/blob/dev/README.zh-CN.md)"EasyMock). Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report