Linux下命令行安裝WebLogic 10.3.6

来源:https://www.cnblogs.com/JOEH60/archive/2019/08/01/11280682.html
-Advertisement-
Play Games

一、安裝前準備工作:安裝jdk,配置環境變數 二、開始安裝: 1、進入安裝路徑:/home/weblogic 2、將安裝文件wls1036_generic.jar放入安裝目錄 3、chmod a+x wls1036_generic.jar 賦予安裝文件可執行的許可權 4、執行安裝命令:java -ja ...


一、安裝前準備工作:安裝jdk,配置環境變數

二、開始安裝:

1、進入安裝路徑:/home/weblogic

2、將安裝文件wls1036_generic.jar放入安裝目錄

3、chmod a+x wls1036_generic.jar  賦予安裝文件可執行的許可權

4、執行安裝命令:java -jar filename.jar -mode=console

註:如果安裝文件是.bin格式的文件,安裝命令為:./wls1036_generic.bin -mode=console;(你可以不加“-mode=console”的控制台文本模式,因為在你安裝時無法啟動圖形安裝界面時它會自動的進入文本控制台模式的)


5、控制台安裝:

 

 

 

 

 

一、安裝weblogic10.3.6 64位:

-bash-4.1$ java -jar wls1036_generic.jar
Unable to instantiate GUI, defaulting to console mode.無法實例化 GUI,預設進入控制台模式。
Extracting 0%....................................................................................................100%

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Welcome:
--------

This installer will guide you through the installation of WebLogic 10.3.6.0.
Type "Next" or enter to proceed to the next prompt.  If you want to change data entered previously, type "Previous".  You may quit the installer at any time by typing "Exit".

 
Enter [Exit][Next]> 回車

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [Enter new value or use default
"/bea/weblogic/Oracle/Middleware"]

 
Enter new Middleware Home OR [Exit][Previous][Next]> /bea/weblogic/

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [/bea/weblogic]

Use above value or select another option:
    1 - Enter new Middleware Home
    2 - Change to default [/bea/weblogic/Oracle/Middleware]

 
