virsh xxx create create a domain from an XML file define define (but don't start) a domain from an XML file destroy destroy (stop) a domain undefine undefine a domain reboot reboot a domain shutdown gracefully shutdown a domain
@查看虚拟机
virsh list
[root@xxx ~]# virsh list
Id Name State
----------------------------------------------------
15 TEST0 running
16 TEST1 running
[root@xxx ~]#
# virsh pool-list
Name State Autostart
-------------------------------------------
default active yes
tmp active yes
# virsh pool-info tmp
Name: tmp
UUID: 5c6fe468-f0de-453d-a451-b92a31145658
State: running
Persistent: yes
Autostart: yes
Capacity: 493.98 GiB
Allocation: 454.59 GiB
Available: 39.39 GiB
如果 Autostart: no,执行 virsh pool-autostart 可以让它自启动
附:pool相关
Storage Pool (help keyword 'pool')
find-storage-pool-sources-as find potential storage pool sources
find-storage-pool-sources discover potential storage pool sources
pool-autostart autostart a pool
pool-build build a pool
pool-create-as create a pool from a set of args
pool-create create a pool from an XML file
pool-define-as define a pool from a set of args
pool-define define an inactive persistent storage pool or modify an existing persistent one from an XML file
pool-delete delete a pool
pool-destroy destroy (stop) a pool
pool-dumpxml pool information in XML
pool-edit edit XML configuration for a storage pool
pool-info storage pool information
pool-list list pools
pool-name convert a pool UUID to pool name
pool-refresh refresh a pool
pool-start start a (previously defined) inactive pool
pool-undefine undefine an inactive pool
pool-uuid convert a pool name to pool UUID
pool-event Storage Pool Events
@修改volume名称(已测试、非正式)
说明:没有找到修改volume的资料,在已拉起虚拟机的情况下,尝试了以下步骤可行
(1)将虚拟机关机,更新其xml文件中的volume名称
vim /etc/libvirt/qemu/.xml 更新source的内容
virsh define
# cd /etc/libvirt/qemu
# ll
total 16
drwxr-xr-x 2 root root 39 Mar 31 11:05 autostart
-rw------- 1 root root 4687 Mar 30 18:46 TEST0.xml
drwx------. 3 root root 42 Mar 20 2021 networks
-rw------- 1 root root 4693 Mar 31 11:05 TEST1.xml
# vim TEST0.xml -> 更新类似这行
# virsh define TEST0.xml
Domain TEST0 defined from TEST0.xml
# virsh --help
...
Storage Volume (help keyword 'volume')
vol-clone clone a volume.
vol-create-as create a volume from a set of args
vol-create create a vol from an XML file
vol-create-from create a vol, using another volume as input
vol-delete delete a vol
vol-download download volume contents to a file
vol-dumpxml vol information in XML
vol-info storage vol information
vol-key returns the volume key for a given volume name or path
vol-list list vols
vol-name returns the volume name for a given volume key or path
vol-path returns the volume path for a given volume name or key
vol-pool returns the storage pool for a given volume key or path
vol-resize resize a vol
vol-upload upload file contents to a volume
vol-wipe wipe a vol
Open Source Obfuscators
ProGuard
http://java-source.net/open-source/obfuscators/proguardProGuard is a free Java class file shrinker and obfuscator. It can detect and remove unused classes, fields, m
Maven简介
是什么?
Is a software project management and comprehension tool.项目管理工具
是基于POM概念(工程对象模型)
[设计重复、编码重复、文档重复、构建重复,maven最大化消除了构建的重复]
[与XP:简单、交流与反馈;测试驱动开发、十分钟构建、持续集成、富有信息的工作区]
功能:
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
前面3步应该没有问题,主要的问题是执行make的时候,出现了异常。
异常一:
make[2]: cc: Command not found
异常原因:没有安装g
nimbus结点配置(storm.yaml)信息:
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional inf