Last active
December 12, 2018 09:16
-
-
Save atefth/958dd2d5fe83fa0e182bd40c3a66463a to your computer and use it in GitHub Desktop.
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
# Development Tools | |
sudo yum -y update | |
sudo yum groupinstall -y 'development tools' | |
sudo yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel | |
# Rbenv | |
cd | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
exec $SHELL | |
# RubyBuild | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile | |
exec $SHELL | |
# Mysql | |
sudo yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm | |
yum install mysql-community-server | |
sudo systemctl enable mysqld.service | |
sudo service mysqld start | |
# Get random password | |
grep 'A temporary password is generated for root@localhost' /var/log/mysqld.log |tail -1 | |
# secure setup | |
/usr/bin/mysql_secure_installation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment