{"id":2910,"date":"2019-01-19T17:17:11","date_gmt":"2019-01-19T11:47:11","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=2910"},"modified":"2019-01-19T17:17:22","modified_gmt":"2019-01-19T11:47:22","slug":"vps-installation","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/vps-installation\/","title":{"rendered":"VPS Installation"},"content":{"rendered":"<p><strong>VPS INSTALLATION<\/strong><\/p>\n<p><strong>DATED :<\/strong> 23\/11\/2018<\/p>\n<p><strong>Step 1:<\/strong> First, choose what type of operating you are going to choose for you vps . In\u00a0\/vz\/template\/cache\/ of vz node it contains the list of operating you have to select one for you VPS.<\/p>\n<p><strong>Step 2 :<\/strong> Create a new container in your vz hardnode\u00a0 using<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">vzctl create 114 --ostemplate centos-7-x86_64 --config vswap-4g<\/code><\/p>\n<p>Here 114 is the ccid of your vps it is called as container in vz node. And the remove <code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">.tar.gz<\/code> from your operating system to create the new VPS.<\/p>\n<p><strong>Step 3 : <\/strong>Save the server in the name<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">vzctl set 114 --save --name VPS1<\/code><\/p>\n<p>Here we set the Name for vps as VPS1.<\/p>\n<p><strong>Step 4 :\u00a0 <\/strong>Set the onboot to yes when you install the new VPS<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">vzctl set 114 --save --onboot yes<\/code><\/p>\n<p><strong>Step 5 :<\/strong> Set the hostname for your vps during the installation of the process using this command in you vz node.<\/p>\n<p><span class=\"comment_content\"><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">vzctl set 114 --save --hostname ns1.example.com<\/code><\/span><\/p>\n<p>Here we gave ns1.example.com<\/p>\n<p><strong>Step 6 : <\/strong>Set the ip address for the vps using the below command.<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">vzctl set 114 --save --ipadd xxx.xxx.xxx.xxx<\/code><\/p>\n<p>Here you can you replace xxx.xxx.xxx.xxx with your ip address.<\/p>\n<p><strong>Step 7 :Set the name server<br \/>\n<\/strong><\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">vzctl set 114 --save --nameserver 8.8.8.8 --nameserver 8.8.4.4<\/code><\/p>\n<p>Here we are giving the global name server as 8.8.8.8 and 8.8.4.4<\/p>\n<p><strong>Step 8 :<\/strong> Set the CPU, RAM and\u00a0 Swap for\u00a0 the VPS using<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">vzctl set 114 --save --cpus 1\nvzctl set 114 --save --ram 2G\nvzctl set 114 --save --swap 2G<\/pre>\n<p>Here we set 1 cpu for this VPS.<\/p>\n<p><strong>Step 9 :<\/strong> Set the disk space for your vps using<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">vzctl set 114 --save --diskspace 10G<\/code><\/p>\n<p>Here we allocate 10GB for our VPS you can change this belong to your requirement.<\/p>\n<p><strong>Step 10 :<\/strong> After these start the vps using<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">vzctl start 114<\/code><\/p>\n<p><strong>Step 11 :<\/strong> And also enter into your vps, from vz node using<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">vzctl enter 114<\/code><\/p>\n<p><strong>Step 12 :<\/strong> Then set the password for the user root within the server using<\/p>\n<p><code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">passwd<\/code><\/p>\n<p>After completing these steps you can login to the server using ssh with the default ssh port number 22.<\/p>\n<p><span class=\"comment_content\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VPS INSTALLATION DATED : 23\/11\/2018 Step 1: First, choose what type of operating you are going to choose for you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[166,501,502],"class_list":["post-2910","post","type-post","status-publish","format-standard","hentry","category-cloud-aws","tag-vps","tag-vps-installation","tag-vps-setup","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-KW","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=2910"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2910\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=2910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=2910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=2910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}