hexo博客搭建
准备服务器购买一台服务器,修改密码,远程连接 更换yum源查看yum源 1yum info yum 备份yum源 1mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 下载centos7yum源 1wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 运行生成缓存 1yum makecache 12sudo yum install -y epel-releasesudo yum -y update 安装nginx1sudo yum install -y nginx 安装成功后,默认的网站目录为: /usr/share/nginx/html 默认的配置文件为:/etc/nginx/nginx.conf 自定义配置文件目录为:...