One of the best articles that discussed how to bind or listen on multiple IP addresses is this article:
Bind Multiple IP Addresses to a Single Network Interface Card (NIC)
Amazing! Useful!
One of the best articles that discussed how to bind or listen on multiple IP addresses is this article:
Bind Multiple IP Addresses to a Single Network Interface Card (NIC)
Amazing! Useful!
In the Traceback URL, I indicate the article I used to figure this out:
DATE_FORMAT(DATE_SUB(DATE_FORMAT(CURRENT_TIMESTAMP,'%Y%m01'), INTERVAL 1 MONTH),'%Y%m' )
Indicates one month prior to the current (in the form of YYYYMM).
Take a look at this mention in the MySQL Documentation for Date_Sub.
I wanted a Debian linux server to become a remote logger for another Linux host. I had edited this other remote host’s /etc/syslog.conf to have a copy of all its logs sent to a remote server.
However, this remote server was not accepting information as I had requested. Sure, I could restart the service with the desired parameters, but it wouldn’t stick around after a reboot!
That is, until I found this post on how to edit the parameters of the file in Debian Linux.
Simple as pi! Edit the /etc/default/syslogd file and include the -r parameter! Now I remote-log by default. Works great!
I also edited my /etc/hosts file to include the server I am receiving logs from. That way the syslog file is less messy!
This was pretty easy.
Step 1. Download the module you want from CPAN.org. In this example, it’s the File::Tail module. (The download link is the ‘download tar.gz’ link. Not the source.)
Step 2. Upload it to the destination server directly, OR use the SCP command to transfer it from another web-server to your destination server.
My preferred method was using wget at the middle server so I didn’t have to manually upload it to the middle server myself!
Step 3. On the destination server, which now has the file, run tar -xzf (filename) to extract the file from the tar and GZip. It will likely be in a folder that matches the name of the original tar.gz file.
Step 4. Go to the newly created folder (cd) and look at the readme file. (Try using the VIM editor by typing vim (filename) . When done reading, type :q to exit the file. ( :q! to exit without saving any accidental changes.) The readme file should have listed a few perl commands you should execute– usually ‘perl makefile.PL’, then ‘make’, then ‘make test’, then ‘make install’.
Step 5: After executing the commands requested by the readme file, you should be done! If you need to resolve any dependencies to install this package, go back to step #1 and try again with the new package.
Best of luck!