云服务器用cmd安装以及卸载IIS7

[复制链接] |主动推送
查看39 | 回复0 | 2024-9-11 14:52:26 | 显示全部楼层 |阅读模式
安装:
打开cmd,输入命令:start /w pkgmgr/iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI
然后回车等待运行,一般需要五分钟左右:
104932x8v35azl13tt05bh.png
运行完后即可安装完成。
卸载:
打开cmd,输入命令:
start /w pkgmgr/uu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-ProcessModel
回车运行,弹出是否重启,点是,重启完成后就可以卸载完了
104933yo5iqi3ri3d1ioy0.png
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则