{"id":272,"date":"2018-03-07T00:00:12","date_gmt":"2018-03-06T16:00:12","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=272"},"modified":"2018-03-07T00:00:12","modified_gmt":"2018-03-06T16:00:12","slug":"console-vnc-remote-reinstall-centos-7","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/console-vnc-remote-reinstall-centos-7.html","title":{"rendered":"\u901a\u8fc7\u63a7\u5236\u53f0VNC\u91cd\u65b0\u5b89\u88c5CentOS7"},"content":{"rendered":"<p>\u5f53\u524d\u5f88\u591aVPS\u670d\u52a1\u5546\u90fd\u63d0\u4f9b\u7f51\u9875\u7248\u7684VNC\u63a7\u5236\u53f0\uff0c\u6211\u4eec\u5982\u679c\u9047\u5230\u95ee\u9898\uff0c\u4e0d\u9700\u8981\u518d\u7528VNC\u5ba2\u6237\u7aef\u8fde\u63a5\u5230VPS\uff0c\u53ea\u9700\u901a\u8fc7\u6d4f\u89c8\u5668\u5c31\u80fd\u76f4\u63a5\u5904\u7406\u76f8\u5173\u7684\u95ee\u9898\uff0c\u5c31\u8ddf\u8fdc\u7a0b\u684c\u9762\u4e00\u6837\uff0c\u5904\u7406\u95ee\u9898\u5982\u6b64\uff0c\u91cd\u65b0\u5b89\u88c5\u7cfb\u7edf\u4e5f\u53ef\u4ee5\uff0c\u5982\u679c\u89c9\u5f97\u6ca1\u6709\u6211\u4eec\u60f3\u8981\u7684\u7cfb\u7edf\uff0c\u53c8\u6216\u8005\u662f\u89c9\u5f97\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u7cfb\u7edf\u6a21\u677f\u6709\u95ee\u9898\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u82b1\u70b9\u65f6\u95f4\u81ea\u5df1\u624b\u52a8\u5b89\u88c5\u3002<br \/>\n<!--more--><br \/>\n\u5f53\u524d\u7f51\u4e0a\u5f88\u591a\u6559\u7a0b\uff0c\u90fd\u662f\u901a\u8fc7VNC\u5ba2\u6237\u7aef\u8fde\u63a5\u4e0a\u53bb\u91cd\u65b0\u5b89\u88c5\u7684\uff0c\u73b0\u5728\u662f21\u4e16\u7eaa\u65b0\u65f6\u4ee3\uff0c\u6211\u4eec\u6709VPS\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u7f51\u9875\u7248\u63a7\u5236\u53f0\uff0c\u8fc7\u7a0b\u6bd4\u4e4b\u524d\u7a0d\u5fae\u7b80\u5355\u4e00\u70b9\u3002<br \/>\n\u8fd9\u91cc\u8bf4\u7684\u63a7\u5236\u53f0\uff0c\u50cf<a href=\"https:\/\/cloudbool.com\/archive\/go\/vultr\">Vultr<\/a>\u3001<a href=\"https:\/\/cloudbool.com\/archive\/go\/digitalocean\">DigitalOcean<\/a>\u3001<a href=\"https:\/\/cloudbool.com\/archive\/go\/bwh1\">BandwagonHost<\/a>\u90fd\u63d0\u4f9b\u7f51\u9875\u7248\u7684\u63a7\u5236\u53f0\uff0c\u672c\u6587\u5c31\u662f\u7528<a href=\"https:\/\/cloudbool.com\/archive\/go\/digitalocean\">DigitalOcean<\/a>\u8fdb\u884c\u7684\u3002<br \/>\n\u9996\u5148\uff0cSSH\u767b\u5f55\u670d\u52a1\u5668\uff0c\u6211\u4eec\u9700\u8981\u4e0b\u8f7d\u6211\u4eec\u65b0\u5b89\u88c5\u7cfb\u7edf\u6240\u9700\u8981\u7684\u6587\u4ef6\uff1a<\/p>\n<pre><code>mkdir \/boot\/new_install\/\nwget https:\/\/mirrors.kernel.org\/centos\/7\/os\/x86_64\/isolinux\/vmlinuz\nwget https:\/\/mirrors.kernel.org\/centos\/7\/os\/x86_64\/isolinux\/initrd.img\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\u662f\u7f16\u8f91\u5f15\u5bfc\u76f8\u5173\u6587\u4ef6\uff1a<\/p>\n<pre><code>[root@BWH123 ~]# vim \/etc\/default\/grub\n<\/code><\/pre>\n<p>\u9996\u5148\u6211\u4eec\u8981\u66f4\u6539\u7684\u662f\u6587\u4ef6\u5f00\u5934\u7684<strong><em>timeout<\/em><\/strong>\u7684\u503c\uff0c\u6700\u597d\u8bbe\u7f6e\u5927\u4e00\u70b9\uff0c\u4e0d\u7136\u6211\u4eec\u4e00\u91cd\u542fVPS\u4e00\u95ea\u800c\u8fc7\u5c31\u8fdb\u5165\u7cfb\u7edf\u5f15\u5bfc\u4e86\uff0c\u5c31\u6ca1\u6cd5\u9009\u62e9\u6240\u9700\u8981\u7684\u542f\u52a8\u9879\u3002<\/p>\n<pre><code>timeout=60\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\u662f\u6dfb\u52a0\u76f8\u5e94\u7684\u542f\u52a8\u9879\uff0c\u7f16\u8f91\u6587\u4ef6<strong><em>\/etc\/grub.d\/40_custom<\/em><\/strong>\uff0c\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n<pre><code>vim \/etc\/grub.d\/40_custom\nmenuentry \"CentOS7 New Install\" {\n   set root=(hd0,1)\n   linux \/boot\/new_install\/vmlinuz headless ip=128.199.35.230 netmask=255.255.224.0 gateway=128.199.32.1 dns=8.8.8.8 ksdevice=eth0 method=https:\/\/mirrors.kernel.org\/centos\/7\/os\/x86_64\/ lang=en_US keymap=us\n   initrd \/boot\/new_install\/initrd.img\n}\n<\/code><\/pre>\n<p>\u4ee5\u4e0aIP\u3001\u7f51\u5173\u7b49\u4fe1\u606f\u53ef\u80fd\u53ef\u7528\u5982\u4e0b\u547d\u4ee4\u67e5\u770b\uff1a<\/p>\n<pre><code>cat \/etc\/sysconfig\/network-scripts\/ifcfg-eth0\ncat \/etc\/resolv.conf\n<\/code><\/pre>\n<p>\u7136\u540e\u91cd\u65b0\u751f\u6210\u5f15\u5bfc\u6587\u4ef6\uff1a<\/p>\n<pre><code>grub2-mkconfig -o \/boot\/grub2\/grub.cfg\n<\/code><\/pre>\n<p>\u91cd\u542f\u4e4b\u540e\uff0c\u9009\u62e9\u76f8\u5e94\u7684\u542f\u52a8\u9879\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u5b89\u88c5\u4e86\uff0c\u8ddf\u666e\u901a\u5b89\u88c5\u8fc7\u7a0b\u4e00\u6837\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u524d\u5f88\u591aVPS\u670d\u52a1\u5546\u90fd\u63d0\u4f9b\u7f51\u9875\u7248\u7684VNC\u63a7\u5236\u53f0\uff0c\u6211\u4eec\u5982\u679c\u9047\u5230\u95ee\u9898\uff0c\u4e0d\u9700\u8981\u518d\u7528VNC\u5ba2\u6237\u7aef\u8fde\u63a5\u5230VPS\uff0c\u53ea\u9700\u901a\u8fc7 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/console-vnc-remote-reinstall-centos-7.html\"> <span class=\"screen-reader-text\">\u901a\u8fc7\u63a7\u5236\u53f0VNC\u91cd\u65b0\u5b89\u88c5CentOS7<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/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":"","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":"","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":"","ast-page-background-enabled":"default","ast-page-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-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-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-gradient":""}},"ast-content-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-gradient":""},"tablet":{"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-gradient":""},"mobile":{"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-gradient":""}},"footnotes":""},"categories":[182],"tags":[17],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=272"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/272\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}