朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

linux服务器上使用nginx访问本地静态资源的方法

内容来源于互联网,购买VPS一定要做好备份,尽量月付,任何商家都不排除跑路的可能性。
文章主要介绍了linux服务器上如何使用nginx访问本地静态资源,本文给出了解决方法,需要的朋友可以参考下。
1.查看80端口是否被占用,一般80端口多被apache服务占用。
netstat -anp|grep 80
2.修改apache服务的端口号
vim /etc/apache2/ports.conf
3.将端口号修改为8080
4.修改nginx服务配置
vim /etc/nginx/conf.d/nginx.conf
5.重启nginx服务
service nginx restart
6.页面尝试访问本地资源
7.访问成功!
总结
以上所述是小编给大家介绍的linux服务器上使用nginx访问本地静态资源的方法,希望对大家有所帮助!内容来源于互联网,购买VPS一定要做好备份,尽量月付,任何商家都不排除跑路的可能性。

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » linux服务器上使用nginx访问本地静态资源的方法

评论 148

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #150

    Some are medicines that help people when doctors prescribe. Some are medicines that help people when doctors prescribe.
    lisinopril 20mg discount
    Everything information about medication. Get warning information here.

    WillieErert4小时前回复
  2. #149

    Drugs information sheet. Drug information.
    ivermectin lotion cost
    Read here. Get here.

    Ronaldhax1天前回复
  3. #148

    Long-Term Effects. Everything information about medication.
    generic ivermectin for humans
    Read information now. earch our drug database.

    KevinCaf2天前回复
  4. #147

    Thank you for content. Area rugs and online home decor stor<a href="https://hamcasinos.com/">온라인바카라</a>Thanks for sharing thanks a lot.

  5. #146

    Everything about medicine. Everything information about medication.
    ivermectin pill cost
    Everything what you want to know about pills. Get information now.

    Jesselap2天前回复
  6. #145

    Best and news about drug. Get information now.
    ivermectin 2%
    Read here. Everything what you want to know about pills.

    Zacharybor2天前回复
  7. #144

    Everything about medicine. Definitive journal of drugs and therapeutics.
    https://stromectolst.com/# ivermectin 1mg
    Definitive journal of drugs and therapeutics. Read now.

    Ronaldhax2天前回复
  8. #143

    Prescription Drug Information, Interactions & Side. Best and news about drug.
    https://stromectolst.com/# stromectol 3 mg dosage
    Some are medicines that help people when doctors prescribe. Read here.

    KevinCaf3天前回复
  9. #142

    buy clomid without prescription uk I took 3 tests, all positive and one saying pregnant on a digital

  10. #141

    Cautions. Read now.
    https://stromectolst.com/# ivermectin syrup
    Some are medicines that help people when doctors prescribe. What side effects can this medication cause?

    KevinCaf3天前回复
  11. #140

    Medscape Drugs & Diseases. Everything what you want to know about pills.
    ivermectin usa
    All trends of medicament. Some are medicines that help people when doctors prescribe.

    Zacharybor4天前回复
  12. #139

    drug information and news for professionals and consumers. Drug information.
    https://stromectolst.com/# where to buy stromectol
    Long-Term Effects. What side effects can this medication cause?

    KevinCaf4天前回复
  13. #138

    Commonly Used Drugs Charts. earch our drug database.
    ivermectin 3mg pill
    Prescription Drug Information, Interactions & Side. Get information now.

    Ronaldhax4天前回复