无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(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)遵守國家法律
怀集县| 石嘴山市| 阆中市| 马鞍山市| 丰县| 河曲县| 林西县| 哈密市| 怀宁县| 肥乡县| 贡觉县| 永州市| 友谊县| 陇南市| 枣阳市| 广平县| 铜山县| 郯城县| 漠河县| 定边县| 招远市| 岢岚县| 平江县| 怀柔区| 临澧县| 石首市| 江城| 淳安县| 洪雅县| 固阳县| 阜城县| 临湘市| 紫阳县| 穆棱市| 竹山县| 邹城市| 巴青县| 成安县| 徐州市| 旌德县| 县级市|