Here are some of OpenVZ Command at Node VPS :
1 2 3 4 5 6 7 8 9 10 11 12 13 |
[root@node1 ~]# vzctl start 101 // start the VPS 101 [root@node1 ~]# vzctl stop 101 // stop 101 VPS [root@node1 ~]# vzctl restart 101 // restart 101 VPS [root@node1 ~]# vzctl enter 101 // enter into 101 VPS [root@101 ~]# exit // log out from 101 VPS [root@node1 ~]# vzlist // display the list of active VPS's [root@node1 ~]# vzlist -a // display the list of all VPS's [root@node1 ~]# vzctl destroy 101 // destroy the VPS (good idea to stop it first) [root@node1 ~]# vzcalc -v 101 // show resources usage on VPS [root@node1 ~]# vzctl exec 101 df -m // execute commands against the VPS(in this case 'df -m') [root@node1 ~]# vzyum 101 -y update // run yum update on VPS [root@node1 ~]# vzyum 101 -y install package // install package using yum on VPS [root@node1 ~]# vzrpm 101 -Uvh package // install package using rpm on VPS |