网站怎么发布到域名?

可以使用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="/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="/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="/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="/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="/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="/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="/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="/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="/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="/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="/242dd42a2834349ba458c489c7ea15ce36d3be64"/>