• Redis维护


    关闭redis

    [root@192-168-x-x log]# cd /usr/local/redis/bin/
    [root@192-168-x-x bin]# ./redis-cli -h 192.168.3.98 -p 6380 shutdown

    启动redis

    [root@192-168-x-x bin]# pwd
    /usr/local/redis/bin
    [root@192-168-x-x bin]# ./redis-server /etc/redis/6380.conf 

    查看redis相关信息

    [root@192-168-x-x bin]# ./redis-cli -h 192.168.3.98 -p 6380
    192.168.3.98:6380> info
    # Server
    redis_version:3.0.4
    redis_git_sha1:00000000
    redis_git_dirty:0
    redis_build_id:8a6a41e5c3fd124d
    redis_mode:standalone
    os:Linux 2.6.32-431.el6.x86_64 x86_64
    arch_bits:64
    multiplexing_api:epoll
    gcc_version:4.4.7
    process_id:58452
    run_id:50d9391e364892fa65a3d98a9b889a7a8eafe258
    tcp_port:6380
    uptime_in_seconds:341
    uptime_in_days:0
    hz:10
    lru_clock:12735516
    config_file:/etc/redis/6380.conf
    
    # Clients
    connected_clients:2
    client_longest_output_list:0
    client_biggest_input_buf:0
    blocked_clients:0
    
    # Memory
    used_memory:49841792
    used_memory_human:47.53M   #使用的内存大小
    used_memory_rss:51855360
    used_memory_peak:49862656
    used_memory_peak_human:47.55M
    used_memory_lua:36864
    mem_fragmentation_ratio:1.04
    mem_allocator:jemalloc-3.6.0
    
    # Persistence
    loading:0
    rdb_changes_since_last_save:0
    rdb_bgsave_in_progress:0
    rdb_last_save_time:1505907399
    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:79
    total_commands_processed:144
    instantaneous_ops_per_sec:0
    total_net_input_bytes:3580
    total_net_output_bytes:1242616
    instantaneous_input_kbps:0.01
    instantaneous_output_kbps:1.21
    rejected_connections:0
    sync_full:0
    sync_partial_ok:0
    sync_partial_err:0
    expired_keys:0
    evicted_keys:0
    keyspace_hits:42
    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.14
    used_cpu_user:0.23
    used_cpu_sys_children:0.00
    used_cpu_user_children:0.00
    
    # Cluster
    cluster_enabled:0
    
    # Keyspace
    db0:keys=1465,expires=1233,avg_ttl=1231770210
    192.168.3.98:6380> 
  • 相关阅读:
    连续型随机变量
    离散型随机变量
    vue1.0生命周期
    vue2.0生命周期函数
    vue2.0 vue.set()
    vue2.0 vue.extend()的拓展
    vue2.0 自定义指令详解
    vue2.0 v-model指令
    vue2.0排序应该注意的问题
    vue2.0版本指令v-if与v-show的区别
  • 原文地址:https://www.cnblogs.com/xiewenming/p/7563317.html
Copyright © 2020-2023  润新知