亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

redis部署

發布時間:2020-04-01 21:30:08 來源:網絡 閱讀:325 作者:limingyu0312 欄目:網絡安全


########################下載及安裝#################################

cd /usr/local/src

wget http://download.redis.io/releases/redis-3.0.7.tar.gz

tar zxf redis-3.0.7.tar.gz

cd redis-3.0.7

make PREFIX=/usr/local/redis MALLOC=libc install


#####################拷貝啟動腳本#################################

cd utils/

ls

cp redis_init_script /etc/init.d/redis

vim /etc/init.d/redis


EXEC=/usr/local/redis/bin/redis-server

CLIEXEC=/usr/local/redis/bin/redis-cli


保存退出

chmod 755 /etc/init.d/redis


#################配置文件#######################################

mkdir /etc/redis

cp redis.conf /etc/redis/

cd /etc/redis

ll

cp redis.conf 6379.conf


vim 6379.conf  //修改配置文件,以下都是我過濾出來的,可以根據你自己要求更改


daemonize yes

pidfile /var/run/redis_6379.pid

port 6379

tcp-backlog 511

bind 192.168.141.188

timeout 0

tcp-keepalive 0

loglevel notice

logfile "/var/log/redis_6379.log"

databases 16

save 900 1

save 300 10

save 60 10000

stop-writes-on-bgsave-error yes

rdbcompression yes

rdbchecksum yes

dbfilename dump_6379.rdb

dir /var/lib/redis_6379

slave-serve-stale-data yes

slave-read-only yes

repl-diskless-sync no

repl-diskless-sync-delay 5

repl-disable-tcp-nodelay no

slave-priority 100

requirepass candy  //密碼生產必備

appendonly yes

appendfilename "appendonly_6379.aof"

appendfsync everysec

no-appendfsync-on-rewrite no

auto-aof-rewrite-percentage 100

auto-aof-rewrite-min-size 64mb

aof-load-truncated yes

lua-time-limit 5000

slowlog-log-slower-than 10000

slowlog-max-len 128

latency-monitor-threshold 0

notify-keyspace-events ""

hash-max-ziplist-entries 512

hash-max-ziplist-value 64

list-max-ziplist-entries 512

list-max-ziplist-value 64

set-max-intset-entries 512

zset-max-ziplist-entries 128

zset-max-ziplist-value 64

hll-sparse-max-bytes 3000

activerehashing yes

client-output-buffer-limit normal 0 0 0

client-output-buffer-limit slave 256mb 64mb 60

client-output-buffer-limit pubsub 32mb 8mb 60

hz 10

aof-rewrite-incremental-fsync yes


echo 512 > /proc/sys/net/core/somaxconn

mkdir -p /var/lib/redis_6379


#######################啟動#############################

/etc/init.d/redis start

less /var/log/redis_6379.log


sysctl vm.overcommit_memory=1 

echo never > /sys/kernel/mm/transparent_hugepage/enabled


######################更改啟動腳本#####################

vim /etc/init.d/redis


stop)

        if [ ! -f $PIDFILE ]

        then

                echo "$PIDFILE does not exist, process is not running"

        else

                PID=$(cat $PIDFILE)

                echo "Stopping ..."

                $CLIEXEC -h 192.168.141.188 -p $REDISPORT -a candy shutdown

                while [ -x /proc/${PID} ]

保存退出

/etc/init.d/redis stop

/etc/init.d/redis start


tail -f /var/log/redis_6379.log


2598:M 05 Apr 13:54:47.382 # Server started, Redis version 3.0.7

2598:M 05 Apr 13:54:47.382 * DB loaded from disk: 0.000 seconds

2598:M 05 Apr 13:54:47.382 * The server is now ready to accept connections on port 6379



至此,正常啟動


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

宜春市| 鲁甸县| 金塔县| 洪湖市| 凤冈县| 台北县| 新宁县| 定西市| 卢湾区| 页游| 宜州市| 宕昌县| 北票市| 南宁市| 工布江达县| 聊城市| 永顺县| 宜君县| 岑巩县| 策勒县| 噶尔县| 临高县| 浪卡子县| 祁连县| 腾冲县| 元谋县| 武汉市| 新沂市| 综艺| 渑池县| 绥芬河市| 都匀市| 侯马市| 沐川县| 巴彦淖尔市| 江都市| 略阳县| 固阳县| 青浦区| 扶绥县| 门源|