Open main menu

CDOT Wiki β

Changes

OPS235 Lab 4 - CentOS7

24 bytes added, 08:14, 29 April 2015
no edit summary
#Use your '''centos2''' VM for this part.
<ol>
<li value="2">Use the '''man''' pages to learn about the '''service''' command.</li><li>Issue the following Linux command:
<ul>
<li><b><code><span style="color:#3366CC;font-size:1.2em;">service --status-all</span></code></b></li>
</li>
<li>Note the services that are currently running.</li>
<li>Use the command <b><code><span style="color:#3366CC;font-size:1.2em;">serviceiptables stop</span></code></b> command to stop the service named '''iptables'''</li> <li>Issue the <b><code><span style="color:#3366CC;font-size:1.2em;">service</span></code></b> Run a command to verify that this the '''iptables''' service has stopped.</li> <li>If you reboot now - the iptables service will be turned back on. We don't want it on though, it causes students headaches. To turn it off permanently we need to use the '''chkconfig ''' command:<br><b><code><span style="color:#3366CC;font-size:1.2em;">chkconfig iptables off</span></code></b></li>
<li>Reboot and confirm that it's no longer running.</li>
</ol>
13,420
edits