我想从运行团队城市的构建服务器部署Windows服务到最少的服务器配置到Windows Server 2012.
这样做的最佳方法之一是什么?
msbuild teamcity windows-services msdeploy windows-server-2012
我有一个带有IIS 8.5的Windows Server 2012 R2和另一个带有MSSQL 2012的服务器.我必须在IIS中安装PHP并连接到MSSQL,我没有可用于Web PI的Internet.
我设法安装PHP 5.5,我能够运行phpinfo(),我也保证php.ini正在加载C:\php\php.ini.
我还能够加载sqlsrv驱动程序,它在示例中报告sqlsrv.ClientBufferMaxKBSize 10240 10240.
但是当我执行连接到DB的php文件时,我收到一条消息
此扩展需要SQL Server的ODBC驱动程序11.访问以下URL以下载适用于x86的SQL Server的ODBC驱动程序11:http://go.microsoft.com/fwlink/?LinkId = 163712
我去了那个网站,它说
驱动程序3.1版支持的操作系统包括Windows Server 2012 R2`.
它说
版本3.1要求SQL Server的Microsoft ODBC驱动程序11(或更高版本)
and points tohttp://www.microsoft.com/en-us/download/details.aspx?id= 36434`.
在该页面的"系统要求"中,未列出WinServer 2012 R2.当我尝试安装时,msodbcsql.msi我收到消息
安装此产品失败,因为此操作系统不支持此产品.有关支持的配置的信息,请参阅产品文档
好吧,我现在卡住了.我需要在WinServer 2012 R2和IIS 8.5连接到MSSQL 2012的PHP.但它的驱动程序需要ODBC 11,它似乎不支持最新的WinServer.
有没有希望,还是我需要等待微软在自己的驱动程序中支持自己的操作系统?
我有一个网站,是和工作原理:
我已经升级了我的整个代码库,以便与大量新玩具保持同步.现在它是:
当我在分期中访问该网站时,我得到一个黄色的死亡屏幕,说无法找到编译器可执行文件csc.exe.我的问题是为什么?
它在本地工作正常,在发布模式下也是如此.我转发了,实例肯定在运行Windows Server 2012(因此.NET 4.5?我已经看到它很难说,因为.NET 4.5替换了.NET 4文件夹中的.NET 4程序集).
根据响应头,它肯定运行IIS 8,但有趣的是它声称X-ASPNET-VERSION是4.xxxx.这对于ASP.NET 4站点来说是正常的吗?
更新:
我将.NET 4框架作为目标,并将osFamily更改为2,现在可以使用了.所以我现在怀疑我有一个使用.NET 3.5或2的第三方程序集(事实上我确定我这样做)但是当针对比导入程序集中引用的.NET框架更高的.NET框架时,使用更高版本的框架??
osFamily ="3"只安装了.NET 4和4.5,所以我猜这是错误的原因,但我不是关于定位的事情吗?我想用osFamily ="3"我能在这做什么?
堆栈跟踪
[InvalidOperationException: Compiler executable file csc.exe cannot be found.]
System.CodeDom.Compiler.RedistVersionInfo.GetCompilerPath(IDictionary`2 provOptions, String compilerExecutable) +8675071
Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +739
Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources) +3293761
Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources) +64
HibernatingRhinos.Profiler.Appender.Util.GenerateAssembly.Compile(String …Run Code Online (Sandbox Code Playgroud) 在Windows Server 2008中,您可以使用WMI和Win32_ServerFeature类以编程方式检测服务器功能和角色.
在Windows Server 2012中,Win32_ServerFeature类已被弃用,不包括2012年新增的功能和角色.
据我所知,Win32_ServerFeature类已被服务器管理器部署取代,并且没有如何使用它的示例.
我在线搜索除了没有帮助的文档之外,找不到任何信息.
任何帮助将不胜感激,我在4.5 Dot Net Framework应用程序中使用c#进行开发.
更新:我尝试过的事情 - 请参阅下面的答案以获得解决方案
我们有一个看起来像一个应用程序的webforms和MVC3应用程序.这部署在许多环境(2003,2008,Win 7)中并且正常运行.我刚刚在新的Windows Server 2012计算机上设置了这些应用程序,除了获取MVC站点的资源文件外,一切正常.浏览器获得了
500 Internal Server Error
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this …Run Code Online (Sandbox Code Playgroud) 我目前正在使用以下脚本将具有特定前缀的所有文件复制到目标目录:
for /f "delims==" %%k in ('dir "d:\Search Path\File Prefix*.*" /s /b') do copy "%%k" "d:\Target Directory\"
Run Code Online (Sandbox Code Playgroud)
这工作正常,但我想创建一个文件符号链接,任何文件更改.有人可以建议我怎么做吗?
非常感谢
我正在尝试建立PowerShell会话以对localhost上的Exchange服务器运行多个Exchange命令.我一直收到以下错误:
New-PSSession : [<HOSTNAME>] Connecting to remote server <HOSTNAME> failed with the following error message
: Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:12
+ $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'h ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
Run Code Online (Sandbox Code Playgroud)
我的代码是Microsoft Technet文章的副本粘贴.它适用于远程机器,但无论何时我瞄准我运行的机器,我都会收到上述错误.
到目前为止我尝试过的:
about_remote_troubleshooting帮助主题.与Access Denied错误相关的任何内容均无效.net use并net session确保我没有具有相同凭据问题的奇怪的多个连接.(我没有看到任何迹象表明)一些快速说明:
powershell access-denied powershell-remoting windows-server-2012 exchange-server-2013
我尝试过的事情:
Windows Server 2012 R2上的工具箱。禁用Hyper-V以允许virtualbox。我无法启用虚拟化,因为它位于物理BIOS上。
在Windows Server 2016 w / Containers EC2上安装Docker EE。正确安装。守护程序正在运行。但是,我无法在hello-world:nanoserver旁边拉一个图像。因此,我搜寻了windowsservercore和nanoserver,由于它们已过时,因此仍然无法使用。尝试拉动时,来自Docker.com的毛躁人士的存储库不起作用。
从全新的Windows Server 2016实例重新开始。我禁用了Hyper-V并安装了ToolBox。不起作用
如何在AWS的Windows服务器环境中运行Docker?
所有的vid / tut看起来都这么简单,但是我确定无法使其正常工作。我很茫然。
amazon-web-services windows-server-2012 docker windows-server-2016
我刚刚安装了Windows Server 2012 Essentials,我想在服务器上的IIS中设置我的开发Web项目.但我似乎无法找到如何达到它?当我使用我的管理员帐户远程访问机器时,我似乎可以访问仪表板.
谁能告诉我该怎么办?
有没有办法在 Windows Server 2012 上添加 addlocalgroupmember 模块?我没有找到任何。我需要在本地管理员组中添加 AD 帐户,但我找不到方法。
我能达到的最接近的是使用以下命令安装 activedirectory-powershell 功能,但这也没有帮助。
基本上我需要找到一种在 win server 2012 上运行类似于以下命令的 powershell 命令的方法 -
Add-LocalGroupMember -Group "Administrators" -Member "domain\user"
Run Code Online (Sandbox Code Playgroud) powershell ×2
.net ×1
.net-4.5 ×1
asp.net ×1
asp.net-mvc ×1
azure ×1
batch-file ×1
c# ×1
copy ×1
docker ×1
iis ×1
iis-8.5 ×1
msbuild ×1
msdeploy ×1
odbc ×1
php-5.5 ×1
symlink ×1
teamcity ×1
web-config ×1