windows上memecache添加多个端口命令
sc create "Memcached Server1" start= auto binPath= "D:\01_Soft\memcached\memcached.exe -d runservice -m 32 -p 11211 -l 127.0.0.1" DisplayName= "Memcached Server1"
sc create "Memcached Server2" start= auto binPath= "D:\01_Soft\memcached\memcached.exe -d runservice -m 32 -p 11210 -l 127.0.0.1" DisplayName= "Memcached Server2"
sc create "Memcached Server3" start= auto binPath= "D:\01_Soft\memcached\memcached.exe -d runservice -m 32 -p 11212 -l 127.0.0.1" DisplayName= "Memcached Server3"
sc create "Memcached Server4" start= auto binPath= "D:\01_Soft\memcached\memcached.exe -d runservice -m 32 -p 11213 -l 127.0.0.1" DisplayName= "Memcached Server4"
sc create "Memcached Server5" start= auto binPath= "D:\01_Soft\memcached\memcached.exe -d runservice -m 32 -p 11214 -l 127.0.0.1" DisplayName= "Memcached Server5"
sc create "Memcached Server8" start= auto binPath= "D:\01_Soft\memcached\memcached.exe -d runservice -m 10 -p 11218 -l 127.0.0.1" DisplayName= "Memcached Server8"
sc create "Memcached Server9" start= auto binPath= "D:\01_Soft\memcached\memcached.exe -d runservice -m 10 -p 11219 -l 127.0.0.1" DisplayName= "Memcached Server9"
sc create "Memcached Server10" start= auto binPath= "D:\01_Soft\memcached\memcached.exe -d runservice -m 10 -p 11220 -l 127.0.0.1" DisplayName= "Memcached Server10"
sc create "Memcached Server11" start= auto binPath= "D:\01_Soft\memcached\memcached.exe -d runservice -m 10 -p 11221 -l 127.0.0.1" DisplayName= "Memcached Server11"
sc create "Memcached Server26" start= auto binPath= "D:\01_Soft\memcached\memcached.exe -d runservice -m 10 -p 11226 -l 127.0.0.1" DisplayName= "Memcached Server26"
sc create "Memcached Server28" start= auto binPath= "D:\01_Soft\memcached\memcached.exe -d runservice -m 10 -p 11228 -l 127.0.0.1" DisplayName= "Memcached Server28"
sc start "Memcached Server1" //启动
sc stop "Memcached Server1" //停止
sc delete "Memcached Server1" //卸载该服务