Redis

Redis------>nosql数据库,KV数据库,缓存数据库
redis支持永存数据

1.安装redis

yum -y install gcc

cd /root/lnmp_soft

tar -xf redis-3.0.6.tar.gz

cd redis-3.0.6

make && make install

问题:配置文件,PATH,启动脚本# ./utils/install_server.sh //初始化
Welcome to the redis service installer
This script will help you easily set up a running redis server
Please select the redis port for this instance: [6379] //设置端口号,默认即可
Selecting default: 6379
Please select the redis config file name [/etc/redis/6379.conf] //配置文件
Selected default - /etc/redis/6379.conf
Please select the redis log file name [/var/log/redis_6379.log] //日志文件
Selected default - /var/log/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]
//Redis服务器软件存储路径
Selected config:
Port : 6379
Config file : /etc/redis/6379.conf
Log file : /var/log/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 on 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!
[root@svr5 ~]# ls /etc/init.d/redis_6379 //查看启动脚本

redis服务器
服务器程序
redis-server
客户端程序
redis-cli
主配置文件 /etc/redis/redis_portnumber

上一篇:CentOS和RedHat发行版与Linux内核版本的对应关系


下一篇:MySQL 多实例的安装