Linux Tips
Fixing Mysql error «you haven't provided the mandatory server-id»
The following error was thrown while i was enabling mysql binary logs
1
2
3
4
Jul 3 07:07:44 localhost mysqld: 2 ... s. Restart the mysql once changes are made in the configuration file. You wont see this error once server-id is set properly.
How to hide nginx version?
With default Nginx configuration, Nginx response contains the Nginx Version number in the Headers , In the “Server” Header. N ... feel free to drop us a note if you have any queries or feedbacks using our comment form below. Always happy to help you ????
Error «No package mysql-server available» while Installing mysql
Mysql is a popular open source relational database management system (RDBMS). It is widely used and powering many popular we ... ut statement.
mysql>
Now we can run the mysql queries on mysql prompt. Please let us know incase you find any issue.
How to create/write Nrpe plugins using BASH/Python
NRPE is a Open source Project from Nagios , which allows you to remotely execute Nagios plugins on other Linux/Unix machines. ... openfiles=os.popen(“cat /proc/sys/fs/file-nr | awk ‘{print $1}'”).readline().strip()
openfiles=int(openfiles)
if openfiles
Docker container monitoring using Ctop
CTOP provides a linux “top” alike interface for monitoring the Docker containers running on the machine. It provides concise ... feel free to drop us a note if you have any queries or feedbacks using our comment form below. Always happy to help you ????
How to install readline and readline-devel on Ubuntu?
How to install “readline” and “readline-devel” on Ubuntu ?
The “Readline” library provides a set of functions for use by appl ... 2/2
Installed:
readline–devel.x86_64 0:6.2–9.el7
Dependency Installed:
ncurses–devel.x86_64 0:5.9–13.20130511.el7
How to install «development tools» for Ubuntu using apt-get?
In linux you will need to install ‘Development Tools’ group if you want to compile software and build new rpms. These tools ... xt git indent intltool libtool make patch patchutils rcs redhat–rpm–config rpm–build rpm–sign subversion swig systemtap
Comparing CollectD,Telegraf and NetData
Comparing CollectD,Telegraf and NetData
In this article we will compare three popular metrics collector agents which are Netd ... : Graphite, Opentsdb and Prometheus
Cons
1.Still in evolving phase, time-series backends support was added recently.
How to install «docker-compose» on Centos/linux?
Docker Compose is a tool for defining and running multi-container Docker applications. With “docker Compose”, you can use a s ... ory
(default: the path of the compose file)
Please let me know if you have any questions. Always happy to help
How to fix «rsync: Failed to exec ssh: No such file or directory»?
I was getting following error while trying to copy one file to another server using rsync
1
2
3
4
5
6
7
[root@te ... =======================================
Install 1 Package (+1 Dependent package)
After this rsync was working properly.
How to install docker-machine on Centos/Linux machine?
In this article we will explain how to install docker-machine on Centos/Linux machine
docker-machine is a command-line tool u ... local machines. Whatever command you run with “docker” will be executed on the new VM you created and not on your machine.
Fixed: «docker0: iptables: No chain/target/match by that name»
When i tried to launch a container, docker gave me this error
1
docker: Error response from daemon: failed to crea ... ker using
1
service docker restart
Now save iptables rules using command
1
iptables–save
How to install snmpwalk on Centos/Ubuntu?
Snmpwalk is a SNMP application that uses SNMP GETNEXT requests to query a network entity for a tree of information. It is a g ... _Community1 192.168.2.1 1.3.6.1.4.1.21067.2.1.2.4.2
In the above command “1.3.6.1.4.1.21067.2.1.2.4.2” is the OID.
How to Restrict ssh access for users from specific IP address?
How to restrict ssh access for a user from ip ?
sshd (OpenSSH Daemon) is the daemon program for ssh. With sshd server and s ...
To allow a user from a particular subnet , use the following
1
AllowUsers [email protected].*
Canning Recipes
Resolved «Unknown column 'password' in 'field list'»
I was trying to recover Mysql root password through mysql safe mode . When i tried to update the Mysql “user” table with new ... t;
Bye
Compared to MySQL 5.6, the changes are quite extensive in 5.7 . Please see the complete list of changes here
How to fix the error «TCP: time wait bucket table overflow»?
How to fix the error “TCP: time wait bucket table overflow” ?
I was getting the following error in the “/var/log/messages” on ... both “ipv4.tcp_tw_recycle” and “ipv4.tcp_tw_reuse” set to 1 now. I never seen those errors after making the above changes.
How to disable selinux on Centos7 machine without reboot/restart?
How to disable selinux on Centos machine without reboot/restart ?
In this article we will explain how to disable selinux on C ... d
Then, save and exit the file. This way we ensure that “selinux” will be disabled even after the next server reboot.
Running «sql slave skip counter» for mysql Multisource Replication
How to skip one transaction in one channel of a Mysql multisource replication setup?
Recently Mysql announced a new feature ... ion by skipping the transactions in a particular channel
Please let me know if you face any issue. Always Happy to help ????
Enable write graphite plugin in Collectd
Most of the linux distros come with collectd without “write_graphite” enabled, which is used for sending time series data to ... ll
make && make install
If there are no errors, you should be able to see Collectd installed under “/opt/collectd/”
Error g++: command not found
On Linux machine while running “make” command, following error came and make command exited
1
2
3
../lib ... kages such as supporting libraries. Most of these popular packages are available in yum repositories, making our life easy.