{"id":9167,"date":"2024-05-09T23:01:01","date_gmt":"2024-05-09T15:01:01","guid":{"rendered":""},"modified":"2024-05-09T23:01:01","modified_gmt":"2024-05-09T15:01:01","slug":"service\u670d\u52a1\u5668\u7cfb\u7edf,\u4fe1\u547cservice\u548cREIM\u670d\u52a1\u7aef\u5e2e\u52a9\u548c\u4f7f\u7528","status":"publish","type":"post","link":"https:\/\/mushiming.com\/9167.html","title":{"rendered":"service\u670d\u52a1\u5668\u7cfb\u7edf,\u4fe1\u547cservice\u548cREIM\u670d\u52a1\u7aef\u5e2e\u52a9\u548c\u4f7f\u7528"},"content":{"rendered":"
\u6ce8\uff1a\u539f\u6765\u5b89\u88c5PHP\u7248\u672c\u7684REIM\u670d\u52a1\u7aef\u9700\u8981\u5220\u9664\uff0c\u6709\u5b89\u88c5\u4fe1\u547cservice\u4e0b\u8f7d\u6e90\u7801\uff0c\u91cd\u542f\u670d\u52a1\u5c31\u53ef\u4ee5\uff0cOA\u7cfb\u7edf\u9700\u8981\u5347\u7ea7\u6700\u65b0\u3002<\/p>\n
\u4fe1\u547c\u670d\u52a1\u4f7f\u7528nodejs\u5f00\u53d1\u7684\u6709\u4ee5\u4e0b\u7684\u529f\u80fd\u3002<\/p>\n
1\u3001\u961f\u5217\u670d\u52a1\uff0c\u5f02\u6b65\u961f\u5217\uff0cREIM\u5373\u65f6\u901a\u4fe1\u3002<\/p>\n
2\u3001reim\u5373\u65f6\u901a\u4fe1\u7684\u670d\u52a1\u7aef\uff0c\u591a\u7aef\u540c\u65f6\u5728\u7ebf\u63a8\u9001\u3002<\/p>\n
3\u3001\u9700\u8981\u8ddfOA\u540c\u4e00\u4e2a\u670d\u52a1\u5668\u4e0b\u7684\uff0c\u5982\u679c\u7528\u5230oa\u4e0a\u6587\u4ef6\u4e0a\u4f20\u540c\u6b65\u5230\u4fe1\u547c\u6587\u4ef6\u7ba1\u7406\u5e73\u53f0\u4e0b\uff0c\u9700\u8981\u540c\u670d\u52a1\u5668\u3002<\/p>\n
\u4e00\u3001\u5b89\u88c5<\/p>\n
1\u3001windows64\u4f4d\u7248\u672c\uff0c\u4e0b\u8f7d\uff0c\u81ea\u5df1\u968f\u4fbf\u627e\u4e2a\u76ee\u5f55(\u4e0d\u80fd\u5728\u684c\u9762\u5e26\u7a7a\u683c\u548c\u4e2d\u6587)\u7684\u76ee\u5f55\u4e0b\u89e3\u538b\uff0c\u53cc\u51fb\u201c\u53cc\u51fb\u6211\u5b89\u88c5.vbs\u201d\uff0c\u6839\u636e\u63d0\u793a\u5b89\u88c5\uff0c\u89c2\u770b\u89c6\u9891\u5e2e\u52a9\u3002<\/p>\n
<\/p>\n
\u53cc\u51fb\u201cstart.bat\u201d\u51fa\u73b0\u4ee5\u4e0b\u754c\u9762\u5c31\u662f\u53ef\u4ee5\u7528\uff0c\u95ea\u9000\u4e86\u5c31\u662f\u4e0d\u80fd\u7528\u3002<\/p>\n
<\/p>\n
2\u3001Linux\u7248\u672c\uff0c\u4ee5\u4e0b\u662fcentos\u547d\u4ee4\u4f8b\u5b50\uff0c\u5176\u4ed6\u5e94\u8be5\u5927\u540c\u5c0f\u5f02\uff0c\u89c2\u770b\u89c6\u9891\u5e2e\u52a9\u3002<\/p>\n
\u5b89\u88c5node\u73af\u5883\uff0c\u5982\u679c\u4f60\u670d\u52a1\u5668\u5df2\u7ecf\u6709node\u4e86\u5c31\u4e0d\u8981\u5b89\u88c5\u8fd9\u4e2a\u4e86\uff0c\u5176\u4ed6linux\u5b89\u88c5node\u53ef\u81ea\u884c\u767e\u5ea6\uff0cnode\u7248\u672c\u4e0b\u8f7d\u3002<\/p>\n
cd \/home<\/p>\n
mkdir nodejs && cd nodejs<\/p>\n
wget https:\/\/npm.taobao.org\/mirrors\/node\/v10.6.0\/node-v10.6.0-linux-x64.tar.gz<\/p>\n
tar -xzvf node-v10.6.0-linux-x64.tar.gz && rm -f node-v10.6.0-linux-x64.tar.gz<\/p>\n
node-v10.6.0-linux-x64\/bin\/node -v \/\/\u67e5\u770b\u7248\u672c\uff0c\u68c0\u67e5node\u662f\u5426\u53ef\u7528<\/p>\n
\u5b89\u88c5\u4e0b\u8f7d\u4fe1\u547c\u670d\u52a1\u7684\u6587\u4ef6<\/p>\n
cd \/home<\/p>\n
mkdir reimservice && cd reimservice<\/p>\n
wget http:\/\/xinhu-1251238447.file.myqcloud.com\/file\/rockservice_linux.zip<\/p>\n
unzip -o rockservice_linux.zip && rm -f rockservice_linux.zip<\/p>\n
\u5982\u679c\u4f60\u670d\u52a1\u5668\u5df2\u7ecf\u6709node\u73af\u5883\u8def\u5f84\uff0c\u4f60\u9700\u8981\u5230install.php\u4e0b\u914d\u7f6e\u5bf9\u5e94\u8def\u5f84\u5982\u56fe\uff1a<\/p>\n
<\/p>\n
\u542f\u52a8<\/p>\n
php install.php \/\/\u521b\u5efa\u8fd0\u884c\u6587\u4ef6<\/p>\n
chmod 755 servicestart.sh \/\/\u5982\u65e0\u6743\u9650\u6267\u884c\u5c31\u8fd0\u884c\u8fd9\u4e2a<\/p>\n
chmod 755 servicestop.sh \/\/\u5982\u65e0\u6743\u9650\u6267\u884c\u5c31\u8fd0\u884c\u8fd9\u4e2a<\/p>\n
.\/servicestart.sh \/\/\u542f\u52a8\u670d\u52a1<\/p>\n
.\/servicestop.sh \/\/\u505c\u6b62\u670d\u52a1<\/p>\n
curl http:\/\/127.0.0.1:6553 \/\/\u5982\u8fd4\u56deok\uff0c\u8bf4\u660e\u670d\u52a1\u7aef\u542f\u52a8\u6210\u529f<\/p>\n
\u5f00\u673a\u542f\u52a8<\/p>\n
vim \/etc\/rc.d\/rc.local \/\/\u5728\u8fd9\u6587\u4ef6\u540e\u9762\u52a0\u5165<\/p>\n
\/home\/reimservice\/servicestart.sh \/\/\u8981\u4f60\u5b9e\u9645\u7684\u8def\u5f84<\/p>\n
chmod +x \/etc\/rc.d\/rc.local \/\/\u8d4b\u4e88\u53ef\u6267\u884c\u6743\u9650<\/p>\n
\u4e8c\u3001\u6d4b\u8bd5\u662f\u5426\u53ef\u7528<\/p>\n
1\u3001\u5230OA\u7cfb\u7edf\u4e0b\uff0c\u7cfb\u7edf\u2192\u5373\u65f6\u901a\u4fe1\u7ba1\u7406\u2192\u670d\u52a1\u5668\u8bbe\u7f6e\uff0c\u76f4\u63a5\u53bb\u70b9\u90a3\u6d4b\u8bd5\u6309\u94ae\u5c31\u53ef\u4ee5\uff0c\u4e0d\u8981\u7ba1\u5176\u4ed6\u7684\u3002<\/p>\n
<\/p>\n
\u539f\u521b\u6587\u7ae0\uff0c\u7981\u6b62\u8f6c\u8f7d\u590d\u5236\uff0c\u4fe1\u547cOA\u5b98\u7f51\u4fdd\u7559\u4e00\u5207\u77e5\u8bc6\u4ea7\u6743\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"service\u670d\u52a1\u5668\u7cfb\u7edf,\u4fe1\u547cservice\u548cREIM\u670d\u52a1\u7aef\u5e2e\u52a9\u548c\u4f7f\u7528\u6ce8\uff1a\u539f\u6765\u5b89\u88c5PHP\u7248\u672c\u7684REIM\u670d\u52a1\u7aef\u9700\u8981\u5220\u9664\uff0c\u6709\u5b89\u88c5\u4fe1\u547cservice\u4e0b\u8f7d\u6e90\u7801...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/9167"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=9167"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/9167\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=9167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=9167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=9167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}