如何将我的PC变成网站服务器? [英] How can i turn my PC into website server?

查看:77
本文介绍了如何将我的PC变成网站服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好...!我目前正在通过向托管服务提供商支付租金来运行我的网站www.techicom.org.但是最近我意识到我的网站已经获得了58K的访问量,并希望创建自己的服务器.因此,我需要您的帮助,例如如何将计算机变成服务器?我需要什么类型的软件?
感谢任何答复.

Hello all...!! I am currently running my website www.techicom.org by paying rent to hosting providers. But recently i realize that i already got 58K traffic in my website and want to create my own server. So i need your help like how i can turn my computer into servers? What type of software i need?
Any reply is appreciated.

推荐答案

58k访问或58kb数据?


首先,您需要具有静态IP才能生效.也就是说,您需要您的IP始终保持不变,而不是在每次连接或DNS条目过期时都被随机分配一个IP.

其次,对于ASP.NET,您需要IIS,对于PHP/MySql开发人员,则需要XAMPP(或同等功能).

第三,您需要注册一个域名.即www.example.com

第四,您需要告诉dns服务器您的域名对应于您的(静态)IP.

过去,我只是使用我拥有的预付费无线宽带USB棒,使我的PC上的网站可以通过网络查看.这将工作一段时间,但是(a)公司将阻止端口80,因此http流量停止正确地传递到该IP或从该IP传递出去. (b)每次我连接时都是一个新IP,因此只能通过IP而不是URL来访问该站点-例如136.34.231.3和_not_ www.example.com

因此,要使其正常工作,您需要(a)为您的提供商允许端口80的入站和出站流量(b)安装Web服务器软件.
(c)(可选)购买域名(d)将(静态)IP分配给域名
58k visits, or 58kb of data?


Firstly, you need to have a static IP for this to be effective. That is to say, you need your IP to always remain the same, not be assigned a random one each time you connect or you DNS entry expires.

Secondly you need IIS for ASP.NET, and you need XAMPP (or equivalent) for PHP/MySql dev.

Thirdly you need to register a domain-name. I.e www.example.com

Fourth, you need to tell the dns servers that your domain-name corresponds to your (static) IP.

In the past I''ve made a website on my pc viewable via the web, just using the pre-paid wireless broadband usb-stick I had. This would work for some time, but (a) the company would block port 80, so http traffic stopped getting passed to/from that IP properly. (b) It was a new IP each time I connected, so the site could only be accessed via an IP, not a url - e.g 136.34.231.3 and _not_ www.example.com

So for this to work you need (a) for your provider to allow port 80 traffic inbound and outbound (b) to have webserver software installed.
Optionally, (c) buy domain-name (d) assign (static) IP to domain-name


这篇关于如何将我的PC变成网站服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