低质量的社交,不如高质量的独处

随笔分类 -  Linux运维

摘要:分组 列出主机清单 自定义指定新的主机清单文件: 阅读全文
posted @ 2019-03-17 16:33 Eren.li 阅读(4776) 评论(0) 推荐(0)
摘要:[root@ftp:/root] > ansible ansible01 -u root -k -m yum -a 'name=vsftpd state=latest' SSH password: ansible01 | CHANGED => { "ansible_facts": { "pkg_mgr": "yum" }, "changed": tru... 阅读全文
posted @ 2019-03-17 16:25 Eren.li 阅读(759) 评论(0) 推荐(0)
摘要:[root@ftp:/root] > ansible ansible01 -u root -k -m shell -a 'hostname' SSH password: ansible01 | CHANGED | rc=0 >> ansible01 [root@ftp:/root] > ansible ansible01 -u root -k -m shell -a 'uptime... 阅读全文
posted @ 2019-03-17 16:11 Eren.li 阅读(6979) 评论(0) 推荐(0)
摘要:[root@ftp:/root] > ansible ansible01 -m ping ansible01 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added 'ansible01,192.168.31.1... 阅读全文
posted @ 2019-03-17 16:06 Eren.li 阅读(1149) 评论(0) 推荐(0)
摘要:[root@kvm-server ~]# systemctl status libvirtd.service ● libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Act... 阅读全文
posted @ 2019-03-10 18:52 Eren.li 阅读(1157) 评论(0) 推荐(0)
摘要:下载网站 Downloads - KVM http://www.linux-kvm.org/page/Downloads yum 安装: 手动安装驱动 挂载光盘 阅读全文
posted @ 2019-03-10 18:51 Eren.li 阅读(3235) 评论(0) 推荐(0)
摘要:virt-install \--name=centos6 \--disk path=/vm/centos69b-disk0.qcow2 \--vcpus=1 --ram=1024 \--cdrom=/ios/CentOS-6.9-x86_64-bin-DVD1.iso \--network netw 阅读全文
posted @ 2019-03-10 17:43 Eren.li 阅读(1589) 评论(0) 推荐(0)
摘要:[root@kvm-server ~]# mount -o username=user01,password=1234567890 //192.168.31.20/share /mnt/nas Couldn't chdir to /mnt/nas: No such file or directory [root@kvm-server ~]# [root@kvm-server ~]# mkdir... 阅读全文
posted @ 2019-03-10 16:38 Eren.li 阅读(1056) 评论(0) 推荐(0)
摘要:关闭防火墙 关闭SElinux 第一个桌面 192.168.31.140:1 阅读全文
posted @ 2019-03-10 15:51 Eren.li 阅读(494) 评论(0) 推荐(0)
摘要:服务器端:svnserver 安装主要步骤 yum install subversion rpm -ql subversion mkdir /application/svndata mkdir /application/svnpasswd svnadmin create /application/s 阅读全文
posted @ 2019-02-24 21:11 Eren.li 阅读(269) 评论(0) 推荐(0)
摘要:[root@ftp:/root] > lsof -i :22 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME sshd 1002 root 3u IPv4 29785 0t0 TCP *:ssh (LISTEN) sshd 1002 root 4u IPv6 29787 ... 阅读全文
posted @ 2019-02-24 13:14 Eren.li 阅读(350) 评论(0) 推荐(0)
摘要:登录dockerhub [root@riyimei-node1:/home] > docker login Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID 阅读全文
posted @ 2019-02-08 17:04 Eren.li 阅读(398) 评论(0) 推荐(0)
摘要:开启网卡:ifocnfig eth1 up点亮网卡ethtool eth1db2:~ # cat /etc/sysconfig/network/ifcfg-bond0 DEVICE='bond0' IPADDR='192.168.31.21' NETMASK='255.255.255.0' NETWORK='192.168.31.1' BROADCAST='192.168.31.255' S... 阅读全文
posted @ 2019-01-08 16:09 Eren.li 阅读(1025) 评论(0) 推荐(0)
摘要:[root@server0 ~]# ll total 24 -rw-------. 1 root root 8619 May 7 2014 anaconda-ks.cfg -rwxr-xr-x. 1 root root 336 Dec 24 00:11 batchusers drwxr-xr-x. 2 root root 6 Dec 16 21:06 Desktop drwxr-xr... 阅读全文
posted @ 2018-12-23 16:15 Eren.li 阅读(244) 评论(0) 推荐(0)
摘要:[root@server0 yum.repos.d]# yum-config-manager --add-repo=ftp://192.168.31.121/centos7u4Loaded plugins: langpacks, product-idadding repo from: ftp://1 阅读全文
posted @ 2018-12-23 14:46 Eren.li 阅读(8050) 评论(0) 推荐(0)
摘要:riyimei:~ # chage -E 2019/01/01 li Aging information changed. riyimei:~ # cat /etc/shadow |grep li liwm:$2y$10$IxjwbZinNZdtNKeK7iiXcex6uwr2IXuHUM2Ak4OJb3x400vZJ6gC2:17856:0:8:8:5:: li:$2y$10$Anz80EWI... 阅读全文
posted @ 2018-11-29 16:06 Eren.li 阅读(1386) 评论(0) 推荐(0)
摘要:在线添加新硬盘 ####将坏掉的设备删除lv镜像自动删除***重要一定要先将坏的硬盘解除vg 将新硬盘添加到lv镜像数据同步(可以不添加/dev/sdd1:lvconvert -m1 /dev/vg/lv /dev/sdc1 ) Redhat7.5 阅读全文
posted @ 2018-11-28 09:52 Eren.li 阅读(2794) 评论(0) 推荐(0)
摘要:[root@ftp:/home/tools/shell] > yum install sg3_utils* Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the co... 阅读全文
posted @ 2018-11-22 10:55 Eren.li 阅读(2192) 评论(0) 推荐(0)
摘要:chown:改变文件或目录的用户和用户组 chown [option] [OWNER][:[GROUP]] [file] chown [选项] [用户 : 用户组 ] [<文件或目录>] chown 用户 文件或目录 #<==权限用户 chown :组 文件或目录 #<==仅授权组 chown 用户 阅读全文
posted @ 2018-11-20 14:28 Eren.li 阅读(322) 评论(0) 推荐(0)
摘要:[root@linux-node1 ~]# w 22:16:45 up 24 days, 24 min, 2 users, load average: 0.28, 0.17, 0.15 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 23Oct18 23days 0.03s 0.03s -bash root pts/0 192.168.31.... 阅读全文
posted @ 2018-11-15 22:20 Eren.li 阅读(1142) 评论(0) 推荐(0)

liweiming0611@163.com
等待有三大特征:
清晰的目的、努力达成的过程、充满不确定性的结果
因上努力,果上随缘
求其上,得其中;求其中,得其下;求其下,无所得