作者: admin

  • nginx 搭建本地yum源

    ## 安装ngxin
    yum install -y nginx
    
    ## 启动nginx
    service nginx start
    
    编写文件服务器配置
    vim /etc/nginx/conf.d/ambari.conf
    
    
    server {
        listen  80;
        server_name  repo.master.local; # 自己PC的ip或者服务器的域名
        charset utf-8; # 避免中文乱码
        root /export/images/ambari;  #路径为文件管理的根目录
        location / {
            autoindex on; # 索引
            autoindex_exact_size on; # 显示文件大小
            autoindex_localtime on; # 显示文件时间
        }
    }
    
    ##nginx重新加载配置
    nginx -s reload
    
  • 世界,您好!

    欢迎使用 WordPress。这是您的第一篇文章。编辑或删除它,然后开始写作吧!