{"id":266744,"date":"2023-03-09T14:12:32","date_gmt":"2023-03-09T06:12:32","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxwjyznbjndj.html"},"modified":"2023-03-09T14:12:32","modified_gmt":"2023-03-09T06:12:32","slug":"lxwjyznbjndj","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxwjyznbjndj.html","title":{"rendered":"Linux\u4e0bWebLogic\u5efa\u57df\u6307\u5357\uff1a8\u6b65\u6559\u4f60\u642d\u5efa\u6210\u529f"},"content":{"rendered":"

\u5728\u4f01\u4e1a\u7ea7\u5e94\u7528\u7cfb\u7edf<\/a>\u4e2d\uff0cWebLogic\u662f\u8bb8\u591a\u516c\u53f8\u9996\u9009\u7684\u670d\u52a1\u5668\u3002\u800c\u5728Linux<\/a>\u5e73\u53f0\u4e0a\u642d\u5efaWebLogic\u5efa\u57df\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u63d0\u9ad8\u7a33\u5b9a\u6027\u548c\u5b89\u5168\u6027\uff0c\u8fd8\u53ef\u4ee5\u964d\u4f4e\u6210\u672c\u3002\u672c\u6587\u5c06\u4ece8\u4e2a\u65b9\u9762\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Linux\u5e73\u53f0\u4e0a\u5efa\u7acbWebLogic\u57df\uff0c\u5e76\u63d0\u4f9b\u76f8\u5173\u6848\u4f8b\u548c\u6280\u5de7\u3002<\/p>\n

\u7b2c\u4e00\u6b65\uff1a\u5b89\u88c5Java\u73af\u5883<\/p>\n

\u5728Linux\u4e0a\u5b89\u88c5Java\u73af\u5883\u662fWebLogic\u5efa\u57df\u7684\u7b2c\u4e00\u6b65\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4<\/a>\u6765\u5b89\u88c5Java\uff1a<\/p>\n

sudo apt-get install openjdk-11-jdk<\/p>\n

\u6216\u8005<\/p>\n

sudo yum install java-11-openjdk-devel<\/p>\n

\u7b2c\u4e8c\u6b65\uff1a\u4e0b\u8f7d\u548c\u5b89\u88c5WebLogic<\/p>\n

\u5728Oracle\u5b98\u7f51\u4e0a\u4e0b\u8f7d\u9002\u5408Linux\u5e73\u53f0\u7684WebLogic\u5b89\u88c5\u5305\uff0c\u5e76\u6309\u7167\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9700\u8981\u9009\u62e9“Generic”\u6a21\u677f\u53ca\u76f8\u5e94\u7684\u7248\u672c\u53f7\u3002<\/p>\n

\u7b2c\u4e09\u6b65\uff1a\u521b\u5efa\u57df\u76ee\u5f55<\/p>\n

\u521b\u5efa\u4e00\u4e2a\u7a7a\u767d\u76ee\u5f55\u6765\u5b58\u50a8WebLogic\u57df\u3002\u4f8b\u5982\uff1a<\/p>\n

mkdir \/u01\/domains\/mydomain<\/p>\n

\u7b2c\u56db\u6b65\uff1a\u914d\u7f6e\u57df<\/p>\n

\u4f7f\u7528configure.sh\u811a\u672c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684WebLogic\u57df\u3002\u4f8b\u5982\uff1a<\/p>\n

\/u01\/oracle\/middleware\/wlserver\/common\/bin\/configure.sh<\/p>\n

\u5728\u914d\u7f6e\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u8bbe\u7f6e\u7ba1\u7406\u5458\u7528\u6237\u540d\u3001\u5bc6\u7801\u3001\u76d1\u542c\u5730\u5740\u3001\u7aef\u53e3\u7b49\u4fe1\u606f\u3002<\/p>\n

\u7b2c\u4e94\u6b65\uff1a\u542f\u52a8Admin Server<\/p>\n

Admin Server\u662f\u7ba1\u7406WebLogic\u57df\u7684\u6838\u5fc3\u7ec4\u4ef6linux \u547d\u4ee4\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u542f\u52a8Admin Server\uff1a<\/p>\n

\/u01\/domains\/mydomain\/startWebLogic.sh<\/p>\n

\u542f\u52a8\u6210\u529f\u540e\uff0c\u53ef\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95eeAdmin Console\u3002<\/p>\n

\u7b2c\u516d\u6b65\uff1a\u521b\u5efaManaged Server<\/p>\n

Managed Server\u662f\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u7684\u5b9e\u4f8b\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6765\u521b\u5efaManaged Server\uff1a<\/p>\n

\/u01\/oracle\/middleware\/wlserver\/common\/bin\/wlst.sh<\/p>\n

connect('weblogic','password','t3:\/\/localhost:7001')<\/p>\n

edit()<\/p>\n

startEdit()<\/p>\n

cmo.createServer('my_managed_server')<\/p>\n

cd('\/Servers\/my_managed_server')<\/p>\n

cmo.setListenAddress('myhost')<\/p>\n

cmo.setListenPort(8001)<\/p>\n

cmo.setMachine(getMBean('\/Machines\/my_machine'))<\/p>\n

cd('\/')<\/p>\n

assign('Server','my_managed_server','Machine','my_machine')<\/p>\n

save()<\/p>\n

activate()<\/p>\n

\u4ee5\u4e0a\u4ee3\u7801\u4e3awlst\u811a\u672c\u8bed\u8a00linux\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\uff0c\u7528\u4e8e\u4e0eWebLogic\u670d\u52a1\u5668\u4ea4\u4e92\u3002<\/p>\n

\u7b2c\u4e03\u6b65\uff1a\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f<\/p>\n

\u5728Managed Server\u4e0a\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u5c06\u5e94\u7528\u7a0b\u5e8f\u6587\u4ef6\u653e\u7f6e\u5230\u6307\u5b9a\u76ee\u5f55\u4e0b\uff08\u4f8b\u5982\/u01\/domains\/mydomain\/applications\uff09\u5e76\u5728Admin Console\u4e2d\u8fdb\u884c\u90e8\u7f72\u64cd\u4f5c\u3002<\/p>\n

\u7b2c\u516b\u6b65\uff1a\u76d1\u63a7\u548c\u8c03\u4f18<\/p>\n

\u5bf9\u4e8e\u5df2\u7ecf\u90e8\u7f72\u5b8c\u6210\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u76d1\u63a7\u548c\u8c03\u4f18\u4ee5\u786e\u4fdd\u5176\u9ad8\u6548\u7a33\u5b9a\u5730\u8fd0\u884c\u3002\u53ef\u4ee5\u4f7f\u7528JMX\u63a5\u53e3\u6216WLST\u811a\u672c\u7b49\u5de5\u5177\u8fdb\u884c\u76d1\u63a7\u548c\u8c03\u4f18\u3002<\/p>\n

\u603b\u7ed3\uff1a<\/p>\n

Linux WebLogic \u5efa\u57df\u662f\u4e00\u9879\u975e\u5e38\u91cd\u8981\u7684\u5de5\u4f5c\uff0c\u4e0d\u4ec5\u80fd\u591f\u63d0\u9ad8\u7cfb\u7edf\u6027\u80fd\u548c\u7a33\u5b9a\u6027linux weblogic \u5efa\u57df<\/strong>\uff0c\u8fd8\u80fd\u591f\u964d\u4f4e\u6210\u672c\u3002\u901a\u8fc7\u4ee5\u4e0a8\u4e2a\u65b9\u9762\u7684\u4ecb\u7ecd\uff0c\u76f8\u4fe1\u8bfb\u8005\u5df2\u7ecf\u5bf9\u5982\u4f55\u5728Linux\u5e73\u53f0\u4e0a\u5efa\u7acbWebLogic\u57df\u6709\u4e86\u66f4\u6df1\u5165\u7684\u4e86\u89e3\u3002\u5e0c\u671b\u8bfb\u8005\u80fd\u591f\u901a\u8fc7\u6b64\u6587\u5b66\u5230\u66f4\u591a\u5b9e\u7528\u77e5\u8bc6linux weblogic \u5efa\u57df<\/strong>\uff0c\u5e76\u5c06\u5176\u5e94\u7528\u4e8e\u5b9e\u9645\u5de5\u4f5c\u4e2d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u800c\u5728Linux\u5e73\u53f0\u4e0a\u642d\u5efaWebLogic\u5efa\u57df\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u63d0\u9ad8\u7a33\u5b9a\u6027\u548c\u5b89\u5168\u6027\uff0c\u8fd8\u53ef\u4ee5\u964d\u4f4e\u6210\u672c\u3002\u672c\u6587\u5c06\u4ece8\u4e2a\u65b9\u9762\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Linux\u5e73\u53f0\u4e0a\u5efa\u7acbWebLogic\u57df\uff0c\u5e76\u63d0\u4f9b\u76f8\u5173\u6848\u4f8b\u548c\u6280\u5de7\u3002\u5728Linux\u4e0a\u5b89\u88c5Java\u73af\u5883\u662fWebLogic\u5efa\u57df\u7684\u7b2c\u4e00\u6b65\u3002\u7b2c\u4e09\u6b65\uff1a\u521b\u5efa\u57df\u76ee\u5f55sh\u811a\u672c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684WebLogic\u57df\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-266744","post","type-post","status-publish","format-standard","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/266744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=266744"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/266744\/revisions"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=266744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=266744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=266744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}