Enter option number to select OR [Exit][Previous][Next]> 1

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    "Middleware Home" = [/bea/weblogic]

 
Enter new Middleware Home OR [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Middleware Home Directory:
---------------------------------

    Warning

/bea/weblogic directory is not empty. Proceed with installation?

 
Enter [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

  1|Email:[]
  2|Support Password:[]
  3|Receive Security Update:[Yes]


Enter index number to select OR [Exit][Previous][Next]> 3

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]

 

Enter [Yes][No]? no

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

    "Receive Security Update:" = [Enter new value or use default "Yes"]

 

Enter [Yes][No]? yes

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

  1|Email:[]
  2|Support Password:[]
  3|Receive Security Update:[No]

 

Enter index number to select OR [Exit][Previous][Next]>

 
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Register for Security Updates:
------------------------------

Provide your email address for security updates and  to initiate configuration manager.

  1|Email:[]
  2|Support Password:[]
  3|Receive Security Update:[No]

 

Enter index number to select OR [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Install Type:
--------------------

Select the type of installation you wish to perform.

 ->1|Typical
    |  Install the following product(s) and component(s):
    | - WebLogic Server
    | - Oracle Coherence

  2|Custom
    |  Choose software products and components to install and perform optional
    |configuration.

 

Enter index number to select OR [Exit][Previous][Next]> 2

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Products and Components:
-------------------------------

    Release 10.3.6.0
    |_____WebLogic Server [1] x
    |    |_____Core Application Server [1.1] x
    |    |_____Administration Console [1.2] x
    |    |_____Configuration Wizard and Upgrade Framework [1.3] x
    |    |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
    |    |_____WebLogic SCA [1.5] x
    |    |_____WebLogic JDBC Drivers [1.6] x
    |    |_____Third Party JDBC Drivers [1.7] x
    |    |_____WebLogic Server Clients [1.8] x
    |    |_____WebLogic Web Server Plugins [1.9] x
    |    |_____UDDI and Xquery Support [1.10] x
    |    |_____Server Examples [1.11]
    |    |_____Evaluation Database [1.12] x
    |_____Oracle Coherence [2] x
        |_____Coherence Product Files [2.1] x
        |_____Coherence Examples [2.2]

    *Estimated size of installation: 690.2 MB

 
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 2

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Products and Components:
-------------------------------

    Release 10.3.6.0
    |_____WebLogic Server [1] x
    |    |_____Core Application Server [1.1] x
    |    |_____Administration Console [1.2] x
    |    |_____Configuration Wizard and Upgrade Framework [1.3] x
    |    |_____Web 2.0 HTTP Pub-Sub Server [1.4] x
    |    |_____WebLogic SCA [1.5] x
    |    |_____WebLogic JDBC Drivers [1.6] x
    |    |_____Third Party JDBC Drivers [1.7] x
    |    |_____WebLogic Server Clients [1.8] x
    |    |_____WebLogic Web Server Plugins [1.9] x
    |    |_____UDDI and Xquery Support [1.10] x
    |    |_____Server Examples [1.11]
    |    |_____Evaluation Database [1.12] x
    |_____Oracle Coherence [2]
        |_____Coherence Product Files [2.1]
        |_____Coherence Examples [2.2]

    *Estimated size of installation: 678.7 MB

 
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

JDK Selection (Any * indicates Oracle Supplied VM):
---------------------------------------------------

JDK(s) chosen will be installed.  Defaults will be used in script string-substitution if installed.

  1|Add Local Jdk
  2|/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64[x]

 

  *Estimated size of installation:  678.7 MB


Enter 1 to add or >= 2 to toggle selection  OR [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Choose Product Installation Directories:
----------------------------------------

Middleware Home Directory: [/bea/weblogic]

Product Installation Directories:


    "WebLogic Server" = [Enter new value or use default
"/bea/weblogic/wlserver_10.3"]

 
Enter new WebLogic Server OR [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

The following Products and JDKs will be installed:
--------------------------------------------------

    WebLogic Platform 10.3.6.0
    |_____WebLogic Server
        |_____Core Application Server
        |_____Administration Console
        |_____Configuration Wizard and Upgrade Framework
        |_____Web 2.0 HTTP Pub-Sub Server
        |_____WebLogic SCA
        |_____WebLogic JDBC Drivers
        |_____Third Party JDBC Drivers
        |_____WebLogic Server Clients
        |_____WebLogic Web Server Plugins
        |_____UDDI and Xquery Support
        |_____Evaluation Database

    *Estimated size of installation: 678.8 MB

 
Enter [Exit][Previous][Next]>

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installing files..

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Performing String Substitutions...

 
<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Configuring OCM...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


Creating Domains...

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Installation Complete


Congratulations! Installation is complete.


Press [Enter] to continue or type [Exit]>

 

 

<-------------------- Oracle Installer - WebLogic 10.3.6.0 ------------------->

Clean up process in progress ...

二、配置domains

cd /home/weblogic/Oracle/Middleware/wlserver_10.3/common/bin
-bash-4.1$ ./config.sh
Unable to instantiate GUI, defaulting to console mode.


<------------------- Fusion Middleware Configuration Wizard ------------------>

Welcome:
--------

Choose between creating and extending a domain. Based on your selection,
the Configuration Wizard guides you through the steps to generate a new or
extend an existing domain.

 ->1|Create a new WebLogic domain
    |    Create a WebLogic domain in your projects directory.

  2|Extend an existing WebLogic domain
    |    Use this option to add new components to an existing domain and modify    |configuration settings.


Enter index number to select OR [Exit][Next]> 1


<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Domain Source:
---------------------

Select the source from which the domain will be created. You can create the
domain by selecting from the required components or by selecting from a
list of existing domain templates.

 ->1|Choose Weblogic Platform components
    |    You can choose the Weblogic component(s) that you want supported in
    |your domain.

  2|Choose custom template
    |    Choose this option if you want to use an existing  template. This
    |could be a custom created template using the Template Builder.


Enter index number to select OR [Exit][Previous][Next]> 1


<------------------- Fusion Middleware Configuration Wizard ------------------>

Application Template Selection:
-------------------------------

 
    Available Templates
    |_____Basic WebLogic Server Domain - 10.3.6.0 [wlserver_10.3]x
    |_____Basic WebLogic SIP Server Domain - 10.3.6.0 [wlserver_10.3] [2]
    |_____WebLogic Advanced Web Services for JAX-RPC Extension - 10.3.6.0 [wlserver_10.3] [3]
    |_____WebLogic Advanced Web Services for JAX-WS Extension - 10.3.6.0 [wlserver_10.3] [4]


Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

    |  Name  |    Value    |
  _|________|_____________|
  1| *Name: | base_domain |


Enter value for "Name" OR [Exit][Previous][Next]> wlyxweb


<------------------- Fusion Middleware Configuration Wizard ------------------>

Edit Domain Information:
------------------------

    |  Name  |  Value  |
  _|________|_________|
  1| *Name: | wlyxweb |

Use above value or select another option:
    1 - Modify "Name"
    2 - Discard Changes


Enter option number to select OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Select the target domain directory for this domain:
---------------------------------------------------

    "Target Location" = [Enter new value or use default
"/bea/weblogic/user_projects/domains"]

Enter new Target Location OR [Exit][Previous][Next]> /wlyx/webapp/domains


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name          |                  Value                  |
  _|_________________________|_________________________________________|
  1|        *Name:          |                weblogic                |
  2|    *User password:    |                                        |
  3| *Confirm user password: |                                        |
  4|      Description:      | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"


Enter option number to select OR [Exit][Previous][Next]> 2


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    "*User password:" = []


Enter new *User password: OR [Exit][Reset][Accept]> welwlyx50


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name          |                  Value                  |
  _|_________________________|_________________________________________|
  1|        *Name:          |                weblogic                |
  2|    *User password:    |                *********                |
  3| *Confirm user password: |                                        |
  4|      Description:      | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes

Enter option number to select OR [Exit][Previous][Next]> 3


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    "*Confirm user password:" = []


Enter new *Confirm user password: OR [Exit][Reset][Accept]> welwlyx50


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure Administrator User Name and Password:
-----------------------------------------------

Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.

    |          Name          |                  Value                  |
  _|_________________________|_________________________________________|
  1|        *Name:          |                weblogic                |
  2|    *User password:    |                *********                |
  3| *Confirm user password: |                *********                |
  4|      Description:      | This user is the default administrator. |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "User password"
    3 - Modify "Confirm user password"
    4 - Modify "Description"
    5 - Discard Changes


Enter option number to select OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Domain Mode Configuration:
--------------------------

Enable Development or Production Mode for this domain.

 ->1|Development Mode

  2|Production Mode


Enter index number to select OR [Exit][Previous][Next]> 2


<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

 ->1|N/A SDK 1.6.0_24 @ /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
  2|Other Java SDK


Enter index number to select OR [Exit][Previous][Next]> 2


<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

    "JVM Directory" = []


Enter new JVM Directory OR [Exit][Previous][Next]> /bea/jdk/jdk1.6.0_37


<------------------- Fusion Middleware Configuration Wizard ------------------>

Java SDK Selection:
-------------------

    "JVM Directory" = [/bea/jdk/jdk1.6.0_37]


Enter new JVM Directory OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

  1|Administration Server [ ]
  2|Managed Servers, Clusters and Machines [ ]
  3|RDBMS Security Store [ ]


Enter index number to select OR [Exit][Previous][Next]> 1


<------------------- Fusion Middleware Configuration Wizard ------------------>

Select Optional Configuration:
------------------------------

  1|Administration Server [x]
  2|Managed Servers, Clusters and Machines [ ]
  3|RDBMS Security Store [ ]

Enter index number to select OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Configure the Administration Server:
------------------------------------

Each WebLogic Server domain must have one Administration Server. The
Administration Server is used to perform administrative tasks.

    |      Name      |        Value        |
  _|__________________|_____________________|
  1|      *Name:      |    AdminServer    |
  2| *Listen address: | All Local Addresses |
  3|  Listen port:  |        7001        |
  4| SSL listen port: |        N/A        |
  5|  SSL enabled:  |        false        |

Use above value or select another option:
    1 - Modify "Name"
    2 - Modify "Listen address"
    3 - Modify "Listen port"
    4 - Modify "SSL enabled"

Enter option number to select OR [Exit][Previous][Next]>


<------------------- Fusion Middleware Configuration Wizard ------------------>

Creating Domain...

0%          25%          50%          75%          100%
[------------|------------|------------|------------]
[***************************************************]


**** Domain Created Successfully! ****

 

 

四:weblogic的使用

1、啟動服務時無需輸入用戶名和密碼

進入到你新建的域中:cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer

然後在該文件夾下新建名為security的文件夾:mkdir security

在剛剛新建是文件夾中新建名為boot.properties文件:vi boot.properties

然後在該文件中輸入:

username=weblogic

password=weblogc123

保存後退出。重啟weblogic。此時你會發覺,weblogic再也不會提示要求你輸入weblogic管理台的用戶名和密碼了。

重啟後我們來到剛剛的新建的文件夾中查看新建的文件:
cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/security

vi boot.properties發現它的內容已經變成下麵這個樣子了:

#Sun Aug 04 10:23:54 CST 2013

password={AES}KWRQeICbIyJLO3zh+v+/9JeJtCzpK9ge6j4pqf9sSqA\=

username={AES}ICJVfwErXU5MOQyVPzcvVpKBkK6gI6UFlwqkkEuVgBg\=

Weblogic把它給加密了,因此只有裝Weblogic的那個人即System Admin才真正知道Weblogic控制台的登錄信息,這樣就很安全了。

2、啟動weblogic服務

cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain

./startWeblogic.sh

nohup ./startWeblogic.sh &(nohup命令:如果你正在運行一個進程,而且你覺得在退出帳戶時該進程還不會結束,那麼可以使用nohup命令。
該命令可以在你退出帳戶/關閉終端之後繼續運行相應的進程。nohup就是不掛起的意思( no hang up),& 就是在後臺運行),如果該命令無法執行,可換成

sudo nohup ./startWeblogic.sh &

3、停止Weblogic服務

cd /home/weblogic/Oracle/Middleware/user_projects/domains/base_domain

./stopWeblogic.sh

 

 

 

 


找台伺服器 啟動瀏覽器 輸入 http://10.85.31.242:7001/console

 

 

 

輸入用戶名、密碼登錄後一直在首頁轉圈,這是因為Linux下JDK的BUG造成的,修改下配置即可:

修改 $JAVA_HOME/jre/lib/security/java.security  文件,

替換securerandom.source=file:/dev/random

  為 securerandom.source=file:/dev/./urandom。對所有使用JVM的應用生效。

 


您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • VO(Video Output,視頻輸出)模塊主動從記憶體相應位置讀取視頻和圖形數據,並通過相應的顯示設備輸出視頻和圖形。 1. 基本概念 3519A晶元支持的顯示/回寫設備、視頻層和圖形層見下表。 註:縮寫解釋 DHD0:Device HD0,超高清設備 0。 DHD1:Device HD1,高清設 ...
  • //文件從Linux系統上傳到其他系統。 sz空格+文件名 //文件從其他系統下載到Linux系統。 rz //之後會彈出路徑選擇框,選擇文件,即可下載到當前路徑。 ...
  • 出現場景: 當我在安裝STM32公司的 STM32 ST-LINK Utility v4.5.0 軟體時,彈出了這個錯誤。彈框的內容大體是說找不到D盤,這裡忘記截圖了。 我的電腦的硬碟是我另一臺電腦拿過來直接使用的,並沒有重新安裝操作系統,所以用了另一臺電腦的操作系統,而在另一臺電腦是有另一個硬碟, ...
  • 在執行某個命令時,有時需要依賴前面的命令是否執行成功。假如你想通過ssh命令複製很多數據文件到另外的機器後,刪除所有源有文件,所以在刪除源有文件之前首先要確定複製是不是執行成功。只要執行複製成功才可以刪除,否則後果...... 一、&& 1.格式 command1 && command2 2.含義 ...
  • 台式機通過網線共用筆記本電腦無線網路的步驟1、 保證筆記本通過“無線網路連接”可以正常上網。2、 將台式機通過網線和筆記本連接。3、 將筆記本的“本地連接”和“無線網路連接”的ipv4均設置為自動獲取。4、 打開筆記本的“無線網路連接-屬性-共用”,勾選“允許其他網路用戶共用”,如下圖 5、 允許共 ...
  • 網上提到了很多方法,正好買了一個移動硬碟,在這裡我自己挑了一個比較適用的記錄下來。 準備工作: 1、移動磁碟 2、電腦一枚 3、你鹹魚一般的腦子和勤勞的雙手 步驟一:備份你所有的資料到某一個地方,隨便哪裡,馬桶也行,只要你等會能夠找到並且放到你的磁碟里就行。 步驟二:格式化你的磁碟、、、不知道就 百 ...
  • 環境:CentOS7 目的:考慮到實現服務的高可用性。使用電子郵件通知服務,可以快速的通知維護人員。提高服務的可靠性,而通過 smtp.qq.com 實現腳本郵件報警 一、設置並取得 smtp.qq.com 的 使用 授權密碼 1.點擊進入QQ郵箱 2.進入郵箱點擊設置 3.點擊帳號 4.點擊開啟S ...
  • Centos 7安裝步驟 對應參數,可修改 1、一臺主機對應一個伺服器,需要先安裝Centos 7(內網)2、F12 boot 進入boot模式3、選擇安裝方式:USE或其他4、根據底部文字提示,點擊 TAB按鍵,配置:LEBAI=CENTOS 配置欄位名字替換成CENTOS quiet不用刪除(該 ...
一周排行
    -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.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...