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  

RHEL 7 minimal install

1. during installation prompt, insert net.ifnames=0 to disable consistent network device naming

2. after first reboot of installation:

3. enable normal ethx interface name and disable ipv6 vi /etc/default/grub add net.ifnames=0,ipv6.disable=1 to GRUB_CMDLINE_LINUX line

grub2-mkconfig -o /boot/grub2/grub.cfg

4. disable UTC vi /etc/adjtime change UTC to LOCAl

5. disable selinux vi /etc/sysconfig/selinux SELINUX=disabled

[…]

RHEL 7 RESCUE MODE

To list all currently loaded service units: systemctl list-units –type service

To list all installed service units: systemctl list-unit-files –type service

Lists currently loaded target units: systemctl list-units –type target

Changes the current target: systemctl isolate name.target

systemctl get-default

systemctl set-default name.target

systemctl rescue (single user mode)

resetting root password: edit boot kernel line, insert […]

Install Java 1.8 and tomcat 8 on Redhat 7 centos 7

mkdir software

64 BIT # wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u40-b25/jdk-8u40-linux-x64.tar.gz”

# tar xzf jdk-8u40-linux-x64.tar.gz 32 BIT # wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u40-b25/jdk-8u40-linux-i586.tar.gz”

 

wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.tar.gz”

 

# tar xzf jdk-8u40-linux-i586.tar.gz mkdir /usr/java/

cd /usr/java/jdk1.8.0_40/ [root@cluster1 java]# ln -s /usr/java/jdk1.8.0_40/bin/java /usr/bin/java [root@cluster1 java]# alternatives […]

Red Hat Enterprise Linux 6 to 7

Red Hat Enterprise Linux 6 to 7? Migrating existing Red Hat Enterprise Linux installations to new major versions

Migration vs. Upgrade •migration: Moving a set of running services from one installed system to another, including all configuration aspects and data. •upgrade: Upgrading the installed software to newer revisions. This process may or may not include […]

How to mount inactive LVM partitions

Cause This situation occurs because the same UUID is attached to each LVM disk. Any LVM command, such as pvscan or lvscan, fails because of that error. You can find more details about Bug 454645 ” Bringing a snapshot of an LVM on-line on the same system” here: https://bugzilla.redhat.com/show_bug.cgi?id=454645 This situation can also occur when […]

DD command

* Example use of dd command to create an ISO disk image from a CD-ROM: dd if=/dev/cdrom of=/home/sam/myCD.iso bs=2048 conv=sync

*Using dd to wipe an entire disk with random data: dd if=/dev/urandom of=/dev/hda

*Using dd to clone a hard disk to another hard disk: dd if=/dev/ad0 of=/dev/ad1 bs=1M conv=noerror

*Duplicate a disk partition as a […]

REDHAT 7 NEW LOOK

[gview file=”http://rmohan.com/wp-content/uploads/2014/06/SHARE-Anaheim-2014-v3.pdf”]

RHCE EXAM POST – Apache

RHCE training notes – Apache

Linux under Apache, package is httpd. Httpd main distribution file is /etc/httpd/conf/httpd.conf, its configuration instructions are primarily divided into three parts : the control of the Apache server part ( the ‘global environment ); define the parameters of the primary or default services directive; virtual host setting parameters. Httpd plethora […]