docker run -d -v
mongod - the server itself
mongo - mongodb cli (you can run js scripts)
default data directory: /data/db
default DB: test
default port: 27017 (config parameter net:port anf net:bindIp)
docker run -d -v
mongod - the server itself
mongo - mongodb cli (you can run js scripts)
default data directory: /data/db
default DB: test
default port: 27017 (config parameter net:port anf net:bindIp)
Redis stands for REmote DIctionary Server. By default, redis stores all data in memory. It's a key-structure database. redis-server is the actual datastore. redis-cli is the command line interface that performs any redis command. By default, redis binds to port 6379.
Starting the redis server
redis-server
While you can build a complete system using Redis only, I think most people will find that it supplements their more generic data solution - whether that be a traditional relational database, a document-oriented system, or something else. It’s the kind of solution you use to implement specific features.
| CREATE TABLE SPRING_SESSION ( | |
| SESSION_ID CHAR(36) NOT NULL, | |
| CREATION_TIME BIGINT NOT NULL, | |
| LAST_ACCESS_TIME BIGINT NOT NULL, | |
| MAX_INACTIVE_INTERVAL INT NOT NULL, | |
| PRINCIPAL_NAME VARCHAR(100), | |
| CONSTRAINT SPRING_SESSION_PK PRIMARY KEY (SESSION_ID) | |
| ); | |
| CREATE INDEX SPRING_SESSION_IX1 ON SPRING_SESSION (LAST_ACCESS_TIME); |
В данной заметке рассматривается работа JWT с симметичным алгоритмом шифрования (HS256/HS384/HS512)
Аутентификация(authentication, от греч. αὐθεντικός [authentikos] – реальный, подлинный; от αὐθέντης [authentes] – автор) - это процесс проверки учётных данных пользователя (логин/пароль). Проверка подлинности пользователя путём сравнения введённого им логина/пароля с логином/паролем, сохранённым в базе данных пользователей.
Авторизация(authorization — разрешение, уполномочивание) - это проверка прав пользователя на доступ к определенным ресурсам.