1. 程式人生 > 其它 >Python將Word表格轉Excel

Python將Word表格轉Excel

 

安裝redis

###make 安裝需要gcc和tcl
yum install gcc tcl -y
###下載安裝包
wget http://download.redis.io/releases/redis-6.2.6.tar.gz
###解壓
tar -zxvf redis-6.2.6.tar.gz
###進入目錄
cd redis-6.2.6
###編譯安裝
make && make install
###啟動redis
redis-server

 

 

 主節點配置

###主節點配置
bind 0.0.0.0
requirepass 123456
###從節點設定
vim 
/etc/redis.conf bind 0.0.0.0 slaveof 192.168.200.216 6379 #主節點IP masterauth 123456

測試

###進入主節點
redis-cli
###輸入密碼
auth 123456
###查詢節點資訊
127.0.0.1:6379> info replication
# Replication
role:master
connected_slaves:1
slave0:ip=192.168.200.222,port=6379,state=online,offset=42,lag=0
master_failover_state:no-failover
master_replid:63aa1ad7981046e1d1e9b5330da0f7dc8f7b4337
master_replid2:
0000000000000000000000000000000000000000 master_repl_offset:42 second_repl_offset:-1 repl_backlog_active:1 repl_backlog_size:1048576 repl_backlog_first_byte_offset:1 repl_backlog_histlen:42 ###設定指定 key 的值 127.0.0.1:6379> set name gezi OK 127.0.0.1:6379>
進入從節點 從節點沒有設定密碼可直接進入