Windows2008安裝組件命令行工具ServerManagerCmd用法介紹

来源:https://www.cnblogs.com/feiquan/archive/2019/02/22/10417486.html
-Advertisement-
Play Games

轉自:http://blog.sina.com.cn/s/blog_537de4b5010128al.html Windows2008 安裝組件服務等內容比原來複雜的多,用滑鼠點來點去,既繁瑣也緩慢,所幸微軟提供了命令行工具ServerManagerCmd.exe 用法: ServerManager ...


轉自:http://blog.sina.com.cn/s/blog_537de4b5010128al.html

Windows2008 安裝組件服務等內容比原來複雜的多,用滑鼠點來點去,既繁瑣也緩慢,所幸微軟提供了命令行工具ServerManagerCmd.exe

用法:

ServerManagerCmd.exe
安裝和刪除角色、角色服務和功能。也顯示所有可用的
角色、角色服務和功能列表,並顯示在此電腦上安裝了
其中哪些內容。有關可以使用此工具指定的角色、
角色服務和功能的詳細信息,請參閱伺服器管理器的“幫助”。

      -query [<query.xml>] [-logPath <log.txt>]

      -install <名稱>
          [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]
          [-allSubFeatures]

      -remove <名稱>
          [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]

      -inputPath <answer.xml>
          [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]

      -help | -?

      -version
開關參數:

  -query [<query.xml>]
        顯示所有可用的角色、角色服務和功能列表,
        並顯示在此電腦上安裝了其中哪些內容。(縮寫: -q)
        如果已指定 <query.xml>,則還會將該信息保存
        到 query.xml 文件,其中還包含其他信息。

  -inputPath <answer.xml>
        安裝或刪除在 XML 應答文件中指定的
        角色、角色服務和功能,該文件的路徑和名稱由
        <answer.xml> 表示。(縮寫: -ip)

  -install <名稱>
        在由 <name> 參數指定的電腦上安裝
        角色、角色服務或功能。必須用空格隔開
        多個角色、角色服務或功能。(縮寫: -i)

  -allSubFeatures
        與 -install 參數一起使用,安裝
        所有下級角色服務和功能以及使用 -install 參數
        命名的角色、角色服務或功能。(縮寫: -a)

  -remove <名稱>
        從由 <name> 參數指定的電腦上刪除
        角色、角色服務或功能。必須用空格隔開
        多個角色、角色服務或功能。(縮寫: -r)

  -resultPath <result.xml>
        以 XML 格式將 ServerManagerCmd.exe 操作的結果保存
        到 <result.xml> 文件。(縮寫: -rp)

  -restart
        如果完成該操作時需要重新啟動,則會自動
        重新啟動電腦。

  -whatIf
        顯示要在 answer.xml 文件中指定的當前
        電腦上執行的操作。(縮寫: -w)

  -logPath <log.txt>
        為日誌文件指定非預設位置。(縮寫: -l)

  -help
        顯示幫助信息。(縮寫: -?)

  -version
        顯示正在運行的伺服器管理器命令的版本、
        Microsoft 商標信息和操作系統。
        (縮寫: -v)
示例:

    ServerManagerCmd.exe -query

    ServerManagerCmd.exe -install Web-Server -resultPath installResult.xml

    ServerManagerCmd.exe -inputPath install.xml -whatIf

下麵是

 

Role/Service or Main Feature
R/S/F Name
Installatiom command
DHCP Server DHCP Server DHCP
Print Services Print Server Print-Services
  Internet Printing Print-Internet
  LPD Service Print-LPD-Service
Terminal Services Terminal Services Terminal-Services
  Terminal Server TS-Terminal-Server
  TS Licensing TS-Licensing
  TS Gateway TS-Gateway
  TS Web Access TS-Web-Access
  TS Session Broker TS-Session-Broker
Active Directory Domain Services AD N/A
  Active Directory Domain Controller ADDS-Domain-Controller
  Identity Management for UNIX ADDS-Identity-Management
  Server for Network Information Service ADDS-NIS
  Password Synchronization ADDS-Password-Sync
