-
mac에 redis 설치하기Mac 2021. 1. 22. 21:27
redis는 라라벨에서 cache 등의 목적으로 사용되는 noSQL DB이며
설치는 brew를 이용해서 합니다.
oneboard@oneboarcBookPro ~ % brew install redis Updating Homebrew... ==> Auto-updated Homebrew! Updated 4 taps (shivammathur/php, homebrew/core, homebrew/cask and homebrew/services). ==> New Formulae luv ==> Updated Formulae Updated 129 formulae. ==> New Casks aegisub spotter kieler the-unofficial-homestuck-collection ==> Updated Casks Updated 150 casks. ==> Deleted Casks evom irip ringtones ripit tagalicious teamspeak-client Warning: Treating redis as a formula. For the cask, use homebrew/cask/redis ==> Downloading https://homebrew.bintray.com/bottles/redis-6.0.10.big_sur.bottle.tar.gz ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/ecd20074b450f501345d7533abc51e8f47f28f27a5c8b7c698fe4d80aeb8126c?response-content ######################################################################## 100.0% ==> Pouring redis-6.0.10.big_sur.bottle.tar.gz ==> Caveats To have launchd start redis now and restart at login: brew services start redis Or, if you don't want/need a background service you can just run: redis-server /usr/local/etc/redis.conf ==> Summary 🍺 /usr/local/Cellar/redis/6.0.10: 13 files, 3.9MB
개발용 장비이므로, redis를 항상 돌도록 설정을 해줍니다.
oneboard@oneboarcBookPro ~ % brew services start redis ==> Successfully started `redis` (label: homebrew.mxcl.redis)
redis-cli를 이용해서, 서버에 Ping
oneboard@oneboarcBookPro ~ % brew services start redis ==> Successfully started `redis` (label: homebrew.mxcl.redis)
redis-cli info 명령으로 서버의 상태를 볼 수 있습니다.
oneboard@oneboarcBookPro ~ % redis-cli info # Server redis_version:6.0.10 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:5e44a839a3d17a99 redis_mode:standalone os:Darwin 20.2.0 x86_64 arch_bits:64 multiplexing_api:kqueue atomicvar_api:atomic-builtin gcc_version:4.2.1 process_id:3358 run_id:0be9bd82a910836dfad2a01be5cda4308b8ec1f1 tcp_port:6379 uptime_in_seconds:434 uptime_in_days:0 hz:10 configured_hz:10 lru_clock:706055 executable:/usr/local/opt/redis/bin/redis-server config_file:/usr/local/etc/redis.conf io_threads_active:0 # Clients connected_clients:1 client_recent_max_input_buffer:16 client_recent_max_output_buffer:0 blocked_clients:0 tracking_clients:0 clients_in_timeout_table:0 # Memory used_memory:1144080 used_memory_human:1.09M used_memory_rss:3653632 used_memory_rss_human:3.48M used_memory_peak:1201200 used_memory_peak_human:1.15M used_memory_peak_perc:95.24% used_memory_overhead:1079552 used_memory_startup:1079552 used_memory_dataset:64528 used_memory_dataset_perc:100.00% allocator_allocated:1079568 allocator_active:3615744 allocator_resident:3615744 total_system_memory:8589934592 total_system_memory_human:8.00G used_memory_lua:37888 used_memory_lua_human:37.00K used_memory_scripts:0 used_memory_scripts_human:0B number_of_cached_scripts:0 maxmemory:0 maxmemory_human:0B maxmemory_policy:noeviction allocator_frag_ratio:3.35 allocator_frag_bytes:2536176 allocator_rss_ratio:1.00 allocator_rss_bytes:0 rss_overhead_ratio:1.01 rss_overhead_bytes:37888 mem_fragmentation_ratio:3.38 mem_fragmentation_bytes:2574064 mem_not_counted_for_evict:0 mem_replication_backlog:0 mem_clients_slaves:0 mem_clients_normal:0 mem_aof_buffer:0 mem_allocator:libc active_defrag_running:0 lazyfree_pending_objects:0 # Persistence loading:0 rdb_changes_since_last_save:0 rdb_bgsave_in_progress:0 rdb_last_save_time:1611318357 rdb_last_bgsave_status:ok rdb_last_bgsave_time_sec:-1 rdb_current_bgsave_time_sec:-1 rdb_last_cow_size:0 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 aof_last_cow_size:0 module_fork_in_progress:0 module_fork_last_cow_size:0 # Stats total_connections_received:3 total_commands_processed:2 instantaneous_ops_per_sec:0 total_net_input_bytes:61 total_net_output_bytes:18695 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 expired_stale_perc:0.00 expired_time_cap_reached_count:0 expire_cycle_cpu_milliseconds:9 evicted_keys:0 keyspace_hits:0 keyspace_misses:0 pubsub_channels:0 pubsub_patterns:0 latest_fork_usec:0 migrate_cached_sockets:0 slave_expires_tracked_keys:0 active_defrag_hits:0 active_defrag_misses:0 active_defrag_key_hits:0 active_defrag_key_misses:0 tracking_total_keys:0 tracking_total_items:0 tracking_total_prefixes:0 unexpected_error_replies:0 total_reads_processed:6 total_writes_processed:3 io_threaded_reads_processed:0 io_threaded_writes_processed:0 # Replication role:master connected_slaves:0 master_replid:537f894ff7a330a111cea51da23bb524ad505345 master_replid2:0000000000000000000000000000000000000000 master_repl_offset:0 second_repl_offset:-1 repl_backlog_active:0 repl_backlog_size:1048576 repl_backlog_first_byte_offset:0 repl_backlog_histlen:0 # CPU used_cpu_sys:0.169923 used_cpu_user:0.108954 used_cpu_sys_children:0.000000 used_cpu_user_children:0.000000 # Modules # Cluster cluster_enabled:0 # Keyspace
반응형'Mac' 카테고리의 다른 글
iTerm2 설치하기 (0) 2021.01.23 윈도 사용자의 시련? Documents 디렉토리 위로는 이동이 안된다... (0) 2021.01.23 MariaDB 10.5 초기 설치 후에 root 비밀번호 설정하기 (3) 2021.01.21 mac에서 사용가능한 GUI DB 관리 도구 (0) 2021.01.21 MacBook 한영전환 (0) 2021.01.20