mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-11-30 10:58:14 +08:00
fix
This commit is contained in:
parent
a5b55e7fd1
commit
a99eaf3843
@ -65,8 +65,12 @@ function getPid() {
|
||||
fi
|
||||
echo "$JAVA_PID"
|
||||
}
|
||||
if [ ! -f "/usr/bin/lsb_release" ]; then
|
||||
echo "os name:$(cat /etc/redhat-release)"
|
||||
else
|
||||
echo "os name:$(/usr/bin/lsb_release -a | grep Description | awk -F : '{print $2}' | sed 's/^[ \t]*//g')"
|
||||
fi
|
||||
|
||||
echo "os name:$(/usr/bin/lsb_release -a | grep Description | awk -F : '{print $2}' | sed 's/^[ \t]*//g')"
|
||||
echo "os version:$(uname -r)"
|
||||
echo "hostname:$(hostname)"
|
||||
# 启动时间
|
||||
|
@ -41,6 +41,7 @@
|
||||
<p>系统名:{{ record.machineSsh && record.machineSsh.osName }}</p>
|
||||
<p>系统版本:{{ record.machineSsh && record.machineSsh.osVersion }}</p>
|
||||
<p>CPU型号:{{ record.machineSsh && record.machineSsh.osCpuIdentifierName }}</p>
|
||||
<p>主机名:{{ record.machineSsh && record.machineSsh.hostName }}</p>
|
||||
<p>开机时间:{{ formatDuration(record.machineSsh && record.machineSsh.osSystemUptime) }}</p>
|
||||
</template>
|
||||
{{ text || "未知" }}
|
||||
|
@ -41,6 +41,7 @@
|
||||
<p>系统名:{{ record.osName }}</p>
|
||||
<p>系统版本:{{ record.osVersion }}</p>
|
||||
<p>CPU型号:{{ record.osCpuIdentifierName }}</p>
|
||||
<p>主机名:{{ record.hostName }}</p>
|
||||
<p>开机时间:{{ formatDuration(record.osSystemUptime) }}</p>
|
||||
</template>
|
||||
{{ text || "未知" }}
|
||||
|
Loading…
Reference in New Issue
Block a user