Changes

Jump to: navigation, search

This Is Your Brain On Informatics: Common Pathnames

705 bytes removed, 02:29, 19 March 2014
no edit summary
===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
* stop
* force-reload
===Network File===<ppre>For our purposes, the only services that we know that this script can act on are as follows: /etc/network/interfaces</ppre>
* nginx===Important [[This Is Your Brain On Informatics: DenyHosts|Deny Hosts]] Files===* mysql* php5-fpm* denyhostsThe hosts.deny file is for blocking IP addresses.
===<pre>/etc/hosts.deny===</pre>
<p>This The hosts.allow file can be accessed via [[This Is Your Brain On Informatics: Pico|pico]] or any other text editor in order is for permanently giving access to manage the IP addresses that have been blocked from accessing your virtual machine (including your own if it accidentally happens). Once you are in the file, delete the IP address (possibly your IP address) at the bottom of the file that you no longer wish to restrict.</p>
===<pre>/etc/host.allow===</pre>
<p>
This is a file is similar in nature to the hosts.deny file in that IP addresses can be input into the file. However, IP addresses that are input into this file will be allowed access to the nginx web server and prevented from being automatically added to the hosts.deny file (this will still occur if the login attempts from the same IP address are exceeded.
</p>
{{This Is Your Brain On Informatics}}
 
[[Category:This Is Your Brain On Informatics]]
347
edits

Navigation menu