如何部署.net网站 [英] how can deploy .net website

查看:89
本文介绍了如何部署.net网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在服务器上部署我们的网站

任何人都可以帮助我

thx

How can deploy our website on server

anyone can help me

thx

推荐答案

http://www.iis.net/download/webdeploy [ ^ ]


1.首先,您需要在服务器计算机上配置IIS.
2.如果您的站点使用数据库,则数据库服务器shuold也将在其中运行(也许是sqlserver)

方法一:
在IIS上配置虚拟目录
将您的网站代码复制到该目录中.
根据服务器配置配置连接字符串以及所有内容.

方法2:
使用Visual Studio创建Web设置项目
使用此设置在服务器上进行部署

方法3:
使用Visual Studio中的发布网站
指定要部署到的服务器的正确路径并配置数据库

在每个步骤的详细信息上搜索google,以了解如何执行该步骤.
1. first of all you need IIS configured on the server machine.
2. If your site uses database then the database server shuold also be running there(perhaps sqlserver)

approach one:
Have a virtual directory configured on IIS
copy your website code in that directory.
configure the connection strings and all as per the server configuration.

Approach 2:
Create a web setup project using visual studio
use this setup to deploy on server

approach 3:
use publish web site from visual studio
specify the correct path of server to deploy to and configure the database

search google on each step''s details to know how to do that step.


请参阅本指南以在IIS 7上进行部署
See this guide for deployment on IIS 7
Deploying ASP.NET Websites on IIS 7.0 [^]


这篇关于如何部署.net网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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