
Linux
煎鱼(EDDYCJY)
Hello World
展开
-
【Linux】生成SSH-KEY
一、检查SSH-KEY是否已经生成过ls -al ~/.ssh二、生成新的SSH-KEYssh-keygen -t rsa -C "your_email@example.com"三、生成成功Your identification has been saved in /root/.ssh/id_rsa.Your public key has been saved in /root/.ssh/id_r原创 2017-08-16 11:16:55 · 4232 阅读 · 0 评论 -
【CentOS】修改$PATH环境变量
一、当前会话有效1、直接运行命令export PATH=$PATH:/usr/local/node2、执行vi ~/.bash_profile修改文件中PATH一行,将/usr/local/node加入到PATH=$PATH:$HOME/bin一行之后二、永久有效执行并修改 vi /etc/profile,在文件末尾加上如下两行(DEMO)代码PATH=$PATH:/usr/local/nodee原创 2017-09-08 10:53:48 · 9364 阅读 · 1 评论 -
yum安装rsync
一、源主机yum -y install rsync二、目标主机(1)安装服务yum -y install rsync(2)修改配置项vi /etc/rsyncd.conf[module]path = /data/wwwroot/rsynclist = trueuid = rootgid = rootread only = falseauth users = websecrets fi原创 2017-12-20 11:47:42 · 12997 阅读 · 0 评论