1. 程式人生 > >redis安裝報錯No such file or directory解決方案

redis安裝報錯No such file or directory解決方案

redis安裝報錯:

c:\Redis>redis-server
[10648] 11 May 16:46:30.046 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
[10648] 11 May 16:46:30.053 # Creating Server TCP listening socket *:6379: bind: No such file or directory

之所以會出現這個問題,是因為redis伺服器已經啟動


執行以下命令:

1. redis-cli.exe     #進入redis的客戶端,如果沒有配置環境變數,需要進入到redis的安裝目錄下執行
2. shutdown                               #關閉redis原來的伺服器
3. exit                                   #退出客戶端
4. redis-server.exe redis.windows.conf    #重啟redis的伺服器

以上的命令如果沒有配置redis的環境變數,都需要進入到redis的安裝目錄下執行的。

命令執行以後,在redis-server執行後都能看到下面的介面:

c:\Redis>redis-cli.exe
127.0.0.1:6379> shutdown
not connected> exit

c:\Redis>redis-server.exe redis.windows.conf
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 3.2.100 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'
` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 10864 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' [10864] 11 May 16:47:44.219 # Server started, Redis version 3.2.100 [10864] 11 May 16:47:44.221 * DB loaded from disk: 0.000 seconds [10864] 11 May 16:47:44.221 * The server is now ready to accept connections on port 6379

相關推薦

redis安裝No such file or directory解決方案

redis安裝報錯: c:\Redis>redis-server [10648] 11 May 16:46:30.046 # Warning: no config file specified,

mac系統-PHP連線mysql資料 No such file or directory解決方案

結合網路上提供的解決方案提供在mac下的詳細解決方案 1.找到/private/etc/php.ini檔案,並開啟並檢視檔案 ..... pdo_mysql.default_socket= ..... mysqli.default_socket = ..... 你會看到

Vue npm Install安裝 no such file or directory Failed at the
Linux 安裝pyspider No such file or directory: 'curl-config”

   During handling of the above exception, another exception occurred:          Traceback (most recent call last)

Linux 安裝pyspider No such file or directory: 'curl-config”

 During handling of the above exception, another exception occurred:          Traceback (most recent call last):       File "<string&

菜鳥調——POI匯出ExcelNo such file or directory

場景重現 Apache POI Linux Tomcat 如上所示,當時在linux+tomcat的環境下,使用apache的poi匯出excel的時候就會報“No such file or directory”的錯誤。 錯誤資訊 java.la

windows10使用git fatal:open /dev/null or dup failed: No such file or directory解決方案或git bash here閃退

        安裝好git之後,在命令列輸入git --version報錯         百度搜了很久全涼了,試

MacBook下-bash: cd: /Applications/Android: No such file or directory解決方案

前言        當我想在Android studio的Terminal中敲相關gradlew命令時,一直報[bash: gradlew: command not found]錯誤,很是心塞,故翻閱一些相關資料解決此問題,所幸是成功了,在此做一下筆記

open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory 解決方案

方法一.  yum安裝      yum install *rhsm* 方法二      執行命令:        ①   wget http:

fatal error:xxx.h no such file or directory 解決方案

編譯程式的時候遇到了找不到依賴包的問題,找了很多解決方案都沒有解決,最後摸索了很久才解決,把過程記錄下來方便以後用。 碰到這種問題,首先是要找有沒有可安裝的依賴包,命令為: apt-cache search xxx | grep dev 用dev過濾是因為有時候相關的安裝包

Warning: mysql_connect(): No such file or directory 解決方案總結(作業系統: Mac)

說明: 1. 執行環境: Mac OS X 10.11.4 (Mac 已經自帶 Apache, PHP) 2. 相關資料夾: /etc/apache2/     ##Apache 配置資料夾 /Library/WebServer/Documents/    ##Ap

Redis安裝error:jemalloc/jemalloc.h:No such file or directory解決方法

安裝Redis 在安裝Redis之前,需要安裝Redis的依賴程式tcl,如果不安裝tcl在Redis執行make test的時候就會報錯的哦。 $ yum install -y tcl $ tar xvf 3.2.0.tar.gz -C /usr/loc

nginx 啟動“var/run/nginx/nginx.pid" no such file or directory解決方法

        今天剛搭建的nginx伺服器啟動時,報錯“var/run/nginx/nginx.pid" no such file or directory,按照他的意思我在var/run/新建了一個資料夾nginx,重新啟動,啟動成功。 但是當我虛擬機

gcc編譯 checking whether the C compiler works... no 中的 error trying to exec 'cc1': execvp: No such file or directory解決辦法

1 首先檢查報錯原因是execvp: No such file or directory 因此要將/etc/profile的export PATH指向gcc的lib路徑中的cc1檔案 例如我的cc1檔案在/usr/lib64/gcc/x86_64-suse-linux/4.8/ 則輸出 export P

nginx 啟動“var/run/nginx/nginx.pid" no such file or directory解決方法

        今天剛搭建的nginx伺服器啟動時,報錯“var/run/nginx/nginx.pid" no such file or directory,按照他的意思我在var/run/新建了一個資料夾nginx,重新啟動,啟動成功。 但是當我虛擬機器重啟後依然報錯“

登入伺服器 setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory 解決

登入伺服器提示: -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory 使用cat 檢視檔案的時候沒用問題 使用vim 開啟編輯的時候中文都是亂碼

DataError: [-] Error: 2, No such file or directory解決你用Django寫項目使用Docker安裝FastDFS,測試的時候遇到這個問題

安裝 tor 執行 項目 數據 docker serve error -- DataError: [-] Error: 2, No such file or directory我已經解決了 是因為我安裝storage的時候docker run -dti --network=

jenkins啟動No such file or directory

新的jenkins伺服器,自己配的maven,地址都是對的,就是在下載依賴的時候,報沒有資料夾,如下 Non-resolvable parent POM for share.project:share-project:1.0.0-SNAPSHOT: Could not transfe

psutil安裝錯誤"Python.h: No such file or directory"解決

下載psutil原始碼包:wget https://pypi.python.org/packages/source/p/psutil/psutil-2.0.0.tar.gz 然後解壓安裝:sudo python setup.py install,出現如下錯誤: 需要安裝依

ImportError: libmysqlclient.so.20: cannot open shared object file: No such file or directory 解決辦法

object init ror 文件 module libmysql 找到 str 軟連接 >>> import MySQLdbTraceback (most recent call last): File "<stdin>", line