五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

Centos7 安裝 Redis

2020-12-31 22:05 作者:祝三枝  | 我要投稿

1、查看gcc版本:? gcc -v??

? ? ?若gcc版本低于5, 升級(jí) gcc


2、redis 官網(wǎng) https://download.redis.io/releases/ 找最新release安裝包:?

? ?下載: wget https://download.redis.io/releases/redis-6.0.9.tar.gz

? ?解壓: tar zxvf redis-6.0.9.tar.gz

? ?

3、編譯安裝:

? ? ?cd redis-6.0.9;

? ? ?創(chuàng)建安裝目錄: mkdir /etc/redis?

? ? ?make PREFIX=/etc/redis install


4、復(fù)制配置文件?

? ? ?cp redis.conf /etc/redis/6379.conf;

? ? ?cp utils/redis_init_script /etc/init.d/redis


5、修改配置文件 vim /etc/redis/6379.conf

#bind 127.0.0.1 # 注釋掉,外網(wǎng)可以訪問

protected-mode no # yes改成no,允許外網(wǎng)訪問

daemonize yes # no改成yes,后臺(tái)運(yùn)行


設(shè)置密碼(可選):

#requirepass foobared 改成 requirepass password(密碼)?


6、 開機(jī)啟動(dòng)等

? ? systemctl enable redis.service #設(shè)置開機(jī)自啟動(dòng)

? ? systemctl disable redis.service #停止開機(jī)自啟動(dòng)

? ? systemctl start redis.service #啟動(dòng)redis服務(wù)

? ? systemctl restart redis.service #重新啟動(dòng)服務(wù)

? ? systemctl status redis.service #查看服務(wù)當(dāng)前狀態(tài)


7、 Redis 遠(yuǎn)程鏈接客戶端: AnotherRedisDesktopManager


Centos7 安裝 Redis的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國家法律
延边| 上栗县| 凉山| 灵川县| 苍梧县| 工布江达县| 通江县| 团风县| 齐河县| 诸暨市| 门头沟区| 旺苍县| 汝南县| 邳州市| 吉木乃县| 白沙| 呼玛县| 达日县| 宁远县| 昭苏县| 富民县| 兴国县| 横山县| 唐河县| 河曲县| 临高县| 阿尔山市| 东山县| 秦皇岛市| 津市市| 凤凰县| 唐海县| 商河县| 平南县| 科技| 南城县| 九龙县| 房山区| 银川市| 吕梁市| 永康市|