Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install Linux CentOS 6.5 on USB disk and encounter trouble 64-bit operating system and disable ipv6, CentOS7 uninstall OpenJDK and install Oracle JDK

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Method 1:

Windows platform:

1. Open iso with UltraISO (e.g. CentOS-6.5-x86_64-bin-DVD1.iso)

two。 Then click "start"-> "write hard disk image", the hard drive is your U disk, the image file installation CD iso, write mode is USB-HDD+, click the "write" button. When you are finished, install the u-disk and it will be done.

Since mine is UltraISO (v9.3) and USB-HDD+ is written, I have not tested whether this is successful, as shown in the following figure:

Note: some Internet users need to use high-board UltraISO (v9.6), written as USB-HDD+ v2, as shown below:

According to my test: if I burn it to USB-HDD+ with centos6.4,ultraISO, I can still install it successfully with a U disk. You don't need to use centos6.5 for online legends, and you need to burn it to USB-HDD+ v2 with a higher version of ultraISO. So I venture to guess that all the places below that apply to centos6.5 also apply to centos6.4.

Method 2:

Linux platform:

Use the dd command to write the iso file to U disk.

Dd if=iso file of= U disk. (e. G. dd if=/CentOS-6.5-x86_64-bin-DVD1.iso of=/dev/sdb1)

Note: the dd command does not display the replication status after running. To check the replication status, you can open another terminal and enter "while killall-USR1 dd; do sleep 5; done" to view the replication status.

As shown below:

Method 3:

Windows platform:

1. First, download the CentOS-6.5-x86_64-bin-DVD1.iso file on another computer after the installation of the V2014 Super installed version of the Old Maomao USB disk tool is successful.

two。 After the download is complete, insert the USB disk into the computer and make sure that the data in the USB disk have been backed up because you need to format this USB disk, open the old Mao Tao U disk tool that has just been successfully installed, select the "ISO mode" below, then browse the CentOS6.5 ISO file that you just downloaded, and then click "one click to make a USB boot disk" to wait for the production to be completed. As shown below:

The above methods are 64-bit and 32-bit take-all. I installed 64-bit.

Note: it is said that this method can only be used from CentOS6.5, and versions 6. 4 and below will have to use the old method.

Method 4:

First of all, make the USB disk into a linux boot disk. There are many software about this on the Internet, and I use WinSetupFromUSB software here.

This software can install both windows and linux. You can also search for tutorials on the Internet for specific steps.

After the installation of the USB disk linux, let's now set up the BIOS of the server to boot the USB disk. After the BIOS is set up, start booting the system from the USB flash drive. As shown below:

Be sure to select "Hard drive" in the installation type, because the USB flash drive belongs to Hard drive. As shown below:

Select the partition where the USB disk is located in this option, as shown below:

Then the system can be installed as usual:

You can see here that there are currently two hard drives, sdb and sdc. Needless to say, Sdb is the hard drive of this server, and sdc is the USB disk. As shown below:

Start partitioning:

Note that the system installs the system boot boot loader on the sdc partition, the USB disk, by default. As shown below:

It is certainly not possible to install boot loader to a flash drive, because the system cannot find a boot after unplugging the flash drive after the system has been installed. So to modify the location of the boot loader installation, click "change device", as shown below:

Just change it to sdb, as shown below:

After the repair is completed, continue to install the system:

Sometimes there will be the following failure: after installing Centos on U disk, it is found that you can not enter the system by unplugging the U disk, and you can boot into the system normally after plugging in U disk. Online search found that the system boot files are installed on the U disk, resulting in the problem.

The solution is as follows:

1. After entering centos, open the terminal and use the root user to enter grub mode.

# grub

Grub > find / grub/stage1

Error 15: File not found

This is from my computer. Type it again.

Grub > find / boot/grub/stage1 find stage1

Find / boot/grub/stage1 find stage1

(hd0,0)

two。 Install the grub of CentOS to MBR

Grub > root (hd0,0)

Grub > setup (hd0)

Here is the same as the one found in the find above. Hd0 indicates the first hard disk 0 represents the first partition.

3. Restart after installation

Grub > reboot

(note: this is the reboot in grub. Instead of reboot the entire CentOS system.)

4. Finally, modify / boot/grub/grub.conf with vim, change all (hd0,0) to the same as the previous find found, title others to title windowsXP, my XP system is in the first partition of the hard disk is (hd0,0).

# all kernel and initrd paths are relative to /, eg.

# root (hd1,7)

# kernel / boot/vmlinuz-version ro root=/dev/sda8

