{"id":168,"date":"2019-02-24T20:06:47","date_gmt":"2019-02-24T12:06:47","guid":{"rendered":"http:\/\/b.yesiyu.top\/?p=168"},"modified":"2019-02-24T20:06:47","modified_gmt":"2019-02-24T12:06:47","slug":"vps%e5%ae%89%e8%a3%85%e4%ba%ba%e4%ba%ba%e5%bd%b1%e8%a7%86linux%e5%ae%a2%e6%88%b7%e7%ab%af%e8%b5%9a%e5%8f%96%e5%8c%ba%e5%9d%97%e9%93%becvnt%e8%99%9a%e6%8b%9f%e5%b8%81","status":"publish","type":"post","link":"https:\/\/b.yesiyu.top\/?p=168","title":{"rendered":"VPS\u5b89\u88c5\u4eba\u4eba\u5f71\u89c6linux\u5ba2\u6237\u7aef,\u8d5a\u53d6\u533a\u5757\u94feCVNT\u865a\u62df\u5e01"},"content":{"rendered":"\n<p>\u7b80\u4ecb\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"http:\/\/freetribe.me\/wp-content\/uploads\/2019\/01\/2019010811193251-1024x406.png\" alt=\"VPS\u5b89\u88c5\u4eba\u4eba\u5f71\u89c6linux\u5ba2\u6237\u7aef,\u8d5a\u53d6\u533a\u5757\u94feCVNT\u865a\u62df\u5e01\" class=\"wp-image-582\"\/><\/figure><\/div>\n\n\n\n<p>\u4eba\u4eba\u5f71\u89c6\u6700\u8fd1\u63a8\u51fa\u4e86\u533a\u5757\u94fe\u7684\u529f\u80fd\uff0c\u53ea\u8981\u5b89\u88c5\u4ed6\u5bb6\u7684\u5ba2\u6237\u7aef\uff0c\u5728\u4e0b\u8f7d\u89c6\u9891\u7684\u540c\u65f6\u53ef\u4ee5\u4e0a\u4f20\u8d5a\u53d6CVNT\u865a\u62df\u5e01\uff0c\u7406\u8bba\u4e0a\u4f60\u7684\u7535\u8111\u5c31\u53ef\u4ee5\u76f4\u63a5\u8d5a\u53d6\uff0c\u4f46\u662f\u76ee\u524d\u865a\u62df\u5e01\u7684\u4ef7\u683c\u672a\u77e5\uff0c\u7528\u672c\u673a\u7684\u7535\u8111\u6302\u673a\uff0c\u53ef\u80fd\u5e76\u4e0d\u5212\u7b97\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\uff0c\u53ef\u4ee5\u8003\u8651\u7528VPS\u6765\u6302\u673a\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">linux\u5ba2\u6237\u7aef\u5b89\u88c5\u6559\u7a0b<\/h2>\n\n\n\n<p>\u5b89\u88c5<br>\u8bf4\u660e\uff1a\u5b98\u65b9\u5ba2\u6237\u7aef\u53ea\u6709CentOS\u7cfb\u7edf\uff0c\u4e0d\u8fc7\u53d1\u73b0\u5ba2\u6237\u7aef\u4e5f\u80fd\u5728Debian\u3001Ubuntu\u4e0a\u4f7f\u7528\uff0c\u6240\u4ee5\u8fd9\u91cc\u5c31\u90fd\u5199\u4e0b\u6559\u7a0b\u3002<\/p>\n\n\n\n<p>\u53ea\u6d4b\u8bd5\u8fc7CentOS 7\u548cDebian 8+\uff0c\u7406\u8bba\u4e0aUbuntu 16+\u4e5f\u53ef\u4ee5\uff0c\u4e0d\u8fc7\u4e3a\u4e86\u7a33\u5b9a\u4f7f\u7528\uff0c\u8fd8\u662f\u5efa\u8bae\u4f18\u5148\u4f7f\u7528CentOS 7\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1\u3001\u5b89\u88c5\u4f9d\u8d56<\/h3>\n\n\n\n<p>#CentOS 7\u7cfb\u7edf<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>yum install make wget crontabs -y<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>#Debian\u3001Ubuntu\u7cfb\u7edf<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>apt install make cron -y<\/td><\/tr><\/tbody><\/table>\n\n\n\n<h3 class=\"wp-block-heading\">2\u3001\u5b89\u88c5RAR\u89e3\u538b\u652f\u6301<\/h3>\n\n\n\n<p>#32\u4f4d\u7cfb\u7edf<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>wget http:\/\/freetribe.me\/rar\/rarlinux-4.0.1.tar.gz<br>tar -zxvf rarlinux-4.0.1.tar.gz<br>cd rar<br>make<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>#64\u4f4d\u7cfb\u7edf<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>wget http:\/\/freetribe.me\/rar\/rarlinux-x64-5.3.0.tar.gz<br>tar -zxvf rarlinux-x64-5.3.0.tar.gz<br>cd rar<br>make<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6211\u4eec\u518d\u6e05\u7406\u4e0b\u65e0\u7528\u6587\u4ef6\uff0c\u4f7f\u7528\u547d\u4ee4\uff1a<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>cd ..<br>rm -rf rarlinux-*.tar.gz rar<\/td><\/tr><\/tbody><\/table>\n\n\n\n<h3 class=\"wp-block-heading\">3\u3001\u4e0b\u8f7d\u4eba\u4eba\u5f71\u89c6<\/h3>\n\n\n\n<p>#\u4e0b\u8f7d\u5ba2\u6237\u7aef<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>wget http:\/\/freetribe.me\/rar\/rrshareweb_linux.rar<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>#\u89e3\u538b<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>unrar x rrshareweb_linux.rar<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>#\u89e3\u538bCentOS 7\u538b\u7f29\u5305\uff0c\u8fd9\u91cc\u6d4b\u8bd5\u7684Debian\u3001Ubuntu\u90fd\u53ef\u4ee5\u4f7f\u7528\u8be5\u5305\uff0cCentOS 6\u7684\u6ca1\u8bd5\u8fc7<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>tar -zxvf rrshareweb_centos7.tar.gz<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>#\u5220\u9664\u65e0\u7528\u6587\u4ef6<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>rm -rf rrshareweb*.tar.gz rrshareweb_linux.rar WEB*.png<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>#\u8fd0\u884c\u5ba2\u6237\u7aef<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>cd rrshareweb<br>.\/rrshareweb<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\u7136\u540e\u8bbf\u95eehttp:\/\/ip:3001\u5373\u53ef\uff0c\u521d\u59cb\u5bc6\u7801\u4e3a\uff1a123456<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u6253\u4e0d\u5f00\u754c\u9762\uff0c\u90a3\u4e48\u9700\u8981\u5f00\u542f\u9632\u706b\u5899\u7aef\u53e3\u4e86\uff0c\u53ef\u4ee5\u5148\u4f7f\u7528Ctrl+C\u65ad\u5f00\u8fd0\u884c\uff0c\u7136\u540e\u4f7f\u7528\u547d\u4ee4\uff1a<\/p>\n\n\n\n<p>#CentOS 7\u7cfb\u7edf<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>firewall-cmd &#8211;zone=public &#8211;add-port=3001\/tcp &#8211;permanent<br>firewall-cmd &#8211;reload<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\u6700\u540e\u518d\u91cd\u542f\u8fd0\u884c\u5373\u53ef\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4\u3001\u5f00\u673a\u81ea\u542f<\/h3>\n\n\n\n<p>\u4e3a\u4e86\u6211\u4eec\u4f7f\u7528\u65b9\u4fbf\u4e9b\uff0c\u8fd9\u91cc\u53ef\u4ee5\u4f7f\u7528Systemctl\u5b88\u62a4\u8fdb\u7a0b\uff0c\u5e76\u52a0\u5165\u5f00\u673a\u81ea\u542f\u3002<\/p>\n\n\n\n<p>#\u4ee5\u4e0b\u662f\u4e00\u6574\u6761\u547d\u4ee4\uff0c\u4e00\u8d77\u590d\u5236\u5230SSH\u5ba2\u6237\u7aef\u8fd0\u884c<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>cat &gt; \/etc\/systemd\/system\/renren.service &lt;&lt;EOF<br>[Unit]<br>Description=RenRen server<br>After=network.target<br>Wants=network.target[Service]<br>Type=simple<br>PIDFile=\/var\/run\/renren.pid<br>ExecStart=\/root\/rrshareweb\/rrshareweb<br>RestartPreventExitStatus=23<br>Restart=always<br>User=root[Install]<br>WantedBy=multi-user.target<br>EOF<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\u5f00\u59cb\u542f\u52a8\uff1a<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>systemctl start renren<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\u67e5\u770b\u72b6\u6001\uff1a<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>systemctl status renren<\/td><\/tr><\/tbody><\/table>\n\n\n\n<p>\u5982\u679c\u663e\u793aactive(running)\u5373\u5f00\u542f\u6210\u529f\u3002<\/p>\n\n\n\n<p>\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\uff1a<\/p>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td>systemctl enable renren<\/td><\/tr><\/tbody><\/table>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528\u6559\u7a0b\uff1a<\/h2>\n\n\n\n<p>\u6253\u5f00ip:3001\u9996\u9875\u540e\uff0c<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1\u3001\u70b9\u51fb\u53f3\u4e0a\u89d2\u7684\u8bbe\u7f6e\uff0c\u66f4\u6539\u8def\u5f84\u4e3a\u771f\u5b9e\u5b58\u5728\u7684\u6587\u4ef6\u5939\uff0c<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">2\u3001\u66f4\u6539\u7528\u6237\u5bc6\u7801<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">3\u3001\u9000\u51fa\u8bbe\u7f6e\uff0c\u5728\u7528\u6237\u4e2d\u586b\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u5728&nbsp;<a href=\"http:\/\/zimuzu.io\/\">zimuzu.io<\/a>&nbsp;\u6ce8\u518c<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u4ecb\uff1a \u4eba\u4eba\u5f71\u89c6\u6700\u8fd1\u63a8\u51fa\u4e86\u533a\u5757\u94fe\u7684\u529f\u80fd\uff0c\u53ea\u8981\u5b89\u88c5\u4ed6\u5bb6\u7684\u5ba2\u6237\u7aef\uff0c\u5728\u4e0b\u8f7d\u89c6\u9891\u7684\u540c\u65f6\u53ef\u4ee5\u4e0a\u4f20\u8d5a\u53d6CVNT\u865a\u62df\u5e01\uff0c\u7406\u8bba &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/b.yesiyu.top\/?p=168\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cVPS\u5b89\u88c5\u4eba\u4eba\u5f71\u89c6linux\u5ba2\u6237\u7aef,\u8d5a\u53d6\u533a\u5757\u94feCVNT\u865a\u62df\u5e01\u201d<\/span><\/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-168","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168"}],"version-history":[{"count":1,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/168\/revisions"}],"predecessor-version":[{"id":169,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=\/wp\/v2\/posts\/168\/revisions\/169"}],"wp:attachment":[{"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/b.yesiyu.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}