标签:系统安装 log nbsp tab 执行 link 目录 win keygen
echo "nameserver 8.8.8.8" >>/etc/resolv.conf ping www.baidu.com
alias rm=‘rm -f‘ alias ...=‘cd ../..‘ alias ....=‘cd ../../../‘ alias egrep=‘egrep --color=auto‘ alias grep=‘grep --color=auto‘ alias l.=‘ls -d .* --color=auto‘ alias ll=‘ls -l --color=auto‘ alias ls=‘ls --color=auto‘ alias l=‘ls -AlF‘ #自定义回收站功能 myrm(){ D=/tmp/$(date +%Y%m%d%H%M%S); mkdir -p $D; mv "$@" $D && echo "moved to $D ok"; } alias rm=‘myrm‘
cd /etc/yum.repos.d wget http://mirrors.163.com/.help/CentOS6-Base-163.repo sed -i ‘s/$releasever/6/g‘ CentOS6-Base-163.repo chmod 644 CentOS6-Base-163.repo chown root.root CentOS6-Base-163.repo
yum install tree nmap sysstat lrzsz dos2unix -y 如果需要更新补丁则执行 yum update yum install gcc-c++ yum install -y pcre pcre-devel yum install -y zlib zlib-devel yum install -y openssl openssl-devel
ntpdate time.windows.com
使用ssk-keygen -t dsa生成密钥
1.进入用户的家目录
2.ssh-keygen -t dsa -->默认建立在当前用户的家目录
id_dsa -->私钥(钥匙) id_dsa.pub -->公钥(锁)
3.ll .ssh/
4.拷贝公钥给其他服务器
ssh-copy-id [-i [identity_file]] [user@]machine 22端口:ssh-copy-id -i .ssh/id_dsa.pub omc@192.168.25.137 其他的:ssh-copy-id -i .ssh/id_dsa.pub "-p 11544 omc@192.168.25.137"
1. 一把锁开多个钥匙
把id_dsa.pub 复制给各个服务器
2. 多个钥匙开一把锁
把id_dsa 传给各个服务器
把id_dsa 传给自己
# 1.NFS服务 echo -e "/etc/init.d/rpcbind start\n/etc/init.d/nfs start" >> /etc/rc.local chkconfig --level 35 rpcbind on chkconfig --level 35 nfs on # 2.Iptables echo " /etc/init.d/iptables stop" >> /etc/rc.local #3.nginx echo "cd /usr/local/nginx/sbin/;./nginx" >> /etc/rc.local
标签:系统安装 log nbsp tab 执行 link 目录 win keygen
原文地址:https://www.cnblogs.com/ftl1012/p/9310251.html