DNS Server DNS  
File Services File Services N/A
  Distributed File System (DFS) FS-DFS
  DFS Namespace FS-DFS-Namespace
  DFS Replication FS-DFS-Replication
  File Server Resource Manager FS-Resource-Manager
  Services for Network File System FS-NFS-Services
  Windows Search Service FS-Search-Service
  Windows Server 2003 File Services FS-Win2003-Services
  File Replication Service FS-Replication
  Indexing Service FS-Indexing-Service
Web Server Web Server (IIS) Web-Server
  Internet Information Services Web-WebServer
  Common HTTP Features Web-Common-Http
  Static Content Web-Static-Content
  Default Document Web-Default-Doc
  Directory Browsing Web-Dir-Browsing
  HTTP Errors Web-Http-Errors
  HTTP Redirection Web-Http-Redirect
  Application Development Web-App-Development
  ASP.NET Web-Asp-Net
  .NET Extensibility Web-Net-Ext
  ASP Web-ASP
  CGI Web-CGI
  ISAPI Extensions Web-ISAPI-Ext
  ISAPI Filters Web-ISAPI-Filter
  Server Side Includes Web-Includes
  Health and Diagnostics Web-Health
  HTTP Logging Web-Http-Logging
  Logging Tools Web-Log-Libraries
  Request Monitor Web-Request-Monitor
  Tracing Web-Http-Tracing
  Custom Logging Web-Custom-Logging
  ODBC Logging Web-ODBC-Logging
  Security Web-Security
  Basic Authentication Web-Basic-Auth
  Windows Authentication Web-Windows-Auth
  Digest Authentication Web-Digest-Auth
  Client Certificate Mapping Authentication Web-Client-Auth
  IIS Client Certificate Mapping Authentication Web-Cert-Auth
  URL Authorization Web-Url-Auth
  Request Filtering Web-Filtering
  IP and Domain Restrictions Web-IP-Security
  Performance Web-Performance
  Static Content Compression Web-Stat-Compression
  Dynamic Content Compression Web-Dyn-Compression
  Management Tools Web-Mgmt-Tools
  IIS Management Console Web-Mgmt-Console
  IIS Management Scripts and Tools Web-Scripting-Tools
  Management Service Web-Mgmt-Service
  IIS 6 Management Compatibility Web-Mgmt-Compat
  IIS 6 Metabase Compatibility Web-Metabase
  IIS 6 WMI Compatibility Web-WMI
  IIS 6 Scripting Tools Web-Lgcy-Scripting
  IIS 6 Management Console Web-Lgcy-Mgmt-Console
  FTP Publishing Service Web-Ftp-Publishing
  FTP Server Web-Ftp-Server
  FTP Management Console Web-Ftp-Mgmt-Console
Active Directory Federation Services ADFS None
  Federation Service ADFS-Federation
  Federation Service Proxy ADFS-Proxy
  Web Agents ADFS-Web-Agents
  Claims-aware Agent ADFS-Claims
  Windows Token-based Agent ADFS-Windows-Token
Active Directory Lightweight Directory Services Formerly ADAM ADLDS
Application Server Application Server Application-Server
  Application Server Core AS-AppServer-Core
  Web Server Support AS-Web-Support
  COM+ Network Access AS-Ent-Services
  TCP Port Sharing AS-TCP-Port-Sharing
  Windows Process Activation Service Support AS-WAS-Support
  HTTP Activation AS-HTTP-Activation
  Message Queuing Activation AS-MSMQ-Activation
  TCP Activation AS-TCP-Activation
  Named Pipes Activation AS-Named-Pipes
  Distributed Transaction Support AS-Dist-Transaction
  Incoming Remote Transactions AS-Incoming-Trans
  Outgoing Remote Transactions AS-Outgoing-Trans
  WS-Atomic Transaction Support AS-WS-Atomic
Active Directory Certificate Services Active Directory Certificate Services N/A
  Certification Authority ADCS-Cert-Authority or AD-Certificate
  Online Certificate Status Protocol ADCS-Online-Cert
Fax Server Fax Server Fax
Network Policy and Access Services Network Policy and Access Services NPAS
  Network Policy Server NPAS-Policy-Server
  NPAS Routing and Remote Access Services NPAS-RRAS-Services
  Remote Access Service NPAS-RRAS
  Routing NPAS-Routing
  Health Registration Authority NPAS-Health
