Showing posts with label Oracle Linux. Show all posts
Showing posts with label Oracle Linux. Show all posts

Friday, August 17, 2018

How to install Mysql8 on OEL7.5

How to install Mysql8 on OEL7.5

Login to the server:

wget https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
rpm -ivh <filename>
yum install mysql-community-server -y
systemctl enable mysqld.service
systemctl start mysqld
grep 'temporary password' /var/log/mysqld.log (for getting the temporary password)
/usr/bin/mysql_secure_installation

Tuesday, August 6, 2013

Who is eating my memory in linux

I have a OEL5.8 64bit having 16GB memory.
In free -m command i can see almost 15GB used, but no software are installed.

[root@Server-2 tmp]# ps axu | awk '{print $2, $3, $4, $11}' | head -1 && ps axu | awk '{print $2, $3, $4, $11}' | sort -k2 -nr |head -5
PID %CPU %MEM COMMAND
PID %CPU %MEM COMMAND
96 0.0 0.0 [scsi_eh_3]
95 0.0 0.0 [scsi_eh_2]
91 0.0 0.0 [scsi_eh_1]
9 0.0 0.0 [migration/2]

[root@Hawai-2 tmp]# ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -5
 0.1  0.0  32780  2608 iscsiuio
%MEM %CPU    VSZ   PID CMD
 0.0  0.0  90152 24214 sshd: root@pts/1
 0.0  0.0   8528  3151 /usr/bin/hidd --server
 0.0  0.0  84456  3494 /usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7

[root@Hawai-2 tmp]# /etc/init.d/iscsid status
iscsid (pid  2617) is running...
[root@Hawai-2 tmp]# /etc/init.d/iscsid stop
Stopping iSCSI daemon:
[root@Hawai-2 tmp]#                                        [  OK  ]
[root@Hawai-2 tmp]#

After this i have rebooted the machine. Checked the free -m i can see a lot of free memory in the box.

Monday, March 11, 2013

Yum not working in Oracle Linux

We have a new Oracle Linux 5.8 box. Yum is not working in that box.

[root@oraclelinux129 ~]# yum install compat-db
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
ULN support will be disabled.
Setting up Install Process
No package compat-db available.
Nothing to do

Fix :

cd /etc/yum.repos.d
wget http://public-yum.oracle.com/public-yum-el5.repo
 
I need to edit the repo file to set enabled=1 for the correct 
channel [ol5_u7_base] and then I can install the oracle-validated RPM 
using yum
 
yum install oracle-validated -y