本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
管理客服人員
AWS Ground Station 代理程式提供下列功能,可讓您使用內建 Linux 命令工具來設定、啟動、停止、升級、降級和解除安裝代理程式。
主題
AWS Ground Station 客服人員組態
導覽至 /opt/aws/groundstation/etc
,其中應包含名為 aws-gs-agent-config.json 的單一檔案。請參閱客服人員組態檔案
AWS Ground Station 客服人員啟動
#start sudo systemctl start aws-groundstation-agent #check status systemctl status aws-groundstation-agent
應產生顯示代理程式作用中的輸出。
aws-groundstation-agent.service - aws-groundstation-agent Loaded: loaded (/usr/lib/systemd/system/aws-groundstation-agent.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2023-03-14 00:39:08 UTC; 1 day 13h ago Docs: https://aws.amazon.com/ground-station/ Main PID: 8811 (aws-gs-agent) CGroup: /system.slice/aws-groundstation-agent.service └─8811 /opt/aws/groundstation/bin/aws-gs-agent production
AWS Ground Station 客服人員停止
#stop sudo systemctl stop aws-groundstation-agent #check status systemctl status aws-groundstation-agent
應產生顯示代理程式處於非作用中 (已停止) 的輸出。
aws-groundstation-agent.service - aws-groundstation-agent Loaded: loaded (/usr/lib/systemd/system/aws-groundstation-agent.service; enabled; vendor preset: disabled) Active: inactive (dead) since Thu 2023-03-09 15:35:08 UTC; 6min ago Docs: https://aws.amazon.com/ground-station/ Process: 84182 ExecStart=/opt/aws/groundstation/bin/launch-aws-gs-agent (code=exited, status=0/SUCCESS) Main PID: 84182 (code=exited, status=0/SUCCESS)
AWS Ground Station 客服人員升級
-
下載最新版本的代理程式。請參閱 下載代理程式。
-
停止 代理程式。
#stop sudo systemctl stop aws-groundstation-agent #confirm inactive (stopped) state systemctl status aws-groundstation-agent
-
更新代理程式。
sudo yum update ${MY_RPM_FILE_PATH} # check the new version has been installed correctly by comparing the agent version with the starting agent version yum info aws-groundstation-agent # reload the systemd configuration sudo systemctl daemon-reload # restart the agent sudo systemctl restart aws-groundstation-agent # check agent status systemctl status aws-groundstation-agent
AWS Ground Station 客服人員降級
-
下載您需要的代理程式版本。請參閱 下載代理程式。
-
降級代理程式。
# get the starting agent version yum info aws-groundstation-agent # stop the agent service sudo systemctl stop aws-groundstation-agent # downgrade the rpm sudo yum downgrade ${MY_RPM_FILE_PATH} # check the new version has been installed correctly by comparing the agent version with the starting agent version yum info aws-groundstation-agent # reload the systemd configuration sudo systemctl daemon-reload # restart the agent sudo systemctl restart aws-groundstation-agent # check agent status systemctl status aws-groundstation-agent
AWS Ground Station 客服人員解除安裝
解除安裝代理程式將會是 rename /opt/aws/groundstation/etc/aws-gs-agent-config.json to /opt/aws/groundstation/etc/aws-gs-agent-config.json.rpmsave。再次在相同執行個體上安裝代理程式會寫入 aws-gs-agent-config.json 的預設值,而且需要更新為對應於您 AWS 資源的正確值。請參閱 客服人員組態檔案。
sudo yum remove aws-groundstation-agent
AWS Ground Station 客服人員狀態
客服人員狀態為作用中 (客服人員正在執行) 或非作用中 (客服人員已停止)。
systemctl status aws-groundstation-agent
輸出範例顯示代理程式已安裝、非作用中狀態 (已停止) 和已啟用 (啟動時的服務)。
aws-groundstation-agent.service - aws-groundstation-agent Loaded: loaded (/usr/lib/systemd/system/aws-groundstation-agent.service; enabled; vendor preset: disabled) Active: inactive (dead) since Thu 2023-03-09 15:35:08 UTC; 6min ago Docs: https://aws.amazon.com/ground-station/ Process: 84182 ExecStart=/opt/aws/groundstation/bin/launch-aws-gs-agent (code=exited, status=0/SUCCESS) Main PID: 84182 (code=exited, status=0/SUCCESS)
AWS Ground Station 客服人員RPM資訊
yum info aws-groundstation-agent
其輸出如下:
注意
“版本”可能根據客服人員發佈的最新版本而有所不同。
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Installed Packages Name : aws-groundstation-agent Arch : x86_64 Version : 1.0.2677.0 Release : 1 Size : 51 M Repo : installed Summary : Client software for AWS Ground Station URL : https://aws.amazon.com/ground-station/ License : Proprietary Description : This package provides client applications for use with AWS Ground Station