<span id="Label3"></p><p><p>1. Place the application decompression into a directory.</p></p><p><p>Specific steps:</p></p><p><p>1.1 Create the directory, assuming the app package is App.war and the new directory SP is in the same directory</p></p><p><p>#mkdir SP</p></p><p><p>1.2 Renamed App.war to app.zip, which is to understand the pressure<br>#mv App.war App.zip</p></p><p><p>1.3 Extracting with Unzip<br>#unzip-d SP App.zip</p></p><p><p>This is the first step to Complete.</p></p><p><p></p></p><p><p>2. Modify the Liberty Boot server Server.xml</p></p><p><p>The server here refers to Liberty's default Server-defaultserver or User-built server, whichever is the location for Server.xml.</p></p><p><p>My own side of the path is/opt/ibm/websphere/liberty/usr/servers/defaultserver/ server.xml, here is the content, the bold section (application that line) is newly added, pointing to the first step to extract the Directory.</p></p><pre><span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">Server</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">Description</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "new server"</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span> <span style="color: #008000;"><span style="color: #008000;"><!--</span></span><span style="color: #008000;"><span style="color: #008000;">Enable features</span></span><span style="color: #008000;"><span style="color: #008000;"></span> -</span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">FeatureManager</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">feature</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span>jsp-2.2<span style="color: #0000ff;"><span style="color: #0000ff;"></</span></span><span style="color: #800000;"><span style="color: #800000;">feature</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"></</span></span><span style="color: #800000;"><span style="color: #800000;">FeatureManager</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span> <span style="color: #0000ff;"><span style="color: #0000ff;"><</span></span><span style="color: #800000;"><span style="color: #800000;">Httpendpoint</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">ID</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "defaulthttpendpoint"</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">Host</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">="*"</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">Httpport</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "9080"</span></span><span style="color: #ff0000;"><span style="color: #ff0000;">Httpsport</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">= "9443"</span></span> <span style="color: #0000ff;"><span style="color: #0000ff;">/></span></span> <strong><strong> <span style="color: #0000ff;"><</span><span style="color: #800000;">application </span> <span style="color: #ff0000;">ID</span><span style="color: #0000ff;">= "app"</span> <span style="color: #ff0000;"> name</span>= "<span style="color: #0000ff;">app"</span> <span style="color: #ff0000;"> type</span><span style="color: #0000ff;">= " War "</span> location<span style="color: #ff0000;"> </span><span style="color: #0000ff;">="/root/sp "</span><span style="color: #0000ff;">/></span> </strong></strong> <span style="color: #0000ff;"><span style="color: #0000ff;"></</span></span><span style="color: #800000;"><span style="color: #800000;">Server</span></span><span style="color: #0000ff;"><span style="color: #0000ff;">></span></span></pre><p><p>This way, when the server starts, the app will start up as Well.</p></p><p><p>You can use Http://serverip (hostname): 9080/app to access the app.</p></p><p><p></p></p><p><p>3. Start the server</p></p><p><p>After the last two steps are completed, you can go to/opt/ibm/websphere/liberty/bin and use</p></p><p><p>#./server start</p></p><p><p>#./server stop</p></p><p><p>To run the app or stop it, Defaultserver runs up,</p></p><p><p>Http://serverip (hostname): 9080 address will be able to see the introduction of liberty, but Http://serverip (hostname): 9080/app may not be able to access, then you need to reboot a bit, and then try Again.</p></p><p><p></p></p><p><p>June 12, 2015 9:29:13</p></p><p><p>A more secure way to publish apps to Wasliberty</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service