ThingWorx Flow > 安裝與組態 > 手動解除安裝 ThingWorx Flow
手動解除安裝 ThingWorx Flow
可完成下面的步驟來手動解除安裝 ThingWorx Flow
* 
ThingWorx Flow 9.1 及更新版本中,您可以自動解除安裝 ThingWorx Flow。如需詳細資訊,請參閱自動解除安裝 ThingWorx Flow
Windows Server 2016/ 2019
先決條件
移除所有工作流程。
步驟
1. 停止下列服務:
a. RabbitMQ
b. thingworxflow.exe
c. ThingWorxFlowNginx
2. 從「Windows 應用程式」/「程式集」中,以指定順序解除安裝下列程式:
a. RabbitMQ
b. Erlang
3. 如果存在下列服務,請將其刪除:
a. SC DELETE thingworxflow.exe
b. SC DELETE ThingWorxFlowNginx
4. 移除下列環境變數:
a. PM2_HOME
b. PM2_SERVICE_PM2_DIR
c. 所有 RabbitMQ 變數。它們以 RABBITMQ_* 開頭。
d. PATH 環境變數中,移除指向 ThingWorx Flow 安裝目錄的所有項目。
e. PATH 環境變數中,移除指向 Nginx 安裝的項目。預設位置為 C:\Program Files\nginx-xxx
5. 移除下列資料夾:
a. Nginx 安裝資料夾。預設位置為 C:\Program Files\nginx-xxx
b. ThingWorx Flow 安裝資料夾。
如果某些檔案遭到鎖定,您可能必須在「Windows 工作管理員」的「處理程序」標籤中結束 epmd 任務。
6. 刪除 <Path_To_Users_Folder>\Users\engtest\.ptc_ccif\ThingWorxFlow.xml 檔案。
7. 如果存在 HKEY_LOCAL_MACHINE\SOFTWARE\Ericsson\Erlang\ErlSrv\1.1\RabbitMQ,請將其從登錄中刪除。
8. platform-settings.json 檔案中移除下列區段:
"OrchestrationSettings": {
"EnableOrchestration": true,
"QueueHost": "localhost",
"QueuePort": 5672,
"QueueName": "256mb",
"QueueUsername": "symphuser",
"QueuePassword": "symphpass",
"QueueVHost": "symphony"
},
9. 如果已配置 SSO,請更新 sso-settings 設定,使其回復至 ThingWorx Foundation 電腦上的 ThingWorx 主機與埠。
sso-settings.json 檔案中,分別變更 clientBaseURLmetadataEntityBaseURL 值,使其回復至 ThingWorx 主機與埠。
10. 重新啟動 ThingWorx Foundation
11. 刪除 ThingWorx Flow 資料庫。如果針對 ThingWorx FoundationThingWorx Flow 使用相同的資料庫,請從 ThingWorx 資料庫中刪除 flow 結構描述。
如果您要再次安裝 ThingWorx Flow,除非您要使用與 ThingWorx Foundation 相同的資料庫,否則必須在開始安裝之前再次建立 ThingWorx Flow 資料庫。
Red Hat Enterprise Linux 7.5、7.6、8.0 或 8.1
先決條件
移除所有工作流程。
步驟
1. Nginx
a. 停止 Nginx 服務並移除 Nginx 自動啟動指令集:
sudo systemctl stop nginx.service
sudo systemctl disable nginx.service
b. 刪除 Nginx 相關安裝目錄:
sudo rm -rf /etc/nginx
sudo rm -rf /var/log/nginx
sudo rm -rf /var/cache/nginx/
c. 移除在 systemd 下建立的 nginx.service 指令集:
sudo rm -rf /usr/lib/systemd/system/nginx.service
sudo rm -rf /etc/systemd/system/nginx.service.d
d. 移除 Nginx 相關封裝:
sudo yum remove nginx
sudo rm /etc/yum.repos.d/nginx-repo.repo
2. RabbitMQ
a. 停止 rabbitmq-server 服務:
sudo systemctl stop rabbitmq-server
b. 移除 rabbitmq
sudo yum remove rabbitmq-server
針對 Red Hat Enterprise Linux 8.0 或 8.1,也請執行 sudo rm /etc/yum.repos.d/bintray-rabbitmq-server.repo 指令。
c. 刪除 RabbitMQ 相關目錄:
sudo rm -rf /etc/rabbitmq
sudo rm -rf /var/log/rabbitmq
sudo rm -rf /usr/lib/rabbitmq
sudo rm -rf /var/lib/rabbitmq
d. 刪除 RabbitMQ 相關封裝:
sudo yum remove logrotate
sudo yum remove erlang*
3. ThingWorx Flow
a. 停止並移除下列服務:
sudo systemctl stop ThingWorx-Flow
sudo systemctl disable ThingWorx-Flow
sudo rm /etc/systemd/system/ThingWorx-Flow.service
sudo systemctl daemon-reload
b. 刪除 ThingWorx Flow 安裝目錄:
sudo rm -R <ThingWorx_Flow_Installation_Folder>
4. 節點
sudo yum remove nodejs
5. 移除下列檔案:
sudo rm /etc/profile.d/pm2.sh
sudo rm /root/.ptc_ccif/ThingWorxFlow.xml
sudo semanage fcontext -D
6. platform-settings.json 檔案中移除下列區段:
"OrchestrationSettings": {
"EnableOrchestration": true,
"QueueHost": "localhost",
"QueuePort": 5672,
"QueueName": "256mb",
"QueueUsername": "symphuser",
"QueuePassword": "symphpass",
"QueueVHost": "symphony"
},
7. 如果已配置 SSO,請更新 sso-settings 設定,使其回復至 ThingWorx Foundation 電腦上的 ThingWorx 主機與埠。
sso-settings.json 檔案中,分別變更 clientBaseURLmetadataEntityBaseURL 值,使其回復至 ThingWorx 主機與埠。
8. 重新啟動 ThingWorx Foundation
9. 刪除 ThingWorx Flow 資料庫。如果針對 ThingWorx FoundationThingWorx Flow 使用相同的資料庫,請從 ThingWorx 資料庫中刪除 flow 結構描述。
如果您要再次安裝 ThingWorx Flow,除非您要使用與 ThingWorx Foundation 相同的資料庫,否則必須在開始安裝之前再次建立 ThingWorx Flow 資料庫。
這是否有幫助?