Yup, we are able to share NFS storage media easily across multiple existing linux system. Implementation of NFS can also vary, depending on the purpose or concept to be applied, for example, want to make a backup using that file upload or separation location, etc..
Its use is pretty easy, just install the kernel nfs server side and client side common nfs. Okay following step by step.
11 February 2013
10 February 2013
Format Date and Time in Shell Script
Sometimes on a system we need to create a log / history for the purpose of fault detection or the history of the system.
Nahhh, if you want to create a log using a shell script and want to mark the log file based on time, just use the date function in shell script. For example:
Log.sistem.online-echo $ - $ (date +% d-% m-% Y ---% T). Txt
will output:
log.sistem.online-- 26-06-2010 --- 19:11:23. txt
So, Good Work;-)
Nahhh, if you want to create a log using a shell script and want to mark the log file based on time, just use the date function in shell script. For example:
Log.sistem.online-echo $ - $ (date +% d-% m-% Y ---% T). Txt
will output:
log.sistem.online-- 26-06-2010 --- 19:11:23. txt
So, Good Work;-)
09 February 2013
Various Ways To Learn Linux User Activity
There are various ways that we can do related to user activity on linux systems that we maintain, it is usually important for systems that use linux-do (multiuser).
Okay, here are the things that I normally use:
08 February 2013
MySQL Database Replication for Multiple Databases (my.cnf configuration files)
Method used is the same as the one database replication, just multiply the row binlog_do_db.
Here's an example configuration:
server-id = 1 log_bin = /var/log/mysql/mysql-bin.log expire_logs_days = 10 max_binlog_size = 500M binlog_do_db = db01 binlog_do_db = db02 binlog_do_db = db03 binlog_do_db = db04 binlog_do_db = db05 binlog_do_db = db06 binlog_do_db = db07 binlog_do_db = db08 binlog_do_db = db09 binlog_do_db = dbxx
Here's an example configuration:
server-id = 1 log_bin = /var/log/mysql/mysql-bin.log expire_logs_days = 10 max_binlog_size = 500M binlog_do_db = db01 binlog_do_db = db02 binlog_do_db = db03 binlog_do_db = db04 binlog_do_db = db05 binlog_do_db = db06 binlog_do_db = db07 binlog_do_db = db08 binlog_do_db = db09 binlog_do_db = dbxx
The content of my.cnf on the slave side is like this:
07 February 2013
Monitoring package with pktstat
Curious to see what packages through a network interface card (NIC)? Or want
to see traffic passing on the network?
If the question is answered: Yes! then one of the tools (tools) that can be used is pktstat. A software that is simple, lightweight, running at the terminal (command)
It's easy, just install pktstat the linux distribution you are using, for example:
If the question is answered: Yes! then one of the tools (tools) that can be used is pktstat. A software that is simple, lightweight, running at the terminal (command)
It's easy, just install pktstat the linux distribution you are using, for example:
Subscribe to:
Posts (Atom)