增加 redis 持久化

This commit is contained in:
virusdefender 2015-10-10 10:40:01 +08:00
parent b6fc25cd67
commit 2a7b21bf4a

View File

@ -10,7 +10,7 @@ if os.system("docker run --name mysql -v /root/data:/var/lib/mysql -v /root/data
print "Error start mysql" print "Error start mysql"
exit() exit()
if os.system("docker run --name redis -d redis"): if os.system("docker run --name redis -v:/root/data/:/data -d redis redis-server --appendonly yes"):
print "Error start redis" print "Error start redis"
exit() exit()