# initrd / boot/initrd- [generic-] version.img

# boot=/dev/sdb

Default=0

Timeout=5

Splashp_w_picpath= (hd0,0) / boot/grub/splash.xpm.gz# needs to be modified

Title CentOS (2.6.32-431.e16.x86_64)

Root (hd0,0) # needs to be modified

Kernel / vmlinuz-2.6.32-431.e16.x86_64 ro root=/dev/mapper/vg_haibo-lv_root rd_NO_LUKS_MD KEYBOARDTYPE=pc KEYTABLE=us rd_NO_MD LANG=zh_CN.UTF-8 rd_NO_LVM rd_NO_DM rhgb quiet crashkernel=auto

Initrd / boot/initramfs-2.6.32-358.el6.i686.img

Then restart and you can see the startup menu and get rid of the USB flash drive to start.

CentOS 6 / RHCE 6 disable IPv6 protocol module

IPv6 is to solve the problem of IPv4 address exhaustion, but not everyone is using it, and not all hardware supports it. Replacing IPv4 is a big trend sooner or later. IPv4 will withdraw slowly over a long period of time rather than overnight.

In some cases, you may find that disabling IPv6 not only speeds up the network, but also helps reduce administrative overhead and improve the level of security.

IPv6 is enabled by default on the CentOS6 / RHCE6 system, as shown in the figure:

But some networks and applications do not support IPv6, so disabling IPv6 can be said to be a very good choice to enhance the security of the system and improve the overall performance of the system.

one。 Here's how to disable IPv6:

1. Disable loading of IPv6 module

# echo "install ipv6 / bin/true" > / etc/modprobe.d/disable-ipv6.conf

Whenever the system needs to load an IPv6 module, force / bin/true instead of the actual loaded module.

[warning] Note: this is currently the only effective way for CentOS systems to disable the IPv6 module. Of course, there will be other ways in later versions.

two。 Close ip6tables

# chkconfig ip6tables off

3. Disable IPv6-based networks so that they are not triggered to start

# vi / etc/sysconfig/networkNETWORKING_IPV6=no4. Disable the IPv6 setting of the network card to run only in IPv4 mode

# vi / etc/sysconfig/network-scripts/ifcfg-ethX or vi / etc/sysconfig/network-scripts/ifcfg-em1X

IPV6INIT=no

IPV6_AUTOCONF=no

5. Restart takes effect

# reboot

6. Verify whether it is effective

# lsmod | grep ipv6

Reference: http://www.ttlsa.com/linux/centos6-rhce6-disables-the-ipv6-protocol-module/

Http://www.cnblogs.com/Initart/articles/3790905.html

Http://linux521.blog.51cto.com/4099846/764011

Http://icenycmh.blog.51cto.com/4077647/1844870

CentOS7 Uninstall OpenJDK install Oracle JDK

1. View the JDK installation version

[root@localhost] # java-versionjava version * 1.7.0_51*OpenJDK Runtime Environment (rhel-2.4.5.5.el7-x86_64 u51-b31) OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

two。 Find the OpenJDK installation package

Rpm-qa | grep openjdkjava-1.7.0-openjdk-headless-1.7.0.51-2.4.5.5.el7.x86_64java-1.7.0-openjdk-1.7.0.51-2.4.5.5.el7.x86_64rpm-qa | grep gcj java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64libgcj-4.4.7-4.el6.x86_64

3. Uninstall the OpenJDK installation package

[root@localhost] # yum-y remove java-1.7.0-openjdk-headless.x86_64 [root@localhost ~] # yum-y remove java-1.7.0-openjdk.x86_64 [root@localhost ~] # yum-y remove java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64

4. Download JDK1.7 installation package jdk-7u65-linux-x64.rpm

5. Install JDK1.7

[root@localhost download] # yum install jdk-7u65-linux-x64.rpm

6. Configure environment variables

[root@localhost ~] # vim / etc/profile/java.sh

Add the following at the end of the file

JAVA_HOME=/usr/java/jdk1.7.0_65JAVA_BIN=/usr/java/jdk1.7.0_65/binPATH=$PATH:$JAVA_BINCLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport JAVA_HOME JAVA_BIN PATH CLASSPATH

[root@localhost ~] # source / etc/profile

7. View installation results

[root@localhost] # java-versionjava version "1.7.0y65" Java (TM) SE Runtime Environment (build 1.7.0_65-b17) Java HotSpot (TM) 64-Bit Server VM (build 24.65-b04.mixed mode)

So far, the installation of JDK1.7 has been completed.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report