0. 필요 패키지 다운로드
[root@localhost ~]# yum install gcc gcc-c++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel |
1. 설치 파일 다운로드
Rudy 다운로드 (http://rpms.southbridge.ru/rhel7/ruby-2.2.0/x86_64/ruby-2.2.3-1.el7.centos.x86_64.rpm)
[root@localhost ~]# wget http://rpms.southbridge.ru/rhel7/ruby-2.2.0/x86_64/ruby-2.2.3-1.el7.centos.x86_64.rpm --2017-12-20 20:03:15-- http://rpms.southbridge.ru/rhel7/ruby-2.2.0/x86_64/ruby-2.2.3-1.el7.centos.x86_64.rpm Resolving rpms.southbridge.ru (rpms.southbridge.ru)... 144.76.83.152 Connecting to rpms.southbridge.ru (rpms.southbridge.ru)|144.76.83.152|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 10471092 (10.0M) [application/x-redhat-package-manager] Saving to: ‘ruby-2.2.3-1.el7.centos.x86_64.rpm’
100%[===================================================================================================>] 10,471,092 1.97MB/s in 7.5s
2017-12-20 20:03:24 (1.32 MB/s) - ‘ruby-2.2.3-1.el7.centos.x86_64.rpm’ saved [10471092/10471092]
[root@localhost ~]# ls anaconda-ks.cfg appendonly.aof dump.rdb redis-stable redis-stable.tar.gz ruby-2.2.3-1.el7.centos.x86_64.rpm |
2. redis-stat 설치
[root@localhost ~]# yum install ruby-2.2.3-1.el7.centos.x86_64.rpm -y
[root@localhost ~]# gem install redis-stat ...... 24 gems installed |
3. 모니터링 (Command line)
[root@localhost ~]# redis-stat localhost:6379 ┌─────────────┬─────────┐ │ │ localhost:6379 │ ├─────────────┼─────────┤ │ redis_version │ 4.0.6 │ │ redis_mode │ standalone │ │ process_id │ 29703 │ │ uptime_in_seconds │ 71607 │ │ uptime_in_days │ 0 │ │ role │ master │ │ connected_slaves │ 0 │ │ aof_enabled │ 1 │ │ rdb_bgsave_in_progress │ 0 │ │ rdb_last_save_time │ 1513816203 │ └─────────────┴─────────┘
┌──────────────────────────────────────────────┐ time us sy cl bcl mem rss keys cmd/s exp/s evt/s hit%/s hit/s mis/s aofcs ├──────────────────────────────────────────────┤ 20:12:22 - - 1 0 809kB 8.11MB 12 - - - - - - 1.64kB 20:12:24 0 0 1 0 809kB 8.11MB 12 0.50 0 0 - 0 0 1.64kB 20:12:26 0 1 1 0 809kB 8.11MB 12 0.50 0 0 - 0 0 1.64kB 20:12:28 0 0 1 0 809kB 8.11MB 12 0.50 0 0 - 0 0 1.64kB 20:12:30 0 0 1 0 809kB 8.11MB 12 0.50 0 0 - 0 0 1.64kB 20:12:32 0 0 1 0 809kB 8.11MB 12 0.50 0 0 - 0 0 1.64kB 20:12:34 0 0 1 0 809kB 8.11MB 12 0.50 0 0 - 0 0 1.64kB 20:12:36 0 0 1 0 809kB 8.11MB 12 0.50 0 0 - 0 0 1.64kB └──────────────────────────────────────────────┘ |
4. 모니터링 (Web)
[root@localhost redis-stable]# redis-stat --server=8080 --verbose 1 --daemon
[root@localhost redis-stable]# ps -ef | grep redis-stat root 2302 1 0 20:29 ? 00:00:08 redis-stat-daemon root 3290 2198 0 20:44 pts/0 00:00:00 grep --color=auto redis-stat
[root@localhost redis-stable]# netstat -na | grep LISTEN tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN tcp6 0 0 :::22 :::* LISTEN tcp6 0 0 ::1:25 :::* LISTEN
|