{"id":95,"date":"2023-12-07T16:48:29","date_gmt":"2023-12-07T08:48:29","guid":{"rendered":"https:\/\/www.dragonpbs.cn\/?p=95"},"modified":"2023-12-07T16:48:29","modified_gmt":"2023-12-07T08:48:29","slug":"%e3%80%90%e5%b8%b8%e7%94%a8%e6%93%8d%e4%bd%9c%e3%80%91centos%e7%b3%bb%e7%bb%9f%e9%85%8d%e7%bd%ae%e8%bf%9c%e7%a8%8b%e6%a1%8c%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/wp.dragonpbs.cn\/?p=95","title":{"rendered":"\u3010\u5e38\u7528\u64cd\u4f5c\u3011CentOS\u7cfb\u7edf\u914d\u7f6e\u8fdc\u7a0b\u684c\u9762"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"wiz-toc-0-485197431\">\u4e00\u3001\u524d\u8a00<\/h2>\n\n\n\n<p>\u5f53\u524d\u7cfb\u7edf\u4f7f\u7528\u6700\u5c0f\u5316\u5b89\u88c5\u65b9\u5f0f\uff0c\u56e0\u4f7f\u7528\u9700\u6c42\u53d8\u66f4\uff0c\u9700\u8981\u4f7f\u7528\u56fe\u5f62\u5316\u754c\u9762\u64cd\u4f5c\uff0c\u6b64\u5904\u4ecb\u7ecd\u5982\u4f55\u5b89\u88c5\u56fe\u5f62\u5316\u754c\u9762\uff0c\u5e76\u914d\u7f6e\u8fdc\u7a0b\u684c\u9762<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"wiz-toc-1-115259184\">\u4e8c\u3001\u5b89\u88c5\u90e8\u7f72<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wiz-toc-2-482397129\">1\u3001\u5b89\u88c5\u56fe\u5f62\u5316\u754c\u9762<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5b89\u88c5Gnome\u5305<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>yum groupinstall \"GNOME Desktop\" \"Graphical Administration Tools\" -y<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u66f4\u65b0\u7cfb\u7edf\u8fd0\u884c\u7ea7\u522b<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>ln -sf \/lib\/systemd\/system\/runlevel5.target \/etc\/systemd\/system\/default.target<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8bbe\u7f6e\u9ed8\u8ba4\u4f7f\u7528root\u7528\u6237\u767b\u5f55<\/strong><br>\u4fee\u6539<code>\/etc\/gdm\/custom.conf<\/code>\u914d\u7f6e\u6587\u4ef6\uff0c\u6dfb\u52a0\u914d\u7f6e\u4fe1\u606f\u5982\u4e0b<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;daemon]\nAutomaticLoginEnable=True\nAutomaticLogin=roo<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u91cd\u542f\u7cfb\u7edf\uff0c\u9ed8\u8ba4\u542f\u52a8\u76f4\u63a5\u8fdb\u5165\u56fe\u5f62\u5316\u754c\u9762<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>reboot<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"wiz-toc-3-546818843\">2\u3001\u914d\u7f6e\u8fdc\u7a0b\u684c\u9762<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5b89\u88c5xdrp<\/strong><br>windows\u767b\u5f55\u9700\u8981\u5b89\u88c5xdrp\uff0c\u9700\u8981\u5148\u914d\u7f6eepel\u6e90\u4e4b\u540e\u65b9\u53ef\u5b89\u88c5xdrp<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>yum install -y epel-release \nyum install -y xrdp<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl start xrdp\nsystemctl enable xrdp<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5f00\u653e3389\u7aef\u53e3<\/strong><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>firewall-cmd --permanent --zone=public --add-port=3389\/tcp firewall-cmd --reload<\/code><\/pre>\n\n\n\n<p>xrdp\u9ed8\u8ba4\u4f7f\u75283389\u7aef\u53e3\uff0c\u67e5\u770b\u6b64\u65f6\u7aef\u53e3\u4f7f\u7528\u60c5\u51b5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;root@node208 ~]<em># lsof -i:3389<\/em>\nCOMMAND   PID USER   FD   TYPE DEVICE SIZE\/OFF NODE NAME\nxrdp    14555 root   11u  IPv4  33714      0t0  TCP *:ms-wbt-server (LISTEN)\nxrdp    14657 root   12u  IPv4  63173      0t0  TCP cpe-66-66-67-208.rochester.res.rr.com:ms-wbt-server-&gt;cpe-66-66-67-20.rochester.res.rr.com:52152 (ESTABLISHED)<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u8fdc\u7a0b\u8fde\u63a5\u65b9\u5f0f<\/strong><br>\u6b64\u65f6\u76f4\u63a5\u4f7f\u7528windows mstsc\u8fdc\u7a0b\u684c\u9762\u8fde\u63a5\u5373\u53ef<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u524d\u8a00 \u5f53\u524d\u7cfb\u7edf\u4f7f\u7528\u6700\u5c0f\u5316\u5b89\u88c5\u65b9\u5f0f\uff0c\u56e0\u4f7f\u7528\u9700\u6c42\u53d8\u66f4\uff0c\u9700\u8981\u4f7f\u7528\u56fe\u5f62\u5316\u754c\u9762\u64cd\u4f5c\uff0c\u6b64\u5904\u4ecb\u7ecd\u5982\u4f55\u5b89\u88c5\u56fe\u5f62\u5316\u754c\u9762\uff0c\u5e76\u914d\u7f6e\u8fdc\u7a0b\u684c\u9762<\/p>\n<p><a class=\"more-link\" href=\"https:\/\/wp.dragonpbs.cn\/?p=95\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wp.dragonpbs.cn\/index.php?rest_route=\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.dragonpbs.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.dragonpbs.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.dragonpbs.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.dragonpbs.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=95"}],"version-history":[{"count":1,"href":"https:\/\/wp.dragonpbs.cn\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":96,"href":"https:\/\/wp.dragonpbs.cn\/index.php?rest_route=\/wp\/v2\/posts\/95\/revisions\/96"}],"wp:attachment":[{"href":"https:\/\/wp.dragonpbs.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.dragonpbs.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.dragonpbs.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}