Windows Deployment Services Windows Deployment Services WDS
Hyper-V Hyper-V Hyper-V
Failover Clustering Failover Clustering Failover-Clustering
Network Load Balancing Network Load Balancing NLB
Desktop Experience Desktop Experience Desktop-Experience
.NET Framework 3.0 Features .NET Framework 3.0 Features NET-Framework
.NET Framework 3.0 .NET Framework 3.0 NET-Framework-Core
XPS Viewer XPS Viewer NET-XPS-Viewer
Windows Communication Foundation Activation Components Windows Communication Foundation Activation Components NET-Win-CFAC
HTTP Activation HTTP Activation NET-HTTP-Activation
Non-HTTP Activation Non-HTTP Activation NET-Non-HTTP-Activ
Windows System Resource Manager Windows System Resource Manager WSRM
Wireless Networking Wireless Networking Wireless-Networking
Windows Server Backup Windows Server Backup Backup
WINS Server WINS Server WINS-Server
Remote Assistance Remote Assistance Remote-Assistance
Simple TCP/IP Services Simple TCP/IP Services Simple-TCPIP
Telnet Client Telnet Client Telnet-Client
Telnet Server Telnet Server Telnet-Server
Subsystem for UNIX-based Applications Subsystem for UNIX-based Applications Subsystem-UNIX-Apps
RPC over HTTP Proxy RPC over HTTP Proxy RPC-over-HTTP-Proxy
SMTP Server SMTP Server SMTP-Server
LPR Port Monitor LPR Port Monitor LPR-Port-Monitor
Storage Manager for SANs Storage Manager for SANs Storage-Mgr-SANS
BITS Server Extensions BITS Server Extensions BITS
Message Queuing Message Queuing MSMQ
  Message Queuing Services MSMQ-Services
  Message Queuing Server MSMQ-Server
  Directory Service Integration MSMQ-Directory
  Message Queuing Triggers MSMQ-Triggers
  HTTP Support MSMQ-HTTP-Support
  Multicasting Support MSMQ-Multicasting
  Routing Service MSMQ-Routing
  Windows 2000 Client Support MSMQ-Win2000
  Messaging Queue DCOM Proxy MSMQ-DCOM
Windows Process Activation Service Windows Process Activation Service WAS
  Process Model WAS-Process-Model
  .NET Environment WAS-NET-Environment
  Configuration APIs WAS-Config-APIs
Windows Internal Database Windows Internal Database Windows-Internal-DB
BitLocker Drive Encryption BitLocker Drive Encryption BitLocker
Multipath I/O Multipath I/O Multipath-IO
Internet Storage Naming Server Internet Storage Naming Server ISNS
Removable Storage Manager Removable Storage Manager Removable-Storage
TFTP Client TFTP Client TFTP-Client
SNMP Services SNMP Services SNMP-Services
  SNMP Service SNMP-Service
  SNMP WMI Provider SNMP-WMI-Provider
Services for Network File System Services for Network File System NFS-Services
Internet Printing Client Internet Printing Client Internet-Print-Client
Peer Name Resolution Protocol Peer Name Resolution Protocol PNRP
Connection Manager Administration Kit Connection Manager Administration Kit CMAK
Remote Server Administration Tools Remote Server Administration Tools RSAT
  Role administration tools RSAT-Role-Tools
  Active Directory Certificate Services Tools RSAT-ADCS
  Active Directory Domain Services Tools RSAT-ADDS
  Active Directory Domain Controller Tools RSAT-ADDC
  Server for NIS Tools RSAT-SNIS
  Active Directory Lightweight Directory Services Tools RSAT-ADLDS
  Active Directory Rights Management Services (AD RMS) Tools RSAT-RMS
  DHCP Server Tools RSAT-DHCP
  DNS Server Tools RSAT-DNS
  Fax Server Tools RSAT-Fax
  DFS Management Console Tools RSAT-DFS-Mgnt-Con
  File Server Resource Manager Management Console Tools RSAT-FSRM-Mgnt
  Hyper-V Tools RSAT-Hyper-V
  Services for Network File System Tools RSAT-NFS-Admin
  File Services Tools RSAT-File-Services
  Network Policy and Access Services Tools RSAT-NPAS
  Health Registration Authority Tools RSAT-HRA
  Network Policy Server Tools RSAT-NPS
  Print Services Tools RSAT-Print-Services
  Web Server (IIS) Tools RSAT-Web-Server
  Terminal Services Tools RSAT-TS
  TS RemoteApp Tools RSAT-TS-RemoteApp
  TS Gateway Tools RSAT-TS-Gateway
  TS Licensing Tools RSAT-TS-Licensing
  UDDI Services Tools RSAT-UDDI
  Feature administration tools RSAT-Feature-Tools
  BitLocker Drive Encryption Tools RSAT-BitLocker
  BITS Server Extensions Tools RSAT-BITS-Server
  Failover Clustering Tools RSAT-Clustering
  Network Load Balancing Tools RSAT-NLB
  SMTP Server Tools RSAT-SMTP
  Windows Deployment Services Tools RSAT-WDS
  WINS Server Tools RSAT-WINS
  Hyper-V Tools RSAT-Hyper-V
