Automata Redis
Project description
Automata Redis
both for conventional key-value (including hashset) data.
Packaging
python3 -m build
LXD Container
Create LXD container
cd ~/projects/scripts/bash-scripts/lxc/
./lxc-create-basic-ubuntu-container.sh automata-all 10.104.71.60 /projects/code/automata-projects/automata-deploy
lxc.list
Add these aliases to vi ~/bash/bash-profile-aliases/aliases/bash-projects
# automata all
alias automata-all.lxc.start="lxc.start-container automata-all"
alias automata-all.lxc.stop="lxc.stop-container automata-all"
alias automata-all.lxc.run-in="lxc.run-in.container automata-all"
alias automata-all.project="cd ~/projects/code/automata-projects/automata-deploy"
Remember to run source ~/.bashrc
Container Info
lxc image list images: ubuntu/22.04 amd64
Container Manipulation
lxc stop automata-all
lxc delete automata-all
Accessing Container
automata-all.lxc.run-in
Redis (Container)
Redis Install
sudo apt update
sudo apt install redis
Redis Config
sudo vi /etc/redis/redis.conf
- Change to
bind 10.104.71.60 127.0.0.1
(allow second IP for accessing on host by default) sudo systemctl restart redis-server
Redis Port (outside container)
nc -zv 10.104.71.60 6379
Stop and start the container to ensure redis, has installed correctly.
Backup (Redis)
CONFIG get dir
(inredis-cli
) Tells where the dump file is locatedSAVE
/var/lib/redis
(should bedump.rdb
)sudo systemctl status redis-server
sudo systemctl stop redis-server
sudo cp /var/lib/redis/dump.rdb BACKUP-DIR
Restore (Redis)
sudo systemctl stop redis-server
sudo cp BACKUP-DIR /var/lib/redis/dump.rdb
sudo systemctl start redis-server
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for persuader-technology-automata-redis-0.3.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4993b3e53fecfdc745d38a785464827111d9271d6633013d2605c06a61aaccf6 |
|
MD5 | eb83d6bd403570717b65554ed9eac5bf |
|
BLAKE2b-256 | 30785c0b9786769250831ba4918b82f2b945536aa9c8390f2a777dfe7091817d |
Close
Hashes for persuader_technology_automata_redis-0.3.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c30b68c9b0541adfdc8384694fbdfb1f491f3e4648f4a5ec2f5c3be0f3bcbc04 |
|
MD5 | 563be6db1deb9af0bf5f2d8cfc6228b8 |
|
BLAKE2b-256 | 9a055aff61ce4855cf59f16a1dd75b39806873e12e355f39378e1f0a01d7707c |