dua27031 2010-05-06 02:00
浏览 34
已采纳

在家庭计算机上的LAMP堆作为一个公共网络服务器

So I'm using this website:

http://www.howtoforge.com/ubuntu_debian_lamp_server

to setup LAMP on my Ubuntu Virtual Machine.

Here is my question though,

This will enable me to program and test through localhost. How can I set this up so anyone on the web can access my .php pages from any Internet capable device, and they will still interact with my local database, etc?

  • 写回答

2条回答 默认 最新

  • dourui7186 2010-05-06 02:04
    关注

    If you open port 80 in your firewall to your local machine, it should be available to the outside world via your ip address. You will need to check your router settings to figure out how to do this, but usually it's called port forwarding.

    You could then use a free service like dyndns to give yourself a domain name that you can then type into your browser such as

    myserver.dyndns.org
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥50 汇编语言除法溢出问题
  • ¥50 C++实现删除N个数据列表共有的元素
  • ¥15 Visual Studio问题
  • ¥15 state显示变量是字符串形式,但是仍然红色,无法引用,并显示类型不匹配
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