Last active
June 16, 2020 19:30
-
-
Save halivert/bfd180ed1e747efb9ea07a80744030f6 to your computer and use it in GitHub Desktop.
CentOS 8 Initial setup
This file contains 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
#! /bin/sh | |
sudo dnf install nginx mariadb-server -y | |
sudo dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm | |
sudo dnf module reset php | |
sudo dnf module enable php:remi-7.4 | |
sudo dnf install php-fpm php-mysqli -y | |
sudo systemctl start nginx mariadb | |
sudo systemctl enable nginx mariadb |
This file contains 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
#! /bin/sh | |
export TERM=linux | |
adduser hali | |
passwd hali | |
usermod -aG wheel hali | |
dnf install firewalld vim git -y | |
systemctl start firewalld | |
firewall-cmd --permanent --add-service=http | |
firewall-cmd --permanent --add-service=https | |
firewall-cmd --reload | |
rsync --archive --chown=hali:hali ~/.ssh /home/hali |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment