Skip to content

Instantly share code, notes, and snippets.

@halivert
Last active June 16, 2020 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halivert/bfd180ed1e747efb9ea07a80744030f6 to your computer and use it in GitHub Desktop.
Save halivert/bfd180ed1e747efb9ea07a80744030f6 to your computer and use it in GitHub Desktop.
CentOS 8 Initial setup
#! /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
#! /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