查看linux系统的开机时间/重启历史记录1.who -b命令[root@rusky opt]# who -b ---查看最后一次(上次)系统启动的时间 system boot Dec 27 05:06 2.who -r命令[root@rusky opt]# who -r ---查看最后一次(上次)系统启动的时间,及运行级别 run-level 5 Dec 27 05:06 3.last reboot命令 [root@rusky opt]# last reboot reboot system b
1.安装jdk,zookeeper就不说啦,自己搜索下. 2.开机自启动和注册为服务. (1)开机自启动:编辑/etc/rc.d/rc.local文件,添加zkServer.sh路径. vi /etc/rc.d/rc.local #!/bin/sh # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you