Running FTP server on unlix-like OS: ProFTPD server File Transfer Protocol (FTP) is a standard network protocol used to transfer files from one host to another host over a TCP-based network, such as the Internet or local nets. There are various ftp-services tou can run at your server among then proftpd, vsftpd, Pure-FTPd, ftpd(native, basic … Continue reading Running FTP server on unlix-like OS: ProFTPD server
Mysql master-slave replication with percona xtrabackup This replication will be seted up with Percona tools and xtrabackup. The replication in MySQL performs via binary logs. Replication is only asynchronous. In version Mysql-5.6 GTID (Global Transaction IDentifier) appeared. In theory replication is the process when master servers sends updates to slave server. Next I’m going to … Continue reading Mysql master-slave replication with percona xtrabackup
Linux iptables First off all we should set policy for our firewall: iptables -P Example:
iptables -P INPUT ACCEPT
To show current status of our firewall – iptables: NOTE: this doesn’t mean rules are in /etc/iptables.rules file.
iptables --list --line-numbers -n
Same, but a little shorter:
iptables -L -n --line-numbers
keys: -n – do not resolv service names -L / –list – lists rules … Continue reading Linux iptables
OS: FreeBSD Monitoring it the one of the important tools you’d must have running your servers. There are lots of monitoring tools among them zabbix, cacti, munin, etc. I’m going to show you the way you can bootstrap zabbix. The latest version you can find in your ports is 2.0.8. First off all keep your … Continue reading Zabbix 2.0 with zabbix-java-gateway
All UNIX-like operating systems such as FreeBSD, Redhat, CentOS, Debian allows you to set environment variables. This variables are used by system applications. To find the current values of all your environment variables and functions you can any shell you’d like: sh, zsh, bash, etc… Below the list of system variables:
PATH - Display lists directories the shell searches, for the commands.
HOME - User's home directory to store files.
TERM - Set terminal emulator being used by UNIX.
PS1 - Display shell prompt in the Bourne shell and variants.
MAIL - Path to user's mailbox.
TEMP - Path to where processes can store temporary files.
JAVA_HOME - Sun (now Oracle) JDK path.
ORACLE_HOME - Oracle database installation path.
TZ - Timezone settings
PWD - Path to the current directory.
HISTFILE - The name of the file in which command history is saved
HISTFILESIZE -The maximum number of lines contained in the history file
HOSTNAME -The system's host name
LD_LIBRARY_PATH -It is a colon-separated set of directories where libraries should be searched for.
USER -Current logged in user's name.
DISPLAY -Network name of the X11 display to connect to, if available.
SHELL -The current shell.
TERMCAP - Database entry of the terminal escape codes to perform various terminal functions.
OSTYPE - Type of operating system.
MACHTYPE - The CPU architecture that the system is running on.
EDITOR - The user's preferred text editor.
PAGER - The user's preferred text pager.
MANPATH - Colon separated list of directories to search for manual pages.
Shell builtin commands … Continue reading UNIX: show system variables