Windows PowerShell Windows PowerShell PowerShell
Group Policy Management Group Policy Management GPMC
Quality Windows Audio Video Experience Quality Windows Audio Video Experience  

 

Role/Service or Main Feature
R/S/F Name
Installatiom command
DHCP Server DHCP Server DHCP
Print Services Print Server Print-Services
  Internet Printing Print-Internet
  LPD Service Print-LPD-Service
Terminal Services Terminal Services Terminal-Services
  Terminal Server TS-Terminal-Server
  TS Licensing TS-Licensing
  TS Gateway TS-Gateway
  TS Web Access TS-Web-Access
  TS Session Broker TS-Session-Broker
Active Directory Domain Services AD N/A
  Active Directory Domain Controller ADDS-Domain-Controller
  Identity Management for UNIX ADDS-Identity-Management
  Server for Network Information Service ADDS-NIS
  Password Synchronization ADDS-Password-Sync
DNS Server DNS  
File Services File Services N/A
  Distributed File System (DFS) FS-DFS
  DFS Namespace FS-DFS-Namespace
  DFS Replication FS-DFS-Replication
  File Server Resource Manager FS-Resource-Manager
  Services for Network File System FS-NFS-Services
  Windows Search Service FS-Search-Service
  Windows Server 2003 File Services FS-Win2003-Services
  File Replication Service FS-Replication
  Indexing Service FS-Indexing-Service
Web Server Web Server (IIS) Web-Server
  Internet Information Services Web-WebServer
  Common HTTP Features Web-Common-Http
  Static Content Web-Static-Content
  Default Document Web-Default-Doc
  Directory Browsing Web-Dir-Browsing
  HTTP Errors Web-Http-Errors
  HTTP Redirection Web-Http-Redirect
  Application Development Web-App-Development
  ASP.NET Web-Asp-Net
  .NET Extensibility Web-Net-Ext
  ASP Web-ASP
  CGI Web-CGI
  ISAPI Extensions Web-ISAPI-Ext
  ISAPI Filters Web-ISAPI-Filter
  Server Side Includes Web-Includes
  Health and Diagnostics Web-Health
  HTTP Logging Web-Http-Logging
  Logging Tools Web-Log-Libraries
  Request Monitor Web-Request-Monitor
  Tracing Web-Http-Tracing
  Custom Logging Web-Custom-Logging
  ODBC Logging Web-ODBC-Logging
  Security Web-Security
  Basic Authentication Web-Basic-Auth
  Windows Authentication Web-Windows-Auth
  Digest Authentication Web-Digest-Auth
  Client Certificate Mapping Authentication Web-Client-Auth
  IIS Client Certificate Mapping Authentication Web-Cert-Auth
  URL Authorization Web-Url-Auth
  Request Filtering Web-Filtering
  IP and Domain Restrictions Web-IP-Security
  Performance Web-Performance
  Static Content Compression Web-Stat-Compression
  Dynamic Content Compression Web-Dyn-Compression
  Management Tools Web-Mgmt-Tools
  IIS Management Console Web-Mgmt-Console
  IIS Management Scripts and Tools Web-Scripting-Tools
  Management Service Web-Mgmt-Service
  IIS 6 Management Compatibility Web-Mgmt-Compat
  IIS 6 Metabase Compatibility Web-Metabase
  IIS 6 WMI Compatibility Web-WMI
  IIS 6 Scripting Tools Web-Lgcy-Scripting
  IIS 6 Management Console Web-Lgcy-Mgmt-Console
  FTP Publishing Service Web-Ftp-Publishing
  FTP Server Web-Ftp-Server
  FTP Management Console Web-Ftp-Mgmt-Console
