Created
January 20, 2023 17:34
-
-
Save mattantonelli/e622a523dcf04b77bc2a07b3cc485263 to your computer and use it in GitHub Desktop.
Various setup stuff for a fresh CentOS VM
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
sudo dd if=/dev/zero of=/swapfile count=2048 bs=1MiB | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo vi /etc/fstab | |
/swapfile swap swap defaults 0 0 | |
sudo yum group install -y "Development Tools" | |
sudo yum install -y gcc-6 patch bzip2 openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel wget libcurl-devel tmux vim | |
sudo yum install -y mariadb-server mariadb-devel | |
sudo mysql_install_db | |
sudo chown -R mysql:mysql /var/lib/mysql/ | |
sudo chown -R mysql:mysql /var/log/mariadb/ | |
sudo systemctl start mariadb | |
sudo systemctl enable mariadb | |
sudo mysql_secure_installation | |
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
sudo yum install epel-release epel-next-release | |
sudo yum install freetds | |
sudo yum install freetds-devel | |
sudo yum install redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment