溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

工作筆記--關(guān)于服務(wù)出問題時如何處理的流程

發(fā)布時間:2020-08-05 22:23:38 來源:網(wǎng)絡(luò) 閱讀:336 作者:夜半煮飯 欄目:軟件技術(shù)



如果drhel31出現(xiàn)問題,排查方法:
1,http://drhel31.test.com:25400/ 查看這些服務(wù)都起來沒有,主要看ServiceNodeInstances(SAAS)區(qū)域的信息。

2,http://drhel31.test.com:7080/getApiGWDetail  查看這些服務(wù)都起來沒有。

3,如果應(yīng)該起來的服務(wù)沒有起來,去對應(yīng)的33,35機(jī)子上重啟起來。

4,33,35上重啟tomcat sudo /etc/init.d/tomcat6 restart

5,非tomcat容器里的服務(wù),33上可以重啟的一些服務(wù)
sudo /etc/init.d/test-sioserver restart
test-apigwd  
test-elasticsearchd  
test-sioserver  
test-slbgateway  
test-tfsd  
test-zookeeperd

6,非tomcat容器里的服務(wù),35上可以重啟的一些服務(wù)。
test-sioserver  
test-slbgateway  
test-zookeeperd

7,如果在第1,2上查看到的服務(wù),但在33,35的/etc/init.d/test*下沒有,說明該服務(wù)沒有安裝,應(yīng)預(yù)先安裝這個服務(wù),sudo bb install tfsd(服務(wù)名)

8,但如果想單獨(dú)重啟tomcat里的服務(wù),只有用curl的命令來重啟了。
/opt/test/tomcat6/webapps/ 這個路徑下的所有的服務(wù)都可以用curl的方式重啟。

重啟過程如下:
curl -u 3JBYBOHlQAfixW7q:NdDkrm30g8HQelWA "localhost:8080/mgmtomcatmgr/stop?path=/activitystream"
curl -u 3JBYBOHlQAfixW7q:NdDkrm30g8HQelWA "localhost:8080/mgmtomcatmgr/start?path=/activitystream"

其中:
3JBYBOHlQAfixW7q:NdDkrm30g8HQelWA 這兩個參數(shù)
來自文件/opt/test/tomcat6/conf/tomcat-users.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
    <user username="3JBYBOHlQAfixW7q" password="NdDkrm30g8HQelWA" roles="manager"/>
</tomcat-users>



向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI