Linux 时间修改 不重启修改时区 一.修改linux的时间root使用date指令:date -s1.只修改日期,不修改时间,输入:Linux代码 1. date -s 2007-08-03 date -s 2007-08-03 2.只修改时间,输入:Linux代码 1. date -s 14:15:00 date -s 14:15:00 3.同时修改日期时间,注意要加双引号,日期与时间之间有一空格,输入:Linux代码 1. date -s "2007-08-03 14:15:00&quo…
第一种方法: 打开用户根目录下的: vi ~/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH alias php=/usr/local/php/bin/php 修改后保存 然后执…