Active Directory Federation Services ADFS None
  Federation Service ADFS-Federation
  Federation Service Proxy ADFS-Proxy
  Web Agents ADFS-Web-Agents
  Claims-aware Agent ADFS-Claims
  Windows Token-based Agent ADFS-Windows-Token
Active Directory Lightweight Directory Services Formerly ADAM ADLDS
Application Server Application Server Application-Server
  Application Server Core AS-AppServer-Core
  Web Server Support AS-Web-Support
  COM+ Network Access AS-Ent-Services
  TCP Port Sharing AS-TCP-Port-Sharing
  Windows Process Activation Service Support AS-WAS-Support
  HTTP Activation AS-HTTP-Activation
  Message Queuing Activation AS-MSMQ-Activation
  TCP Activation AS-TCP-Activation
  Named Pipes Activation AS-Named-Pipes
  Distributed Transaction Support AS-Dist-Transaction
  Incoming Remote Transactions AS-Incoming-Trans
  Outgoing Remote Transactions AS-Outgoing-Trans
  WS-Atomic Transaction Support AS-WS-Atomic
Active Directory Certificate Services Active Directory Certificate Services N/A
  Certification Authority ADCS-Cert-Authority or AD-Certificate
  Online Certificate Status Protocol ADCS-Online-Cert
Fax Server Fax Server Fax
Network Policy and Access Services Network Policy and Access Services NPAS
  Network Policy Server NPAS-Policy-Server
  NPAS Routing and Remote Access Services NPAS-RRAS-Services
  Remote Access Service NPAS-RRAS
  Routing NPAS-Routing
  Health Registration Authority NPAS-Health
Windows Deployment Services Windows Deployment Services WDS
Hyper-V Hyper-V Hyper-V
Failover Clustering Failover Clustering Failover-Clustering
Network Load Balancing Network Load Balancing NLB
Desktop Experience Desktop Experience Desktop-Experience
.NET Framework 3.0 Features .NET Framework 3.0 Features NET-Framework
.NET Framework 3.0 .NET Framework 3.0 NET-Framework-Core
XPS Viewer XPS Viewer NET-XPS-Viewer
Windows Communication Foundation Activation Components Windows Communication Foundation Activation Components NET-Win-CFAC
HTTP Activation HTTP Activation NET-HTTP-Activation
Non-HTTP Activation Non-HTTP Activation NET-Non-HTTP-Activ
Windows System Resource Manager Windows System Resource Manager WSRM
Wireless Networking Wireless Networking Wireless-Networking
Windows Server Backup Windows Server Backup Backup
WINS Server WINS Server WINS-Server
Remote Assistance Remote Assistance Remote-Assistance
Simple TCP/IP Services Simple TCP/IP Services Simple-TCPIP
Telnet Client Telnet Client Telnet-Client
Telnet Server Telnet Server Telnet-Server
Subsystem for UNIX-based Applications Subsystem for UNIX-based Applications Subsystem-UNIX-Apps
RPC over HTTP Proxy RPC over HTTP Proxy RPC-over-HTTP-Proxy
SMTP Server SMTP Server SMTP-Server
LPR Port Monitor LPR Port Monitor LPR-Port-Monitor
Storage Manager for SANs Storage Manager for SANs Storage-Mgr-SANS
BITS Server Extensions BITS Server Extensions BITS
Message Queuing Message Queuing MSMQ
  Message Queuing Services MSMQ-Services
  Message Queuing Server MSMQ-Server
  Directory Service Integration MSMQ-Directory
  Message Queuing Triggers MSMQ-Triggers
  HTTP Support MSMQ-HTTP-Support
  Multicasting Support MSMQ-Multicasting
  Routing Service MSMQ-Routing
  Windows 2000 Client Support MSMQ-Win2000
  Messaging Queue DCOM Proxy MSMQ-DCOM
