网站怎么发布到网上?

2024-11-30 09:56:37
推荐回答(4个)
回答(1):

可以使用IIS进行发布,步骤如下:
1、打开IIS,右键点击网站--添加网站,然后进入配置。
/iknow-pic.cdn.bcebos.com/9825bc315c6034a8ae89138dc513495409237657"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/9825bc315c6034a8ae89138dc513495409237657?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/9825bc315c6034a8ae89138dc513495409237657"/>

2、网站的基本设置,首选选择网站所在目录的路径,然后给网站起个名字(名字可以任意起),最后是应用程序池的选择,也可以用自动生成的新的,也可以用配置过的,一般用新生成的,各个网站之间就不会相互影响了。
/iknow-pic.cdn.bcebos.com/730e0cf3d7ca7bcb9c2c6c23b0096b63f624a863"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/730e0cf3d7ca7bcb9c2c6c23b0096b63f624a863?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/730e0cf3d7ca7bcb9c2c6c23b0096b63f624a863"/>
3、编辑绑定,这里可以设置该网站的端口和绑定的域名,我们这里是内网设置,只用设置端口。
/iknow-pic.cdn.bcebos.com/8b13632762d0f70310353ed006fa513d2697c533"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/8b13632762d0f70310353ed006fa513d2697c533?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/8b13632762d0f70310353ed006fa513d2697c533"/>
/iknow-pic.cdn.bcebos.com/6159252dd42a283493209d0755b5c9ea15cebf3c"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/6159252dd42a283493209d0755b5c9ea15cebf3c?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/6159252dd42a283493209d0755b5c9ea15cebf3c"/>
4、网站一般要添加IIS_USER权限,右键网站--编辑权限,添加需要的权限,如果有写入文件操作,需要给与写入权限。
/iknow-pic.cdn.bcebos.com/f9198618367adab42865b04f85d4b31c8701e401"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/f9198618367adab42865b04f85d4b31c8701e401?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/f9198618367adab42865b04f85d4b31c8701e401"/>
5、应用程序池的设置,如果是.net程序,需要在应用程序池设置.net版本。
/iknow-pic.cdn.bcebos.com/bd3eb13533fa828ba2e636eff31f4134960a5af0"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/bd3eb13533fa828ba2e636eff31f4134960a5af0?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/bd3eb13533fa828ba2e636eff31f4134960a5af0"/>
/iknow-pic.cdn.bcebos.com/6f061d950a7b02080ec495ed6cd9f2d3572cc8a9"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/6f061d950a7b02080ec495ed6cd9f2d3572cc8a9?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/6f061d950a7b02080ec495ed6cd9f2d3572cc8a9"/>
6、设置网站的默认页,即启动默认打开的页面。
/iknow-pic.cdn.bcebos.com/faedab64034f78f0bdcb31ff77310a55b2191cfd"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/faedab64034f78f0bdcb31ff77310a55b2191cfd?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/faedab64034f78f0bdcb31ff77310a55b2191cfd"/>
/iknow-pic.cdn.bcebos.com/caef76094b36acafe7833cf072d98d1001e99c5f"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/caef76094b36acafe7833cf072d98d1001e99c5f?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/caef76094b36acafe7833cf072d98d1001e99c5f"/>
7、可以右键--管理网站--浏览,地址栏会显示您配置的端口,到这里网站已经发布完成了。
/iknow-pic.cdn.bcebos.com/d833c895d143ad4bee71eccc8c025aafa40f065a"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/d833c895d143ad4bee71eccc8c025aafa40f065a?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/d833c895d143ad4bee71eccc8c025aafa40f065a"/>
/iknow-pic.cdn.bcebos.com/242dd42a2834349ba458c489c7ea15ce36d3be64"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/242dd42a2834349ba458c489c7ea15ce36d3be64?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/242dd42a2834349ba458c489c7ea15ce36d3be64"/>

回答(2):

你本地的计算机没有静态IP,你现在用公网访问.花生壳是以前也玩过,好像确实是可以.但还是希望你在买个云服务器空间,然后给你的.com域名做解析.然后让网站跑起来.现在买个便宜一点的,价格也不贵.

回答(3):

1、需要准备:域名(要求已备案)、服务期/空间
2、将域名解析到您购买的服务器上/空间上。
3、 将网站源码通过ftp上传到您购买的服务器/空间上。
4、在浏览器上打开您的域名就可以访问了。

回答(4):