Tag Archives: linux

Error: nothing to do in centos7’s Yum installation

catalog

Caption:

Yum installation error description:

Solution, update Yum source:

Re install, problem solved:


 

Caption:

After installing centos7, sometimes Yum is not up-to-date. It’s better to update the yum source after installing the system. Since the yum source was not updated after installing the operating system, the following error occurred today.

Yum installation error description:

 

Solution, update Yum source:

yum -y update 

 

Re install, problem solved:

 

 

Error: could not create the Java virtual machine. Error: a fatal exception has occurred

Error message:
java hotspot ™ 64-Bit Server VM warning: ignoring option PermSize=128M; support was removed in 8.0
Java HotSpot ™ 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
MaxTenuringThreshold of 31 is invalid; must be between 0 and 15
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.**

The reason for the above error is that the memory allocated to the Java virtual machine (JVM) is larger than the available memory of the system, and there is not enough memory space allocated to the JVM to create objects

Go to/opt/avcon/Tomcat/bin in the Tomcat bin directory. There is a catalina.sh File
modify the value as small as possible

Modify save restart!

Linux boot prompt “failed to initialize Hal!” solution

My operating system is debian5. There are some directories under/etc/that are RC *. D. * stands for numbers, which are all the services loaded when the system starts. Find DBUS and Hal in them. Pay attention to the numbers in front, which represent the startup order. For example, I found k88dbus and k16hal in RC1. D directory. The problem is that the startup order of DBUS is behind Hal, So it causes this problem. Therefore, write the startup sequence of dubs between Hal serial numbers. For example, I change k88dbus to k15dbus, and use the following command:

#mv K88dbus K15dbus

Restart again and the problem is solved.

The solution of “failed to load ldlinux. C32” in Linux system

Using the U disk made by UltraISO to start, F12 key appears when USB starts

Failed to load ldlinux.c32
Boot failed: please change disks and press a key to continue

terms of settlement:

When UltraISO makes the boot disk, the write mode is changed to “raw”, and the system can start smoothly when it is installed.

reference material:

http://www.cnblogs.com/huadongw/p/6516637.html

Ccache: failed to create / home

Ccache: failed to create/home cause: the user name has been modified before, but the home directory of the original user name has not been modified, resulting in this problem.

Solution: use the command sudo GEDIT/etc/passwd to change the original user’s home directory name to the current user name

User name: X: uid: GID: remarks: home directory path: shell path

That is, modify the home directory path

Failed to execute stage ‘setup validation’: cannot locate gluster packages

The author focuses on Java, architecture, Linux, applet, crawler, automation and other technologies. During the working period, I sorted out some information with tears, searched the way of programmer experts on wechat, and replied to keywords such as Java, hacker, crawler, applet and interview to get information for free.

catalog

1、 There is a problem

2、 Analyze the problem

3、 Problem solving

1. Install ovirt corresponding source

2. Forced update package

3. Install ovirt engine

OK, GAME OVER!


I. Problems

Today, after creating the host on ovirt, the installation failed. After checking the event, we found the following error:

An error has occurred during installation of Host hostGluster: Failed to execute stage ‘Setup validation’: Cannot locate gluster packages, possible cause is incorrect channels.

2、 Analyze the problem

The host needs to join the cluster, and the host joining the cluster must manually add the source of ovirt to operate!

3、 Problem solving

1. Install ovirt corresponding source

[ root@ovirt ~]# yum install https://resources.ovirt.org/pub/yum-repo/ovirt-release43.rpm

2. Forced update package

[ root@ovirt-test-04 ~]# yum update -y

3. Install ovirt engine

[ root@ovirt-test-04 ~]# yum install ovirt-engine -y

OK, GAME OVER!



The author focuses on Java, architecture, Linux, applet, crawler, automation and other technologies. During the working period, I sorted out some information with tears, searched the way of programmer experts on wechat, and replied to keywords such as Java, hacker, crawler, applet and interview to get information for free.

Failed to talk to init day

When using WSL in the morning, an error was reported:

root@PC0:/home/zhang# systemctl start ssh.service
System has not been booted with systemd as init system (PID 1). Can't operate.

This error report is easy to solve. The solution is to use Service :

root@PC0:/home/zhang# service ssh status
 * sshd is running

Then I try to shut down:

