Image -> Container (called Task if it's in a Service) -> Service -> Stack -> Swarm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-----------+ | |
# DATABASES # | |
+-----------+ | |
#list all databases | |
SHOW DATABASES; | |
#use a database | |
USE `db_name`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##redis有設密碼的初始化方式 | |
redisClient = redis.createClient({host:config.redisIP, port:config.redisPort, password:config.redisPwd}); | |
## connect redis | |
var redis = require('redis'), | |
client = redis.createClient(6379, '127.0.0.1',{}); | |