1.安裝redis資料庫
2.檢查redis伺服器系統程序
cdl@cdl-inspiron-5421:~$ ps -aux | grep redis
redis 13615 0.1 0.0 47204 3116 ? ssl 20:36 0:00 /usr/bin/redis-server 127.0.0.1:6379
cdl 14275 0.0 0.0 21312 1020 pts/5 s+ 20:45 0:00 grep --color=auto redis
3.檢查redis伺服器占用埠cdl@cdl-inspiron-5421:~$ netstat -nlt | grep 6379
tcp 0 0 127.0.0.1:6379 0.0.0.0:* listen
4.通過啟動命令檢查redis伺服器狀態cdl@cdl-inspiron-5421:~$ sudo /etc/init.d/redis-server status
● redis-server.service - advanced key-value store
loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
active: active (running) since 二 2020-05-19 20:36:26 cst; 14min ago
docs:
man:redis-server(1)
process: 13616 execstartpost=/bin/run-parts --verbose /etc/redis/redis-server.post-up.d (code=exited, status=0/success)
process: 13614 execstart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/success)
process: 13610 execstartpre=/bin/run-parts --verbose /etc/redis/redis-server.pre-up.d (code=exited, status=0/success)
main pid: 13615 (redis-server)
cgroup: /system.slice/redis-server.service
└─13615 /usr/bin/redis-server 127.0.0.1:6379
5月 19 20:36:26 cdl-inspiron-5421 systemd[1]: starting advanced key-value store...
5月 19 20:36:26 cdl-inspiron-5421 run-parts[13610]: run-parts: executing /etc/redis/redis-server.pre-up.d/00_example
5月 19 20:36:26 cdl-inspiron-5421 run-parts[13616]: run-parts: executing /etc/redis/redis-server.post-up.d/00_example
5月 19 20:36:26 cdl-inspiron-5421 systemd[1]: started advanced key-value store.
5.通過命令列客戶端訪問redis
6.基本的redis客戶端命令操作
7.修改redis的配置
8.解除安裝redis資料庫
sudo apt-get purge --auto-remove redis-server
ubuntu16 04下安裝boost環境
最簡單的方法 進入linux系統後,按ctrl alt t進入終端,然後輸入 sudo apt cache search boost 你將看到很多檔案資訊,找到乙個檔案叫 libboost dev,直接安裝此檔案即可 sudo apt get install libboost dev 這樣就安裝成功...
ubuntu16 04下安裝scrapy框架
一.按照官方文件的說明,安裝scrapy 需要以下程式或者庫 1 python 2.7 2 lxml。most linux distributions ships prepackaged versions of lxml.otherwise refer to 3 openssl。this comes...
ubuntu16 04下安裝mysql詳細步驟
1 如果要搭建伺服器先去購買乙個雲主機,比如阿里雲 京東雲 新網等等都有賣。這裡推薦使用京東雲伺服器,因為最近在搞活動。一元可體驗兩個月 可能現在活動已經過了,但在京東雲裡有免費領乙個月的,學生機也有88元一年 第二步 在伺服器裡安裝mysql 先弄完郭神裡的步驟再看這裡 通過郭神那裡的簡單介紹,你...