瀏覽代碼

centos redis installed

pull/21/head
samuel 10 月之前
父節點
當前提交
23a03ddc5f
共有 1 個檔案被更改,包括 13 行新增3 行删除
  1. 13
    3
      linux/centos/elxr/setup.sh

+ 13
- 3
linux/centos/elxr/setup.sh 查看文件

# sudo passwd {{newuser}} # sudo passwd {{newuser}}


# Add the User to the sudoers File # Add the User to the sudoers File
# sudo visudo
# In the file opened add to the bottom and saveit
# {{newuser}} ALL=(ALL) ALL
# usermod -aG wheel {{newuser}} # usermod -aG wheel {{newuser}}
# Switch to the new user # Switch to the new user
# su - {{newuser}} # su - {{newuser}}
# comment out mirrorlist line, mirrorlist=http:/{{}} # comment out mirrorlist line, mirrorlist=http:/{{}}
# Uncomment the baseurl line and change http://mirror.centos.org{{}} to http://vault.centos.org{{}} # Uncomment the baseurl line and change http://mirror.centos.org{{}} to http://vault.centos.org{{}}


# FOR REDIS
# sudo dnf install redis
# sudo vi /etc/redis.conf
# Comment bind 127.0.0.1 line with # and save the file
# requirepass your_secure_password # set the password to connect

# sudo systemctl start redis
# sudo systemctl enable redis
# sudo systemctl status redis
# TO test redis run the below
# redis-cli and then type ping, we should get back pong as response
# sudo firewall-cmd --zone=public --add-port=6379/tcp --permanent
# sudo firewall-cmd --reload


# Download steps # Download steps
# wget http://git.bbh.org.in/chess/elxr/raw/branch/master/linux/centos/elxr/setup.sh # wget http://git.bbh.org.in/chess/elxr/raw/branch/master/linux/centos/elxr/setup.sh

Loading…
取消
儲存