playerdopa.blogg.se

Install redis local
Install redis local









install redis local
  1. INSTALL REDIS LOCAL INSTALL
  2. INSTALL REDIS LOCAL UPDATE
  3. INSTALL REDIS LOCAL PASSWORD

Give executable permissions to the /etc/rc.local file by running the following command: sudo chmod +x /etc/rc.localĮdit the /etc/nf by running the following command: sudo nano /etc/nfĪdd the following line at the end of the file: vm.overcommit_memory=1Ĭreate some required folders by running the following commands (remember to use sudo): sudo mkdir /etc/redis/clusterĬreate and edit the file /etc/redis/cluster/7000/redis_nf by running the following command: sudo nano /etc/redis/cluster/7000/redis_nfĪdd the following content to the redis_nf file, replacing with a long password (longer than 16 characters): port 7000Ĭluster-config-file /etc/redis/cluster/7000/nodes_nfĬreate and edit the file /etc/redis/cluster/7001/redis_nf by running the following command: sudo nano /etc/redis/cluster/7001/redis_nfĪdd the following content to the redis_nf file, replacing with the same password you used before: port 7001Ĭluster-config-file /etc/redis/cluster/7001/nodes_nfĬreate a redis user and a redis group for the Redis Server services and give them the correct permissions by running the following commands: sudo chown redis:redis -R /var/lib/redisĬreate and edit the file /etc/systemd/system/redis_rvice by running the following command: sudo nano /etc/systemd/system/redis_rvice Save the file and exit (if you're using nano, press Ctrl+X followed by Y). # In order to enable or disable this script just change the executionĮcho never > /sys/kernel/mm/transparent_hugepage/enabled # Make sure that the script will "exit 0" on success or any other

install redis local

# This script is executed at the end of each multiuser runlevel. Sudo systemctl disable rviceĬreate and edit the /etc/rc.local file by running the following command: sudo nano /etc/rc.localĪdd the following content to the file: #!/bin/sh -e

INSTALL REDIS LOCAL UPDATE

Run the following commands: sudo apt-get update

INSTALL REDIS LOCAL INSTALL

Install and configure three Redis server machines for the clusterįollow these steps for each server node in the Redis Cluster:Ĭonnect to the server using SSH with an account with super-user privileges.











Install redis local