Files
doc-exports/docs/bms/umn/en-us_topic_0083745261.html
2024-10-17 13:52:47 +00:00

27 lines
2.5 KiB
HTML

<a name="EN-US_TOPIC_0083745261"></a><a name="EN-US_TOPIC_0083745261"></a>
<h1 class="topictitle1">Step 3: Deploy an Application</h1>
<div id="body1510649203641"><p id="EN-US_TOPIC_0083745261__p14716322152713">This section describes how to deploy an application on a BMS.</p>
<div class="section" id="EN-US_TOPIC_0083745261__section1766432205115"><h4 class="sectiontitle">Install and Start Nginx</h4><ol id="EN-US_TOPIC_0083745261__ol17534101120159"><li id="EN-US_TOPIC_0083745261__li1653461119155">Run the <strong id="EN-US_TOPIC_0083745261__b186610221611">yum install nginx</strong> command to install Nginx and enter <strong id="EN-US_TOPIC_0083745261__b758617332812">y</strong> as prompted.<p id="EN-US_TOPIC_0083745261__p4262951163">If the information shown in the following figure is displayed, Nginx is installed successfully.</p>
<p id="EN-US_TOPIC_0083745261__p39647369169"><span><img id="EN-US_TOPIC_0083745261__image19964236121612" src="en-us_image_0177728508.png" title="Click to enlarge" class="imgResize"></span></p>
</li><li id="EN-US_TOPIC_0083745261__li6408658141513">Enter <strong id="EN-US_TOPIC_0083745261__b12244174217206">systemctl start nginx.service</strong> to start Nginx.<div class="note" id="EN-US_TOPIC_0083745261__note20425153814276"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0083745261__p12425938162710">This command applies to CentOS 7.4 64-bit, which is used as an example.</p>
</div></div>
</li><li id="EN-US_TOPIC_0083745261__li19286956131513">Enter <strong id="EN-US_TOPIC_0083745261__b151471049142119">wget http://127.0.0.1</strong> to test Nginx.<p id="EN-US_TOPIC_0083745261__p143047817224"><span><img id="EN-US_TOPIC_0083745261__image1630418852220" src="en-us_image_0177729189.png" title="Click to enlarge" class="imgResize"></span></p>
</li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0083745261__section363712231510"><h4 class="sectiontitle">Access the Default Web Page</h4><p id="EN-US_TOPIC_0083745261__p178319255511">Open a browser and enter http://<em id="EN-US_TOPIC_0083745261__i15213202192">BMS EIP</em> in the address box. If the Nginx welcome page is displayed, Nginx is installed successfully.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000002080466209.html">Purchasing and Logging In to a Linux BMS</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>