Windows Server 2008安裝Memcached筆記



1. Memcached版本:Memcached Win32 1.2.6,下載地址:http://code.jellycan.com/memcached/
2. 以管理員身份進入命令行,運行安裝命令:memcached -d install -l 127.0.0.1 -m 1024 -c 2048
參數說明:
-d install 安裝爲Windows服務
-l 綁定的IP
-m 使用的最大內存(MB),默認64M
-c 最大併發連接數,默認1024
3. 出現錯誤:This application has failed to start because MSVCR71.dll was not found. Re-installing the application may fix this problem.
解決方法:繼續到http://code.jellycan.com/memcached/下載memcached 1.2.5,解壓後將其中的msvcr71.dll文件複製到剛纔的Memcached Win32 1.2.6目錄中。
4. 繼續運行安裝命令,安裝成功,但發現後面的參數(-l 127.0.0.1 -m 1024 -c 2048)並沒有加到服務的運行命令中。解決方法:打開註冊表,找到
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\memcached Server, 在其中有一個ImagePath項,值爲"d:\memcached\memcached.exe" -d runservice,在後面加上-l 127.0.0.1 -m 1024 -c 2048。
5. 啓動服務,安裝完成。


http://www.cnblogs.com/dudu/archive/2009/07/19/1526669.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章