WEB开发网
开发学院服务器云计算 Windows Azure入门:使用 Azure Drive 阅读

Windows Azure入门:使用 Azure Drive

 2010-05-24 00:00:00 来源:WEB开发网   
核心提示: 最后,修改配置文件,Windows Azure入门:使用 Azure Drive(4),在Cloud Service项目的ServiceConfiguration.cscfg中添加下列配置:<?xmlversion="1.0"?><ServiceConfig

最后,修改配置文件。在Cloud Service项目的ServiceConfiguration.cscfg中添加下列配置:

<?xml version="1.0"?>
<ServiceConfiguration serviceName="CloudDriveSampleWebRole" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration">
  <Role name="WebRole1">
    <Instances count="1" />
    <ConfigurationSettings>
      <Setting name="DiagnosticsConnectionString" value="UseDevelopmentStorage=true" />
      <Setting name="DataConnectionString" value="UseDevelopmentStorage=true" />
    </ConfigurationSettings>
  </Role>
</ServiceConfiguration>

在ServiceDefinition.csdef中添加下列配置:

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="CloudDriveSampleWebRole" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">
  <WebRole name="WebRole1">
    <LocalResources>
      <LocalStorage name="InstanceDriveCache"
                    cleanOnRoleRecycle="false"
                    sizeInMB="300" />
    </LocalResources>
    <InputEndpoints>
      <InputEndpoint name="HttpIn" protocol="http" port="80" />
    </InputEndpoints>
    <ConfigurationSettings>
      <Setting name="DiagnosticsConnectionString" />
      <Setting name="DataConnectionString" />
    </ConfigurationSettings>
  </WebRole>
</ServiceDefinition>

上一页  1 2 3 4 5  下一页

Tags:Windows Azure 入门

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接