{"id":1160,"date":"2017-03-13T16:27:23","date_gmt":"2017-03-13T08:27:23","guid":{"rendered":"http:\/\/blog.amjet.biz\/IT\/?p=1160"},"modified":"2017-03-13T16:30:46","modified_gmt":"2017-03-13T08:30:46","slug":"centos-%e4%bb%a5-systemd-%e7%ae%a1%e7%90%86-wildfy","status":"publish","type":"post","link":"https:\/\/blog.amjet.biz\/IT\/?p=1160","title":{"rendered":"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy"},"content":{"rendered":"<p>WildFly \u662f JBoss AP \u7684\u5f8c\u7e7c\u7248\u672c\uff0c\u6df5\u6e90\u53ef\u4ee5\u53c3\u8003\u9019\u500b <a href=\"https:\/\/www.theregister.co.uk\/2013\/04\/22\/jboss_as_becomes_wildfly\/\" target=\"_blank\">\u7db2\u5740<\/a><\/p>\n<p>\u555f\u52d5 WildFly \u7684\u6307\u4ee4\u662f<br \/>\n&lt;WILDFLY_HOME&gt;\/bin\/standalone.sh<\/p>\n<p>\u505c\u6b62 WildFly \u7684\u6307\u4ee4\u662f<br \/>\n&lt;WILDFLY_HOME&gt;\/bin\/jboss-cli.sh &#8211;connect command=:shutdown<\/p>\n<p>\u4ee5\u524d\u7684 CentOS \u8981\u5beb\u4e00\u652f shell script \u63d0\u4f9b start, stop, restart \u7b49 method \u4f86\u7ba1\u7406\u670d\u52d9\uff0c\u73fe\u5728 systemd \u662f CentOS 7 \u7684\u9810\u8a2d\u670d\u52d9\u7ba1\u7406\u7a0b\u5f0f\uff0c\u4f5c\u6cd5\u8ddf\u904e\u53bb\u7248\u672c\u4e0d\u540c\u800c\u4e14\u7c21\u5316\u8a31\u591a\uff0c\u6b65\u9a5f\u5982\u4e0b<\/p>\n<p>1. \u5728 \/usr\/lib\/systemd\/system \u76ee\u9304\u5efa\u7acb wildfly.service \u6a94\u6848\u5167\u5bb9\u5982\u4e0b<\/p>\n<p>[Unit]<br \/>\nDescription=WildFly application server<br \/>\nAfter=network.target<\/p>\n<p>[Service]<br \/>\nType=simple<br \/>\nUser=jboss<br \/>\nGroup=jboss<br \/>\nExecStart=&lt;WILDFLY_HOME&gt;\/bin\/standalone.sh<\/p>\n<p># Give a reasonable amount of time for the server to start up\/shut down<br \/>\nTimeoutSec=300<\/p>\n<p>[Install]<br \/>\nWantedBy=multi-user.target<\/p>\n<p>2. \u5229\u7528\u4ee5\u4e0b\u6307\u4ee4\u555f\u7528 wildfly service<\/p>\n<p>systemctl enable wildfly<\/p>\n<p>3. \u7ba1\u7406 wildfly service<\/p>\n<p>systemctl start wildfly<br \/>\nsystemctl stop wildfly<\/p>\n<p>\u4ee5\u4e0a\u5167\u5bb9\u53c3\u8003\u9019\u500b <a href=\"http:\/\/kopibugis.blogspot.tw\/2015\/09\/adding-wildfly-as-systemd-service.html\" target=\"_blank\">\u7db2\u5740<\/a><\/p>\n<p>[ratings]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WildFly \u662f JBoss AP \u7684\u5f8c\u7e7c\u7248\u672c\uff0c\u6df5\u6e90\u53ef\u4ee5\u53c3\u8003\u9019\u500b \u7db2\u5740 \u555f\u52d5 WildFly \u7684\u6307\u4ee4\u662f &lt;WILDFLY_HOME&gt;\/bin\/standalone.sh \u505c\u6b62 WildFly \u7684\u6307\u4ee4\u662f &lt;WILDFLY_HOME&gt;\/bin\/jboss-cli.sh &#8211;connect command=:shutdown \u4ee5\u524d\u7684 CentOS \u8981\u5beb\u4e00\u652f shell script \u63d0\u4f9b start, stop, restart \u7b49 method \u4f86\u7ba1\u7406\u670d\u52d9\uff0c\u73fe\u5728 systemd \u662f CentOS 7 \u7684\u9810\u8a2d\u670d\u52d9\u7ba1\u7406\u7a0b\u5f0f\uff0c\u4f5c\u6cd5\u8ddf\u904e\u53bb\u7248\u672c\u4e0d\u540c\u800c\u4e14\u7c21\u5316\u8a31\u591a\uff0c\u6b65\u9a5f\u5982\u4e0b 1. \u5728 \/usr\/lib\/systemd\/system \u76ee\u9304\u5efa\u7acb wildfly.service \u6a94\u6848\u5167\u5bb9\u5982\u4e0b [Unit] Description=WildFly application server After=network.target [Service] Type=simple User=jboss Group=jboss ExecStart=&lt;WILDFLY_HOME&gt;\/bin\/standalone.sh # Give a reasonable amount of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,8],"tags":[133,150],"class_list":["post-1160","post","type-post","status-publish","format-standard","hentry","category-centos","category-java","tag-java","tag-wildfly"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"WildFly \u662f JBoss AP \u7684\u5f8c\u7e7c\u7248\u672c\uff0c\u6df5\u6e90\u53ef\u4ee5\u53c3\u8003\u9019\u500b \u7db2\u5740 \u555f\u52d5 WildFly \u7684\u6307\u4ee4\u662f \/bin\/standalone.sh \u505c\u6b62 WildFly \u7684\u6307\u4ee4\u662f \/bin\/jboss-cli.sh --connect command=:shutdown \u4ee5\u524d\u7684 CentOS \u8981\u5beb\u4e00\u652f shell script \u63d0\u4f9b start, stop, restart \u7b49 method \u4f86\u7ba1\u7406\u670d\u52d9\uff0c\u73fe\u5728 systemd \u662f CentOS 7 \u7684\u9810\u8a2d\u670d\u52d9\u7ba1\u7406\u7a0b\u5f0f\uff0c\u4f5c\u6cd5\u8ddf\u904e\u53bb\u7248\u672c\u4e0d\u540c\u800c\u4e14\u7c21\u5316\u8a31\u591a\uff0c\u6b65\u9a5f\u5982\u4e0b 1. \u5728 \/usr\/lib\/systemd\/system \u76ee\u9304\u5efa\u7acb wildfly.service \u6a94\u6848\u5167\u5bb9\u5982\u4e0b [Unit] Description=WildFly application server After=network.target [Service] Type=simple User=jboss Group=jboss ExecStart=\/bin\/standalone.sh # Give a reasonable amount of\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"vincent\"\/>\n\t<meta name=\"keywords\" content=\"wildfly,java,systemd\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/blog.amjet.biz\/IT\/?p=1160\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"AmJet IT Blog | for IT professionals\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy | AmJet IT Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"WildFly \u662f JBoss AP \u7684\u5f8c\u7e7c\u7248\u672c\uff0c\u6df5\u6e90\u53ef\u4ee5\u53c3\u8003\u9019\u500b \u7db2\u5740 \u555f\u52d5 WildFly \u7684\u6307\u4ee4\u662f \/bin\/standalone.sh \u505c\u6b62 WildFly \u7684\u6307\u4ee4\u662f \/bin\/jboss-cli.sh --connect command=:shutdown \u4ee5\u524d\u7684 CentOS \u8981\u5beb\u4e00\u652f shell script \u63d0\u4f9b start, stop, restart \u7b49 method \u4f86\u7ba1\u7406\u670d\u52d9\uff0c\u73fe\u5728 systemd \u662f CentOS 7 \u7684\u9810\u8a2d\u670d\u52d9\u7ba1\u7406\u7a0b\u5f0f\uff0c\u4f5c\u6cd5\u8ddf\u904e\u53bb\u7248\u672c\u4e0d\u540c\u800c\u4e14\u7c21\u5316\u8a31\u591a\uff0c\u6b65\u9a5f\u5982\u4e0b 1. \u5728 \/usr\/lib\/systemd\/system \u76ee\u9304\u5efa\u7acb wildfly.service \u6a94\u6848\u5167\u5bb9\u5982\u4e0b [Unit] Description=WildFly application server After=network.target [Service] Type=simple User=jboss Group=jboss ExecStart=\/bin\/standalone.sh # Give a reasonable amount of\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/blog.amjet.biz\/IT\/?p=1160\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-03-13T08:27:23+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-03-13T08:30:46+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy | AmJet IT Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"WildFly \u662f JBoss AP \u7684\u5f8c\u7e7c\u7248\u672c\uff0c\u6df5\u6e90\u53ef\u4ee5\u53c3\u8003\u9019\u500b \u7db2\u5740 \u555f\u52d5 WildFly \u7684\u6307\u4ee4\u662f \/bin\/standalone.sh \u505c\u6b62 WildFly \u7684\u6307\u4ee4\u662f \/bin\/jboss-cli.sh --connect command=:shutdown \u4ee5\u524d\u7684 CentOS \u8981\u5beb\u4e00\u652f shell script \u63d0\u4f9b start, stop, restart \u7b49 method \u4f86\u7ba1\u7406\u670d\u52d9\uff0c\u73fe\u5728 systemd \u662f CentOS 7 \u7684\u9810\u8a2d\u670d\u52d9\u7ba1\u7406\u7a0b\u5f0f\uff0c\u4f5c\u6cd5\u8ddf\u904e\u53bb\u7248\u672c\u4e0d\u540c\u800c\u4e14\u7c21\u5316\u8a31\u591a\uff0c\u6b65\u9a5f\u5982\u4e0b 1. \u5728 \/usr\/lib\/systemd\/system \u76ee\u9304\u5efa\u7acb wildfly.service \u6a94\u6848\u5167\u5bb9\u5982\u4e0b [Unit] Description=WildFly application server After=network.target [Service] Type=simple User=jboss Group=jboss ExecStart=\/bin\/standalone.sh # Give a reasonable amount of\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1160#article\",\"name\":\"CentOS \\u4ee5 systemd \\u7ba1\\u7406 wildfy | AmJet IT Blog\",\"headline\":\"CentOS \\u4ee5 systemd \\u7ba1\\u7406 wildfy\",\"author\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\"},\"datePublished\":\"2017-03-13T16:27:23+08:00\",\"dateModified\":\"2017-03-13T16:30:46+08:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1160#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1160#webpage\"},\"articleSection\":\"CentOS, Java, Java, WildFly\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1160#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5#listItem\",\"name\":\"Developer\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5#listItem\",\"position\":2,\"name\":\"Developer\",\"item\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8#listItem\",\"name\":\"Java\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8#listItem\",\"position\":3,\"name\":\"Java\",\"item\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1160#listItem\",\"name\":\"CentOS \\u4ee5 systemd \\u7ba1\\u7406 wildfy\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=5#listItem\",\"name\":\"Developer\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1160#listItem\",\"position\":4,\"name\":\"CentOS \\u4ee5 systemd \\u7ba1\\u7406 wildfy\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?cat=8#listItem\",\"name\":\"Java\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\",\"name\":\"AmJet Digital\",\"description\":\"for IT professionals\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2\",\"name\":\"vincent\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1160#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8c6bcd6e8e7e1c9bce74184354da4a5c294d71657c7abc161841c4799d1b1a46?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"vincent\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1160#webpage\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1160\",\"name\":\"CentOS \\u4ee5 systemd \\u7ba1\\u7406 wildfy | AmJet IT Blog\",\"description\":\"WildFly \\u662f JBoss AP \\u7684\\u5f8c\\u7e7c\\u7248\\u672c\\uff0c\\u6df5\\u6e90\\u53ef\\u4ee5\\u53c3\\u8003\\u9019\\u500b \\u7db2\\u5740 \\u555f\\u52d5 WildFly \\u7684\\u6307\\u4ee4\\u662f \\\/bin\\\/standalone.sh \\u505c\\u6b62 WildFly \\u7684\\u6307\\u4ee4\\u662f \\\/bin\\\/jboss-cli.sh --connect command=:shutdown \\u4ee5\\u524d\\u7684 CentOS \\u8981\\u5beb\\u4e00\\u652f shell script \\u63d0\\u4f9b start, stop, restart \\u7b49 method \\u4f86\\u7ba1\\u7406\\u670d\\u52d9\\uff0c\\u73fe\\u5728 systemd \\u662f CentOS 7 \\u7684\\u9810\\u8a2d\\u670d\\u52d9\\u7ba1\\u7406\\u7a0b\\u5f0f\\uff0c\\u4f5c\\u6cd5\\u8ddf\\u904e\\u53bb\\u7248\\u672c\\u4e0d\\u540c\\u800c\\u4e14\\u7c21\\u5316\\u8a31\\u591a\\uff0c\\u6b65\\u9a5f\\u5982\\u4e0b 1. \\u5728 \\\/usr\\\/lib\\\/systemd\\\/system \\u76ee\\u9304\\u5efa\\u7acb wildfly.service \\u6a94\\u6848\\u5167\\u5bb9\\u5982\\u4e0b [Unit] Description=WildFly application server After=network.target [Service] Type=simple User=jboss Group=jboss ExecStart=\\\/bin\\\/standalone.sh # Give a reasonable amount of\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?p=1160#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/?author=2#author\"},\"datePublished\":\"2017-03-13T16:27:23+08:00\",\"dateModified\":\"2017-03-13T16:30:46+08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#website\",\"url\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/\",\"name\":\"AmJet IT Blog\",\"description\":\"for IT professionals\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.amjet.biz\\\/IT\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy | AmJet IT Blog","description":"WildFly \u662f JBoss AP \u7684\u5f8c\u7e7c\u7248\u672c\uff0c\u6df5\u6e90\u53ef\u4ee5\u53c3\u8003\u9019\u500b \u7db2\u5740 \u555f\u52d5 WildFly \u7684\u6307\u4ee4\u662f \/bin\/standalone.sh \u505c\u6b62 WildFly \u7684\u6307\u4ee4\u662f \/bin\/jboss-cli.sh --connect command=:shutdown \u4ee5\u524d\u7684 CentOS \u8981\u5beb\u4e00\u652f shell script \u63d0\u4f9b start, stop, restart \u7b49 method \u4f86\u7ba1\u7406\u670d\u52d9\uff0c\u73fe\u5728 systemd \u662f CentOS 7 \u7684\u9810\u8a2d\u670d\u52d9\u7ba1\u7406\u7a0b\u5f0f\uff0c\u4f5c\u6cd5\u8ddf\u904e\u53bb\u7248\u672c\u4e0d\u540c\u800c\u4e14\u7c21\u5316\u8a31\u591a\uff0c\u6b65\u9a5f\u5982\u4e0b 1. \u5728 \/usr\/lib\/systemd\/system \u76ee\u9304\u5efa\u7acb wildfly.service \u6a94\u6848\u5167\u5bb9\u5982\u4e0b [Unit] Description=WildFly application server After=network.target [Service] Type=simple User=jboss Group=jboss ExecStart=\/bin\/standalone.sh # Give a reasonable amount of","canonical_url":"https:\/\/blog.amjet.biz\/IT\/?p=1160","robots":"max-image-preview:large","keywords":"wildfly,java,systemd","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1160#article","name":"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy | AmJet IT Blog","headline":"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy","author":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"publisher":{"@id":"https:\/\/blog.amjet.biz\/IT\/#organization"},"datePublished":"2017-03-13T16:27:23+08:00","dateModified":"2017-03-13T16:30:46+08:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=1160#webpage"},"isPartOf":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=1160#webpage"},"articleSection":"CentOS, Java, Java, WildFly"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1160#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT#listItem","position":1,"name":"Home","item":"https:\/\/blog.amjet.biz\/IT","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=5#listItem","name":"Developer"}},{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=5#listItem","position":2,"name":"Developer","item":"https:\/\/blog.amjet.biz\/IT\/?cat=5","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=8#listItem","name":"Java"},"previousItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=8#listItem","position":3,"name":"Java","item":"https:\/\/blog.amjet.biz\/IT\/?cat=8","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1160#listItem","name":"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy"},"previousItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=5#listItem","name":"Developer"}},{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1160#listItem","position":4,"name":"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy","previousItem":{"@type":"ListItem","@id":"https:\/\/blog.amjet.biz\/IT\/?cat=8#listItem","name":"Java"}}]},{"@type":"Organization","@id":"https:\/\/blog.amjet.biz\/IT\/#organization","name":"AmJet Digital","description":"for IT professionals","url":"https:\/\/blog.amjet.biz\/IT\/"},{"@type":"Person","@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author","url":"https:\/\/blog.amjet.biz\/IT\/?author=2","name":"vincent","image":{"@type":"ImageObject","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1160#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/8c6bcd6e8e7e1c9bce74184354da4a5c294d71657c7abc161841c4799d1b1a46?s=96&d=mm&r=g","width":96,"height":96,"caption":"vincent"}},{"@type":"WebPage","@id":"https:\/\/blog.amjet.biz\/IT\/?p=1160#webpage","url":"https:\/\/blog.amjet.biz\/IT\/?p=1160","name":"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy | AmJet IT Blog","description":"WildFly \u662f JBoss AP \u7684\u5f8c\u7e7c\u7248\u672c\uff0c\u6df5\u6e90\u53ef\u4ee5\u53c3\u8003\u9019\u500b \u7db2\u5740 \u555f\u52d5 WildFly \u7684\u6307\u4ee4\u662f \/bin\/standalone.sh \u505c\u6b62 WildFly \u7684\u6307\u4ee4\u662f \/bin\/jboss-cli.sh --connect command=:shutdown \u4ee5\u524d\u7684 CentOS \u8981\u5beb\u4e00\u652f shell script \u63d0\u4f9b start, stop, restart \u7b49 method \u4f86\u7ba1\u7406\u670d\u52d9\uff0c\u73fe\u5728 systemd \u662f CentOS 7 \u7684\u9810\u8a2d\u670d\u52d9\u7ba1\u7406\u7a0b\u5f0f\uff0c\u4f5c\u6cd5\u8ddf\u904e\u53bb\u7248\u672c\u4e0d\u540c\u800c\u4e14\u7c21\u5316\u8a31\u591a\uff0c\u6b65\u9a5f\u5982\u4e0b 1. \u5728 \/usr\/lib\/systemd\/system \u76ee\u9304\u5efa\u7acb wildfly.service \u6a94\u6848\u5167\u5bb9\u5982\u4e0b [Unit] Description=WildFly application server After=network.target [Service] Type=simple User=jboss Group=jboss ExecStart=\/bin\/standalone.sh # Give a reasonable amount of","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/blog.amjet.biz\/IT\/#website"},"breadcrumb":{"@id":"https:\/\/blog.amjet.biz\/IT\/?p=1160#breadcrumblist"},"author":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"creator":{"@id":"https:\/\/blog.amjet.biz\/IT\/?author=2#author"},"datePublished":"2017-03-13T16:27:23+08:00","dateModified":"2017-03-13T16:30:46+08:00"},{"@type":"WebSite","@id":"https:\/\/blog.amjet.biz\/IT\/#website","url":"https:\/\/blog.amjet.biz\/IT\/","name":"AmJet IT Blog","description":"for IT professionals","inLanguage":"en-US","publisher":{"@id":"https:\/\/blog.amjet.biz\/IT\/#organization"}}]},"og:locale":"en_US","og:site_name":"AmJet IT Blog | for IT professionals","og:type":"article","og:title":"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy | AmJet IT Blog","og:description":"WildFly \u662f JBoss AP \u7684\u5f8c\u7e7c\u7248\u672c\uff0c\u6df5\u6e90\u53ef\u4ee5\u53c3\u8003\u9019\u500b \u7db2\u5740 \u555f\u52d5 WildFly \u7684\u6307\u4ee4\u662f \/bin\/standalone.sh \u505c\u6b62 WildFly \u7684\u6307\u4ee4\u662f \/bin\/jboss-cli.sh --connect command=:shutdown \u4ee5\u524d\u7684 CentOS \u8981\u5beb\u4e00\u652f shell script \u63d0\u4f9b start, stop, restart \u7b49 method \u4f86\u7ba1\u7406\u670d\u52d9\uff0c\u73fe\u5728 systemd \u662f CentOS 7 \u7684\u9810\u8a2d\u670d\u52d9\u7ba1\u7406\u7a0b\u5f0f\uff0c\u4f5c\u6cd5\u8ddf\u904e\u53bb\u7248\u672c\u4e0d\u540c\u800c\u4e14\u7c21\u5316\u8a31\u591a\uff0c\u6b65\u9a5f\u5982\u4e0b 1. \u5728 \/usr\/lib\/systemd\/system \u76ee\u9304\u5efa\u7acb wildfly.service \u6a94\u6848\u5167\u5bb9\u5982\u4e0b [Unit] Description=WildFly application server After=network.target [Service] Type=simple User=jboss Group=jboss ExecStart=\/bin\/standalone.sh # Give a reasonable amount of","og:url":"https:\/\/blog.amjet.biz\/IT\/?p=1160","article:published_time":"2017-03-13T08:27:23+00:00","article:modified_time":"2017-03-13T08:30:46+00:00","twitter:card":"summary","twitter:title":"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy | AmJet IT Blog","twitter:description":"WildFly \u662f JBoss AP \u7684\u5f8c\u7e7c\u7248\u672c\uff0c\u6df5\u6e90\u53ef\u4ee5\u53c3\u8003\u9019\u500b \u7db2\u5740 \u555f\u52d5 WildFly \u7684\u6307\u4ee4\u662f \/bin\/standalone.sh \u505c\u6b62 WildFly \u7684\u6307\u4ee4\u662f \/bin\/jboss-cli.sh --connect command=:shutdown \u4ee5\u524d\u7684 CentOS \u8981\u5beb\u4e00\u652f shell script \u63d0\u4f9b start, stop, restart \u7b49 method \u4f86\u7ba1\u7406\u670d\u52d9\uff0c\u73fe\u5728 systemd \u662f CentOS 7 \u7684\u9810\u8a2d\u670d\u52d9\u7ba1\u7406\u7a0b\u5f0f\uff0c\u4f5c\u6cd5\u8ddf\u904e\u53bb\u7248\u672c\u4e0d\u540c\u800c\u4e14\u7c21\u5316\u8a31\u591a\uff0c\u6b65\u9a5f\u5982\u4e0b 1. \u5728 \/usr\/lib\/systemd\/system \u76ee\u9304\u5efa\u7acb wildfly.service \u6a94\u6848\u5167\u5bb9\u5982\u4e0b [Unit] Description=WildFly application server After=network.target [Service] Type=simple User=jboss Group=jboss ExecStart=\/bin\/standalone.sh # Give a reasonable amount of"},"aioseo_meta_data":{"post_id":"1160","title":null,"description":null,"keywords":[{"label":"WildFly","value":"WildFly"},{"label":"Java","value":"Java"},{"label":"systemd","value":"systemd"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-23 23:27:41","updated":"2025-06-05 09:46:40","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.amjet.biz\/IT\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.amjet.biz\/IT\/?cat=5\" title=\"Developer\">Developer<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.amjet.biz\/IT\/?cat=8\" title=\"Java\">Java<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCentOS \u4ee5 systemd \u7ba1\u7406 wildfy\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/blog.amjet.biz\/IT"},{"label":"Developer","link":"https:\/\/blog.amjet.biz\/IT\/?cat=5"},{"label":"Java","link":"https:\/\/blog.amjet.biz\/IT\/?cat=8"},{"label":"CentOS \u4ee5 systemd \u7ba1\u7406 wildfy","link":"https:\/\/blog.amjet.biz\/IT\/?p=1160"}],"_links":{"self":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/1160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1160"}],"version-history":[{"count":4,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/1160\/revisions"}],"predecessor-version":[{"id":1164,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=\/wp\/v2\/posts\/1160\/revisions\/1164"}],"wp:attachment":[{"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.amjet.biz\/IT\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}