Linux systems using-CENTOS7 for Redis

Source: Internet
Author: User
Tags string find

Redis Series (i): CentOS system Installation and environment configuration

1. Why use virtual machines and CentOS

Recently Redis is hot and easy to use and REDISD is not good for window support.

Citation official note: http://www.redis.cn/topics/introduction.html

So want to use Linux system, and Baidu on the domestic more well-known system is the CentOS. Then the virtual machine is used to install the system.

The virtual machine software I installed is VMware Workstation 12 (the VM, which is said to support only CentOS 64-bit systems after 11), and the VM installation process is temporary.

New virtual machine, I am referring to csdn video to learn, before it is free now to members to watch.

Course Name: CentOS7 Linux Getting Started video course, Address: http://edu.csdn.net/course/detail/2265/35372?auto_start=1

Where the capacity to configure a virtual machine is a pit, the amount of disk space allocated to the virtual machine and the actual physical disk space of the host are not equal, in fact, much smaller. CentOS7 is using the everything version of the 64-bit (full installation package 7G more)

After installing the virtual machine to start the tragedy, can not start. Baidu said CPU virtualization does not open vt-x not open, using Leomoon cpu-v.exe check

On the left is whether the CPU supports virtualization, and whether the right is turned on. If you do not turn on, you can enter the BIOS advanced option in the CPU Virtual settings bit to open.

2. Virtual machine related operations and CentOS system initialization configuration

System installation Options I use the Gnode interface.

After entering the CentOS system, we know that Linux also has desktop Gnode Desktop, common system selection command: Init command. (e.g. Init 3 command line, init 5 graphical)

right mouse button [open terminal] to enter command line mode

0: Downtime
1: Single-user form, only root for maintenance
2: Multi-user, cannot use net file system
3: Full Multi-user
5: Graphical
4: Safe Mode
6: Restart

Configure network links, preferably configure fixed IP is best not to use automatic connection. Because the remote connection uses IP when you configure Redis later.

Use the Connection tool SECURECRT to connect to the CentOS system, configure the remote connection account and password, and use this interface for command line operation, you can configure the background color font and so on.

VI Editor ESC exits edit into command mode, I enter edit (the bottom will show insert). Command mode W-write Q-exit/Add string Find string n Find Next, Wq save exit, q! forcibly exit not saved

Directory operation: CD directory name into the directory CD. Previous level directory CP copy, ll and LS display files and folders in directory

Process action: Ps-ef|grep FTP lookup FTP related process kill process ID End Process

Yum installation package: tools such as Redis,git,ftp

Check if Yum installs the system normally by default, and if not, use RPM to install it.

3. Redis Installation

1.GCC Compiler Installation

Verify that GCC is installed and install if not installed. The system is not installed by default (unless you select development mode when installing)

Use the GCC-V command to see if the GCC compiler is installed.

Install command: Yum install gcc continue then enter Y

2. Online Installation

1 ways: Use the wget command to download the execution (preferably with root permission to execute)

wget http://download.redis.io/releases/redis-4.0.1.tar.gz
Tar xzf redis-4.0.1.tar.gz
CD redis-4.0.1
Make

3. Run the test to see if it is successful

./redis-server the current directory is running normally

 
出现这个表示redis安装成功。

Linux systems using-CENTOS7 for Redis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.