摘要:
Linux crontab 的常用定时方式 0、crontab文件的格式 M H D m d cmd M: 分钟(0-59) H: 小时(0-23) D: 天(1-31) m: 月(1-12) d: 一星期内的天(0~6,0为星期天) cmd: 要运行的程序,程序被送入sh执行 1、crontab 阅读全文
摘要:
Linux 设置 Java 环境变量 1、编辑 /etc/profile 命令如下: vi /etc/profile 在文件最后添加如下内容: # /etc/profile # System wide environment and startup programs, for login setup 阅读全文
摘要:
Linux Java 环境变量永久生效 1、编辑 ~/.bash_profile 命令如下: vi ~/.bash_profile 内容修改如下: # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . 阅读全文