Saturday, 16 July 2011

VZCTL Configuration Commands

  • 1) vzctl set VPS_ID –hostname vps.domain.com –save: To set the Hostname of a VPS.
  • 2) vzctl set VPS_ID –ipadd 1.2.3.4 –save : To add a new IP to the hosting VPS.
  • 3) vzctl set VPS_ID –ipdel 1.2.3.4 –save : To delete the IP from VPS.
  • 4) vzctl set VPS_ID –userpasswd root:new_password –save : to reset root password of a VPS.
  • 5) vzctl set VPS_ID –nameserver 1.2.3.4 –save : To add the nameserver IP’s to the VPS.
  • 6) vzctl exec VPS_ID command : To run any command on a VPS from Node.
  • 6) vzyum VPS_ID install package_name : To install any package/Software on a VPS from Node.

            Here VPS_ID refers to the ID of the Particular VPS.

0 comments:

Post a Comment