This Is Your Brain On Informatics: Common Pathnames: Difference between revisions

From Pathology Education Instructional Resource
Jump to navigation Jump to search
Tikenn (talk | contribs)
Tikenn (talk | contribs)
No edit summary
Line 1: Line 1:
===Restarting, reloading, etc. a Service===
===Restarting, reloading, etc. a Service===
<pre>/etc/init.d/[service] [operation]</pre>
<pre>/etc/init.d/[service] [operation]</pre>


Line 15: Line 14:
* restart
* restart
* force-reload
* force-reload


===Network File===
===Network File===
<pre>/etc/network/interfaces</pre>
<pre>/etc/network/interfaces</pre>


===Important [[This Is Your Brain On Informatics: DenyHosts|Deny Hosts]] Files===
===Important [[This Is Your Brain On Informatics: DenyHosts|Deny Hosts]] Files===
The hosts.deny file is for blocking IP addresses.
The hosts.deny file is for blocking IP addresses.


<pre>/etc/hosts.deny</pre>
<pre>/etc/hosts.deny</pre>


The hosts.allow file is for permanently giving access to IP addresses.
The hosts.allow file is for permanently giving access to IP addresses.

Revision as of 02:25, 19 March 2014

Restarting, reloading, etc. a Service

/etc/init.d/[service] [operation]

Services

  • nginx
  • mysql
  • php5-fpm
  • denyhosts

Operations

  • start
  • stop
  • reload
  • restart
  • force-reload

Network File

/etc/network/interfaces

Important Deny Hosts Files

The hosts.deny file is for blocking IP addresses.

/etc/hosts.deny

The hosts.allow file is for permanently giving access to IP addresses.

/etc/host.allow