
linux
huoliangwu
这个作者很懒,什么都没留下…
展开
-
集群配置ssh免密
集群SSH免密登录脚本#!/bin/bashyum -y install expectif [ -f /root/.ssh/id_rsa ]||[ -f id_rsa.pub ];then #判断是否有公密钥 continueelse #否则生产公密钥/usr/bin/expect <<EOF spawn ssh-keygen -t dsaexpect ":" {send "\n;"}#expect "exists" {send "y;"}expect ":" {s原创 2021-04-23 17:46:06 · 220 阅读 · 0 评论 -
CentOS安装使用MongoDB的最简单便捷方法
首先官网下载MongoMongoDB官方网站下载页面在里面选择对应的系统和需要的软件版本进行下载…方法二:YUM安装(最简单便捷)首先我们需要配置MongoDB的yum安装源sudo vi /etc/yum.repos.d/mongodb-org-3.4.repo没有这个文件会创建一个新文件[mongodb-org-3.4]name=MongoDB Repositorybase...原创 2019-01-22 15:02:00 · 430 阅读 · 0 评论 -
Linux vi/vim命令大全
命令历史以:和/开头的命令都有历史纪录,可以首先键入:或/然后按上下箭头来选择某个历史命令。启动vim在命令行窗口中输入以下命令即可$ vim //直接启动vim$ vim filename //打开vim并创建名为filename的文件文件命令打开单个文件$ vim fi...原创 2018-11-26 21:21:57 · 220 阅读 · 0 评论 -
Linux 各目录及各目录详细介绍
目录说明/bin存放二进制可执行文件(ls,cat,mkdir等),常用命令一般都在这里。/etc存放系统管理和配置文件/home存放所有用户文件的根目录,是用户主目录的基点,比如用户user的主目录就是/home/user/usr用于存放系统应用程序,比较重要的目录/usr/local 本地系统管理员软件安装目录(安装系统级的应用)。这是最庞大的目录...原创 2018-11-26 20:56:08 · 357 阅读 · 0 评论 -
centos 6.5 配置yum源
centos 6.5 配置yum源yum源国内镜像站点:阿里源 https://mirrors.aliyun.com/centos/7.3.1611/os/x86_64/清华大学https://mirror.tuna.tsinghua.edu.cn/centos/7.3.1611/os/x86_64/网易源http://mirrors.163.com/centos/7.3.1611/o...原创 2018-11-26 18:05:32 · 3563 阅读 · 4 评论