Posts

Showing posts with the label linux

libvirt frequently used commands summary virsh

libvirt frequently used commands summary virsh Let's summarize the frequently used commands for handling QEMU virtual machines with libvirt. Virsh define This command adds a virtual machine defined in  libvirt Domain XML Format (  https://libvirt.org/formatdomain.html  ) to libvirt. virsh define [libvirt 도메인 정의 xml 파일 경로] Virsh start start Use  to start a virtual machine  . virsh start [가상머신도메인 이름] View virtual machine list virsh list You can see the list of added virtual machines. virsh list -- all Virsh delete You can delete the added virtual machine. virsh delete [snapshot name] Pause / resume virtual machine virsh suspend, resume Use to pause the virtual machine  suspend . virsh suspend [snapshot name] resume Use  to resume a paused virtual machine  . virsh resume [snapshot name] Turn off the virtual machine virsh destroy Use to terminate the virtual machine you  destroy were using. virsh...

Installing CentOS7 NodeJS source compilation / v12.16.1 LTS

Image
0. Installation environment (g ++ 6.3.x) CentOS 7 has gcc version 4.8 installed by default.  However, nodejs build environment requires version 6.3 or higher. Please refer to the following link to install version 6.3. https://lucidmaj7.tistory.com/144   Installing CentOS7 GCC 6.x devtoolset-6 Installing CentOS7 GCC 6.x Installing GCC on CentOS 7 will install version 4.8.5.   In some cases, you may need to install a higher version.   The following is how to install GCC, G ++ 6.x version.   $ sudo yum install .. lucidmaj7.tistory.com   1. Download NodeJS source Connect to the NodeJS homepage and download the source of the LTS version using the wget command. https://nodejs.org/en/download/   Download |   Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org [root@localhost ~] # wget https: //nodejs.org/dist/v12.16.1/node-v12.16.1.tar.gz 2. Decompression Unzip ...

Installing CentOS7 GCC 6.x

Installing CentOS7 GCC 6.x Installing GCC on CentOS 7 will install version 4.8.5.  In some cases, you may need to install a higher version. The following is how to install GCC, G ++ 6.x version. $ sudo yum install centos- release -scl $ sudo yum install devtoolset- 6 After installation, enable gcc 6 with the command below.  The command below should be run every time you use gcc 6. $ scl enable devtoolset-6 bash You can check the installed version through the GCC command. [root@localhost ~] # gcc --version gcc (GCC) 6.3 .1 20170216 (Red Hat 6.3 .1 -3 ) Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@localhost ~] # g++ --version g++ (GCC) 6.3 .1 20170216 (Red Hat 6.3 .1 -3 ) Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. Ther...