服务器租用:centos 7下nginx安装脚本 |
#!/bin/bash cat>/etc/yum.repos.d/nginx.repo<<EOF [nginx] name=nginxrepo baseurl=清除yum缓存 #yumcleanall>/dev/null #yummakecache>/dev/null echo准备下载nginx yum-yinstallnginx rpm-qnginx |
服务器租用:centos 7下nginx安装脚本 |
#!/bin/bash cat>/etc/yum.repos.d/nginx.repo<<EOF [nginx] name=nginxrepo baseurl=清除yum缓存 #yumcleanall>/dev/null #yummakecache>/dev/null echo准备下载nginx yum-yinstallnginx rpm-qnginx |