redis-单节点规范安装

root@bd-qa-redis-88:~/redis-3.0.7#make && make install
cd src && make all
make[1]: Entering directory `/root/redis-3.0.7/src'
    CC adlist.o
In file included from adlist.c:34:
zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory
zmalloc.h:55:2: error: #error "Newer version of jemalloc required"
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/root/redis-3.0.7/src'
make: *** [all] Error 2
安装出现报错
root@bd-qa-redis-88:~/redis-3.0.7#make MALLOC=libc
root@bd-qa-redis-88:~/redis-3.0.7#yum install tcl
删除重新安装
ok了
root@bd-qa-redis-88:~/redis-3.0.7#make install
cd src && make install
make[1]: Entering directory `/root/redis-3.0.7/src'

Hint: It's a good idea to run 'make test' ;)

    INSTALL install 
    INSTALL install
    INSTALL install
    INSTALL install
    INSTALL install
make[1]: Leaving directory `/root/redis-3.0.7/src'

启动

root@bd-qa-redis-88:/opt/app/redis/redis-3.0.7#vi redis.conf 


root@bd-qa-redis-88:~#redis-server /opt/app/redis/redis-3.0.7/redis.conf &
[1] 13891
验证
root@bd-qa-redis-88:~#redis-cli
127.0.0.1:6379> info
NOAUTH Authentication required.
root@bd-qa-redis-88:~#redis-cli -a eastmoney
127.0.0.1:6379> info
# Server
redis_version:3.0.7
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:e0064ef312394656
redis_mode:standalone
os:Linux 2.6.32-573.el6.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.4.7
process_id:13891
run_id:b4a50e0dd608936c6c7dc68ebcdf5a7aefa9ff7f
tcp_port:6379
uptime_in_seconds:94
uptime_in_days:0
hz:10
lru_clock:2734828
config_file:/opt/app/redis/redis-3.0.7/redis.conf

# Clients
connected_clients:1
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

# Memory
used_memory:816000
used_memory_human:796.88K
used_memory_rss:2453504
used_memory_peak:816000
used_memory_peak_human:796.88K
used_memory_lua:36864
mem_fragmentation_ratio:3.01
mem_allocator:jemalloc-3.6.0

# Persistence
loading:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1462352526
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok

# Stats
total_connections_received:2
total_commands_processed:1
instantaneous_ops_per_sec:0
total_net_input_bytes:57
total_net_output_bytes:39
instantaneous_input_kbps:0.00
instantaneous_output_kbps:0.00
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
evicted_keys:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0
migrate_cached_sockets:0

# Replication
role:master
connected_slaves:0
master_repl_offset:0
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

# CPU
used_cpu_sys:0.03
used_cpu_user:0.01
used_cpu_sys_children:0.00
used_cpu_user_children:0.00

# Cluster
cluster_enabled:0

# Keyspace

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值