root@sidanzhang-PC0:/home/zhang# poweroff
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to talk to init daemon.

True pit, shut down all report wrong.
According to this answer: rebooting Ubuntu on windows without rebooting windows?- super user
the solution is to open a new window of PowerShell and run the command:

wsl --shutdown

If your win10 system has not been updated, the administrator can run the following command:

net stop LxssManager

Redirecting to /bin/systemctl stop mysqld.service

Start the service on Linux and report an error

[ root@iZ25n5kdt0kZ ~]# service mysqld stop
Redirecting to /bin/systemctl stop mysqld.service
Solution:

First, use the CD command to switch the directory, for example: CD bin, and operate MySQL under the corresponding directory according to the specific error prompt

1. Use the following command to operate MySQL:
systemctl restart mysqld.service
systemctl start mysqld.service
systemctl stop mysqld.service

2. If the above operation doesn’t work, try the second scheme. The owner of MySQL is root, and MySQL is executed as a MySQL user. Of course, it can’t be written in. It’s a matter of system permissions. Chown – R mysql:mysql /var/lib/mysql/ That’s it

Link to the original text: https://blog.csdn.net/Qyq0498/article/details/107579247

Configuration: error:!! OpenSSL is not properly installed on your system

Project scenario:

In Linux system, use the command to decompress and install the keepalived source package.


Problem Description:

To install the keepalived source code package, you have run the following command:

tar -xzvf keepalived-2.2.2.tar.gz
cd keepalived-2.2.2
./configure --prefix=/usr/local/keepalived
yum -y install gcc
./configure --prefix=/usr/local/keepalived

The third command run result error, has been solved (solution), in the fifth line to re run the command error, the error message is:

configure: error:
  !!! OpenSSL is not properly installed on your system. !!!
  !!! Can not include OpenSSL headers files.   

Cause analysis:

The main reason for this error is the lack of header files. You only need to install OpenSSL and OpenSSL devel.


Solution:

To install OpenSSL and OpenSSL devel:

yum -y install openssl openssl-devel

Rerun the command ./configure -- prefix =/usr/local/kept , the command runs normally, and the problem is solved.

If there are other errors, please refer to:
configure: error: no acceptable C compiler found in $path error resolution
warning - this build will not support IPVS with IPv6

Configuration: error: no acceptable C compiler found in $path

Project scenario:

In Linux system, use the command to decompress and install the keepalived source package.


Problem Description:

To install the keepalived source code package, you have run the following command:

tar -xzvf keepalived-2.2.2.tar.gz
cd keepalived-2.2.2
./configure --prefix=/usr/local/keepalived

The first two commands run normally, and the third command runs as follows:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/software/keepalived-2.2.2':
configure: error: no acceptable C compiler found in $PATH

Cause analysis:

The main reason for this error is that there is no c compiler.


Solution:

To install the C compiler:

yum -y install gcc

Rerun the command ./configure -- prefix =/usr/local/kept , the command runs normally, and the problem is solved.

If there are other errors, please refer to:
configure: error:!! OpenSSL is not properly installed on your system.!! Error resolution
warning - this build will not support IPVS with IPv6

Warning – this build will not support IPVS with IPv6

Project scenario:

In Linux system, use the command to decompress and install the keepalived source package.


Problem Description:

To install the keepalived source code package, you have run the following command:

tar -xzvf keepalived-2.2.2.tar.gz
cd keepalived-2.2.2
./configure --prefix=/usr/local/keepalived
yum -y install gcc
./configure --prefix=/usr/local/keepalived
yum -y install openssl openssl-devel
./configure --prefix=/usr/local/keepalived

The third command run result error, solved (solution), the fifth command run result error, solved (solution), in the seventh line re run the command error, the warning message is:

*** WARNING - this build will not support IPVS with IPv6. Please install libnl/libnl-3 dev libraries to support IPv6 with IPVS.

Cause analysis:

The main reason for this error is the lack of libnl core library. Just install libnl and libnl devel.


Solution:

Install libnl and libnl devel:

yum -y install libnl libnl-devel

Rerun the command ./configure -- prefix =/usr/local/kept , the command runs normally, and the problem is solved.

If there are other errors, please refer to:
configure: error: no acceptable C compiler found in $path error resolution
configure: error:!! OpenSSL is not properly installed on your system.!! Error resolution