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

From Pathology Education Instructional Resource
Jump to: navigation, search
(Created page with "==/etc/init.d/[service] [operation]== <p>This "pathname" is actually a script that causes the initiate daemon (that constantly stays in memory) to act on a service that has b...")
 
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
==/etc/init.d/[service] [operation]==
+
===Restarting, reloading, etc. a Service===
 +
<pre>/etc/init.d/[service] [operation]</pre>
  
<p>This "pathname" is actually a script that causes the initiate daemon (that constantly stays in memory) to act on a service that has been input.  After the service, an operation can be input in from one of the following: </p>
+
''Services''
 +
* nginx
 +
* mysql
 +
* php5-fpm
 +
* denyhosts
  
 +
''Operations''
 
* start
 
* start
 
* stop
 
* stop
Line 9: Line 15:
 
* force-reload
 
* force-reload
  
<p>For our purposes, the only services that we know that this script can act on are as follows:  </p>
+
===Network File===
 +
<pre>/etc/network/interfaces</pre>
 +
 
 +
===Important [[This Is Your Brain On Informatics: DenyHosts|Deny Hosts]] Files===
 +
The hosts.deny file is for blocking IP addresses.
  
* nginx
+
<pre>/etc/hosts.deny</pre>
* mysql
+
 
* php5-fpm
+
The hosts.allow file is for permanently giving access to IP addresses.
 +
 
 +
<pre>/etc/host.allow</pre>
 +
 
 +
 
 +
{{This Is Your Brain On Informatics}}
  
If you get locked out of your server, enter pico /etc/hosts.deny Once you are in that file, delete the IP address (your IP address) that has been blocked at the bottom of the file.
+
[[Category:This Is Your Brain On Informatics]]

Latest revision as of 02:29, 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