dnf update -y
#数据库mariadb
#ssh模块 scp 模块
#还需要nodejs
dnf install -y ruby-devel gcc libxml2 libxml2-devel libxslt-devel libffi-devel libxml2-static redhat-rpm-config rubygem-thor sqlite-devel nodejs mariadb-devel httpd mariadb mariadb-server
dnf install -y rubygem-json
gem install json
gem update
gem update --system
#mysql ssh rails
gem install mysql2 net-ssh rails net-scp rails
###########
systemctl start httpd
systemctl enable httpd
systemctl start mariadb
systemctl enable mariadb
###########
#开启80 443端口
firewall-cmd --add-service={https,http}
firewall-cmd --add-service={https,http} --permanent