CentOS7 install MARIADB, jdk1.8, Redis database Example

Source: Internet
Author: User
Tags redis redis server


This is the CENTOS7 from the database mariadb, formerly MySQL, to 7 after the mariadb ...

1. MARIADB installation, no deep configuration ... Too lazy to move. Reference: http://blog.csdn.net/default7/article/details/41973887

A:yum Install mariadb Mariadb-server

B:systemctl start mariadb ==> start mariadb

C:systemctl enable mariadb ==> boot from boot

D:mysql_secure_installation ==> set root password etc related

e:mysql-uroot-p123456-h127.0.0.1 ==> Test Login!

2. JDK installation.

Reference address: 1. Http://www.jb51.net/os/RedHat/73016.html

2. http://blog.csdn.net/czmchen/article/details/41047187

The trilogy; 1. Download, 2. See, 3. Installation & Configuration Environment

RPM installation method, will not go to Baidu ... It's very simple. The tutorials referenced above are also available.

3. Redis

Install the necessary packages:

Yum Install GCC

Download: PS: If there is no wget command, execute: Yum install wget; (this program is generic, if there is no installation of the command, the general method can be installed.) I like this function very much. )

wget http://download.redis.io/releases/redis-3.2.3.tar.gz

Extract:

Tar zxvf redis-3.2.3.tar.gz

Enter directory, allocate memory:

CD redis-3.2.3 # Enter directory

Make MALLOC=LIBC # does not execute, will be an error.

Configure system startup:./utils/install_server.sh

[Root@localhost redis-3.2.3]#./utils/install_server.sh
Welcome to the Redis service installer
This script would help you to easily set up a running Redis server

Please select the Redis port for this instance: [6379] 6379
Please select the redis config file name [/etc/redis/6379.conf]/etc/redis/6379.conf
Please select the Redis log file name [/var/log/redis_6379.log]/logs/redis/redis_6379.log
Please select the data directory for this instance [/var/lib/redis/6379]
Selected Default-/var/lib/redis/6379
Please select the Redis executable path [/usr/local/bin/redis-server]/usr/local/bin/redis-server
Selected Config:
port:6379
Config File:/etc/redis/6379.conf
Log File:/logs/redis/redis_6379.log
Data dir:/var/lib/redis/6379
Executable:/usr/local/bin/redis-server
Cli executable:/USR/LOCAL/BIN/REDIS-CLI
Is this OK? Then Press ENTER to go in or ctrl-c to abort.
copied/tmp/6379.conf =>/etc/init.d/redis_6379
Installing service ...
Successfully added to chkconfig!
Successfully added to Runlevels 345!
Starting Redis server ...
Installation successful!

Redis service View, open, close

1, through the Ps-ef|grep redis command to view the Redis process;

2, open Redis service operation through the/etc/init.d/redis_6379 Start command, can also be passed (service redis_6379 start);

3, close the Redis service operation through the/etc/init.d/redis_6379 Stop command, also can pass (service redis_6379 stop);

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.