Windows Process Activation Service Windows Process Activation Service WAS
  Process Model WAS-Process-Model
  .NET Environment WAS-NET-Environment
  Configuration APIs WAS-Config-APIs
Windows Internal Database Windows Internal Database Windows-Internal-DB
BitLocker Drive Encryption BitLocker Drive Encryption BitLocker
Multipath I/O Multipath I/O Multipath-IO
Internet Storage Naming Server Internet Storage Naming Server ISNS
Removable Storage Manager Removable Storage Manager Removable-Storage
TFTP Client TFTP Client TFTP-Client
SNMP Services SNMP Services SNMP-Services
  SNMP Service SNMP-Service
  SNMP WMI Provider SNMP-WMI-Provider
Services for Network File System Services for Network File System NFS-Services
Internet Printing Client Internet Printing Client Internet-Print-Client
Peer Name Resolution Protocol Peer Name Resolution Protocol PNRP
Connection Manager Administration Kit Connection Manager Administration Kit CMAK
Remote Server Administration Tools Remote Server Administration Tools RSAT
  Role administration tools RSAT-Role-Tools
  Active Directory Certificate Services Tools RSAT-ADCS
  Active Directory Domain Services Tools RSAT-ADDS
您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • Active Directory 域服務安裝與測試 實驗原理: 安裝域服務並創建用戶,把另一個電腦加入域中,然後用域賬戶登錄以及用本地賬戶登錄測試 實驗條件:windows server 2008(域控制器), win7(加入域的pc) 實驗步驟: 一、安裝域服務以及配置信息 1.打開”服務管理器” ...
  • 一、安裝 1.檢查gcc環境 執行命令,如果Linux系統沒有安裝gcc編譯器,會提示“Command not found” # gcc -v 安裝gcc # yum -y install gcc 以上是make需要的,不裝會報錯! 2.下載Redis # cd /usr/local # wget ...
  • 一、文件許可權 使用 ls -l 命令可以查看文件的具體屬性: 如圖所示,第一列所示告訴了用戶一個文件的類型和許可權信息: 1)第一個字元 "d",表明該文件是一個目錄文件; 2)r 表示該文件具有可讀許可權; 3)w 表示該文件具有寫許可權; 4)x 表示該文件具有可執行許可權。 5)第一個 rwx 表示該 ...
  • zabbix介紹 zabbix是一個基於WEB界面的提供分散式系統監視以及網路監視功能的企業級的開源解決方案。 zabbix能監視各種網路參數,保證伺服器系統的安全運營;並提供靈活的通知機制以讓系統管理員快速定位/解決存在的各種問題。 zabbix由2部分構成,zabbix server與可選組件z ...
  • 簡介 hash命令是bash的內置命令。 我們知道在bash中執行外部命令,會根據環境變數PATH來逐一搜索命令的路徑。 hash就是用於記住命令的路徑,並且在下次執行命令的時候直接通過hash獲取而不再通過PATH一步步尋找,加快了尋找命令的速度。 hash就像是命令的緩存。 語法 語法中的nam ...
  • 系統環境:jdk1.8,apache-tomcat-8.5.35 一、jvm優化 進入 bin/catalina.sh,修改JAVA_OPTS配置: JAVA_OPTS="-server -Xms8192M -Xmx8192M -XX:NewRatio=4 -XX:SurvivorRatio=8 - ...
  • 1、firewalld的基本使用 啟動: systemctl start firewalld 關閉: systemctl stop firewalld 查看狀態: systemctl status firewalld 開機禁用 : systemctl disable firewalld 開機啟用 : ...
  • Centos 安裝企業wiki confluence是一個專業的企業知識管理與協同軟體,可以用於構建企業wiki。通過它可以實現團隊成員之間的協作和知識共用。現在大多數公司都會部署一套confluence,用作內部wiki。現在confluence已收費,那麼下麵將介紹下安裝破解confluence ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...