随笔分类 - Linux运维
摘要:分组 列出主机清单 自定义指定新的主机清单文件:
阅读全文
摘要:[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...
阅读全文
摘要:[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...
阅读全文
摘要:[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...
阅读全文
摘要:[root@kvm-server ~]# systemctl status libvirtd.service ● libvirtd.service - Virtualization daemon Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) Act...
阅读全文
摘要:下载网站 Downloads - KVM http://www.linux-kvm.org/page/Downloads yum 安装: 手动安装驱动 挂载光盘
阅读全文
摘要: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
阅读全文
摘要:[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...
阅读全文
摘要:关闭防火墙 关闭SElinux 第一个桌面 192.168.31.140:1
阅读全文
摘要:服务器端:svnserver 安装主要步骤 yum install subversion rpm -ql subversion mkdir /application/svndata mkdir /application/svnpasswd svnadmin create /application/s
阅读全文
摘要:[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 ...
阅读全文
摘要:登录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
阅读全文
摘要:开启网卡: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...
阅读全文
摘要:[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...
阅读全文
摘要:[root@server0 yum.repos.d]# yum-config-manager --add-repo=ftp://192.168.31.121/centos7u4Loaded plugins: langpacks, product-idadding repo from: ftp://1
阅读全文
摘要: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...
阅读全文
摘要:在线添加新硬盘 ####将坏掉的设备删除lv镜像自动删除***重要一定要先将坏的硬盘解除vg 将新硬盘添加到lv镜像数据同步(可以不添加/dev/sdd1:lvconvert -m1 /dev/vg/lv /dev/sdc1 ) Redhat7.5
阅读全文
摘要:[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...
阅读全文
摘要:chown:改变文件或目录的用户和用户组 chown [option] [OWNER][:[GROUP]] [file] chown [选项] [用户 : 用户组 ] [<文件或目录>] chown 用户 文件或目录 #<==权限用户 chown :组 文件或目录 #<==仅授权组 chown 用户
阅读全文
摘要:[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....
阅读全文

浙公网安备 33010602011771号