November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Changing temporary directory for sort – bash

I was sorting a very big file using Linux sort command and unfortunately the sort failed as there was not enough space on my /tmp directory.

$ sort -t “|” -k5 ka.log.32323112.out > ka.log.32323112.out sort: /tmp/sort1928700448: write error: No space left on device

just to mention, sort by default uses /tmp for temporaries.

So, how […]

Linux server found strange port handling methods

Generally in the beginning of the need for their own company’s IT environment to have a general understanding of 1-2 months after the need to open the port has a clear understanding of what the port is used to do, whether it is illegal open port , Their own mind to be the number of […]

RedHat7.3 under the network card Teaming binding

For servers, it is a common requirement to bind multiple network cards (link aggregation). Linux supports bonding in earlier versions of the kernel. It can connect multiple Ethernet interfaces to the network through bonding Up, on the one hand can provide greater network bandwidth, on the other hand can also provide better reliability and port […]

Too many open files

First, the problem found

Just on the line of the project, the front end of the use of LVS + Haproxy do load balancing, support for high concurrent traffic, but after a period of time is always a problem, view the log, found the following Too many open files problem.

May 12, 2017 12:49:20 AM […]

Hadoop 2.6.4 distributed cluster environment is built on the actual cluster .

Hadoop 2.6.4 distributed cluster environment is built on the actual cluster .

Cluster preparation

There are five machines that have changed the machine name for master, slaver1, slaver2, slaver3, slaver4, and set the face password ssh login. You can refer to here http://www.linuxidc.com/Linux/2016-02/128149.htm

Machine name Ip Master 192.168.1.1 Slaver1 192.168.1.2 Slaver2 192.168.1.3 Slaver3 192.168.1.4 Slaver4 […]

CentOS / RHEL 7 : Enable NTP to start at boot after fresh install (disable chrony)

Chrony is introduced as new NTP client to replace the ntp as the default time syncing package since RHEL7, so if you configure NTP during the installation process, it just enables the chronyd service, not ntpd service.

# systemclt status ntpd.service ntpd.service – Network Time Service Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled) Active: inactive (dead) Even when […]

CentOS / RHEL 7 : Configuring NTP using chrony

– Chrony provides another implementation of NTP. – Chrony is designed for systems that are often powered down or disconnected from the network. – The main configuration file is /etc/chrony.conf. – Parameters are similar to those in the /etc/ntp.conf file. – chronyd is the daemon that runs in user space. – chronyc is a command-line […]

CentOS / RHEL 7 : Tips on Troubleshooting NTP / chrony Issues

The chrony service does not change the time The often misconception is that the chrony service is setting the time to the one given by the NTP server. This is incorrect – what actually happens is that based on the answer from the NTP server, chrony just tells the system clock to go faster […]

RHEL 7 – RHCSA Notes – input / output redirection

Three standard file descriptors :

1. stdin 0 – Standard input to the program. 2. stdout 1 – Standard output from the program. 3. stderr 2 – Standard error output from the program. PURPOSE COMMAND redirect std output to filename > filename or 1> filename append std out to filename >> filename append std […]

CentOS / RHEL 7 : Configuring static IP adress using network interface configuration files

There are various ways you can configure an IP address in RHEL 7. The posts discusses the use of network interface configuration files to configure the IP address. Each physical network device has an associated network interface configuration file. Network interface configuration files are located in the /etc/sysconfig/network-scripts directory.

1. Use the ip addr command […]