1. 程式人生 > >centos7註意事項

centos7註意事項

wal ble ase 開機 stop com centos7 community systemctl

1. GPG 密鑰

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

2.防火墻

systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall開機啟動
firewall-cmd --state #查看默認防火墻狀態(關閉後顯示notrunning,開啟後顯示running)

3.安裝nginx

rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

yum install -y nginx

4.安裝mysql

rpm -ivh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

yum install -y mysql-community-server

centos7註意事項