使用 树莓派 搭建属于本身的 web服务器(二)设置Apache

  1. 获取服务器ip地址: 1 ifconfig   2. 更改本地hosts文件 要想在浏览器中输入一个域名也同样能够访问你的服务器,你须要更改电脑中的hosts文件html linux 系统:linux 1 sudo vim /etc/hosts windows 系统:apache 1 C:\Windows\System32\drivers\etc\hosts   打开host文件后添加以
相关文章
相关标签/搜索