ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
cat /tmp/id_dsa.pub >> authorized_keys
Centos6.x
centos7.x
systemctl stop firewalld.service
#停止firewall
systemctl disable firewalld.service
#禁止firewall开机启动
查看服务是否开机启动:
systemctl is-enabled firewalld.service;echo $?
vi /etc/selinux/config (SELINUX=disabled)
export PATH=$PATH:$JAVA_HOME/bin:
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
设置开机启动 chkconfig ntpd on centos7用 systemctl enable ntpd.service
Centos6.x service ntpt start
Centos7.x systemctl start ntpd.service
yum -y install ntpdate