linux date

echo "$(date +'%F %T') nginx down, keepalived will stop"

2022-02-09 15:55:33 nginx down, keepalived will stop

 

echo "`date "+%F  %H:%M:%S"`"

2022-02-10  19:04:47

posted @ 2022-02-09 15:59  tonggc1668  阅读(28)  评论(0编辑  收藏  举报