---
title: "解决主机无法访问Centos7虚拟机中的网页"
author: "java_my_life"
date: "2017-02-15T22:19:50Z"
tags: []
categories: ["操作系统"]
slug: "centos7"
draft: false
lastmod: "2017-02-15T22:19:50Z"
id: 2357337
url: "https://java-my-life.iteye.com/blog/2357337"
---

1,将虚拟机中的连接方式改成桥接。

2.关闭centos的防火墙。

```
systemctl stop firewalld.service
```