#JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
# echo "This is $(date +%y)year"
# echo "This is $(($(date +%y)+1)) year"
# 根据系统时间获取今年还剩下多少星期,已经过了多少星期
# year=$(date +%j)
# echo $(((365-$year)/7))
# 判定nginx进程是否存在,若不存在则自动拉起该进程
# nginx_process_num=$(ps -ef | grep nginx | grep -v grep | wc -l)
# if [ $nginx_process_num -eq 0 ];then
# systemctl start nginx
# fi