Author Archives: Robins

Centos 7.2 failed to load SELinux policy freezing

Adjust the SELINUX = permissive; A very serious problem is that the server cannot boot. The main error was to modify SELinuxType =disabled. Instead of changing SELinuxType =disabled, you should have changed SELinux because you were in a hurry and you changed it incorrectly. Cause unnecessary trouble.

The error is shown in the figure
https://img-my.csdn.net/uploads/201709/03/1504438099_6968.png

Solutions:

1. When rebooting the system, select the kernel you want to enter from the following page, and press E, grub to edit the page.
https://img-my.csdn.net/uploads/201709/03/1504438099_7830.png
2. Find linux16 that line in LANG = zh_CN. Utf-8 Spaces with selinux = 0 or enforcing = 0 (I was the first to solve the problem)
3. After that, Ctrl+ X will launch, and you will see the familiar page in a moment. On the other hand, you might be stuck on the page below for a while, but you’ll be fine later
https://img-my.csdn.net/uploads/201709/03/1504438100_7681.png
4. After entering the system, remember to modify the configuration correctly.
5. Modify the “SELinux” parameter in /etc/selinux/config file
# SELINUX = enforcing the original configuration
SELINUX = disabled correctly
   
But I was looking at the wrong modification; Modified the selinuxType parameter by treating “selinuxType =target” as “SELINUX”

# selinuxType =targeted The original configuration is unchanged
SELINUXTYPE = disabled errors

Failed to load SELinux policy. Freezing due to modification of SELinux by centos7

The reason for the error
Configuration closed SELinux, as a result, wrong operation, should be modified in the configuration file/etc/SELinux/config “SELinux” the value of the parameter, SELinux = enforcing original configuration SELinux = disabled right
but mistakenly “SELINUXTYPE” as “SELinux”, set up SELINUXTYPE parameters:
# SELINUXTYPE = targeted the original configuration This don’t need to modify.
SELINUXTYPE = disabled errors
Error
Failed to load SELinux policy. Freezing error caused the machine to never start
Solutions:

    When rebooting, on the boot page, select the kernel you want to boot and press E to enter the GRUB editing page. Find the linux16 one line, behind the language Is LANG = zh_CN. Utf-8, the blank space with selinux = 0 or enforcing = 0 (note: I am join selinux = 0 effect.) Then Ctrl + X launches, and you see the familiar login screen. Modify the SELinux configuration file to properly close SELinux ~! 4. Modify SELinux configuration file to properly close SELinux ~!

    vim /etc/selinux/config
    #This file controls the state of SELinux on the system.
    #SELINUX= can take one of these three values:
    #enforcing – SELinux security policy is enforced.
    #permissive – SELinux prints warnings instead of enforcing.
    #disabled – No SELinux policy is loaded.
    SELINUX=disabled
    #SELINUXTYPE= can take one of three two values:
    #targeted – Targeted processes are protected,
    #minimum – Modification of targeted policy. Only selected processes are protected.
    #mls – Multi Level Security protection.
    SELINUXTYPE=targeted

After the modification is complete, restart. Check to see if an error is reported. Over.

After CentOS 7 starts, the login box cannot be displayed. Press Alt + F2 to display “failed to start authorization manager”

I can enter the CentOS selection screen, but then I can’t display the login box, which means I can’t log in to any account (my system is a graphical interface). If you press Alt +F2 or press the shutdown key, it will show “Failed to start Authorization Manager”.

I could not find a similar reason on the Internet. I considered that there might be a problem with a previous operation, so I entered Rescue mode
How (centos into rescue mode: https://www.youtube.com/watch?v=e-NauoY3m50& Feature = youtu. Be)

I previously put the /usr/lib64 folder below
/usr/lib64/libstdc++
/ home/zhexin/Software/GCC/GCC – 5.4.0 – build/x86_64 – unknown – – the gnu/Linux libstdc++ – v3/SRC/libs/libstdc++. So. 6.0.21,
In rescue mode, I copy libstdc++.so.6.0.21 to /usr/lib64/libstdc++.so.6 to libstdc++.
Be careful not to link files under root such as /usr/lib64 to a user directory.

Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.0.0:clean (default-clean) on

Failed to execute goal org, apache maven. Plugins: maven – clean – plugin: 3.0.0: clean (default – the clean) on project springboot1: Failed to clean project: Failed to delete the F: \ springboot1 \ target – & gt;
To see the full stack trace of the errors, re-run Maven with the -e switch.
The cause of this problem is that the CMD command window to start Springboot1 is open under the target file path of the project Springboot1. This causes the package Springboot1 project to fail. To see the full stack trace of the errors, re-run Maven with the -e switch. You need to shut down a Maven and reopen it.
Solution: Close the CMD command window that starts Springboot1. Just pack it up again.

Failed to execute goal in Maven build org.apache.tomcat .maven:

Eclipse, deploying the project to Tomcat, reported the following error, meaning that Tomcat failed to start, the project is introduced such as the project. I checked my maven configuration, and the settings.xml pointing is fine. Baidu checked to see a lot of answers are not effective. And finally I see a similar problem which is the following. There are a lot of comments below his post and there are no effective answers. Finally, I saw that he himself, inspired by others, added the warehouse address of Ali Cloud in settings. XML and deleted the local library from the update project below. I think it is OK for me to re-download the warehouse, because I introduced some old dependencies that may conflict with the existing warehouse dependencies. Finally, the problem was effectively solved.
Remind yourself to change settings.xml. Be careful not to copy too much or delete a bit of the comment in the source file or Eclips will post a Code Not Read Settings error in the User Settings section. Remember to install maven first, love you mua, bye!

nexus-aliyun
*
Nexus aliyun
http://maven.aliyun.com/nexus/content/groups/public

[INFO] Scanning for projects...
[INFO] 
[INFO] --------------------------< com.lzh:TestSSM1 >--------------------------
[INFO] Building TestSSM1 Maven Webapp 0.0.1-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ TestSSM1 >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ TestSSM1 ---
[INFO] Using 'utf-8' encoding to copy filtered resources.
[INFO] Copying 18 resources
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ TestSSM1 ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ TestSSM1 <<<
[INFO] 
[INFO] 
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ TestSSM1 ---
[INFO] Downloading from central: https://repo.maven.apache.org/maven2/junit/junit/4.10/junit-4.10.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.198 s
[INFO] Finished at: 2018-07-10T14:57:35+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project TestSSM1: Execution default-cli of goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run failed: Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.2 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.tomcat.maven:tomcat7-maven-plugin?2.2  [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

Failed to execute goal org.apache.tomcat . maven:tomcat7-maven-plugin : 2.2: run solution

I had a problem these two days, and it was a disgusting problem. Wasted me two days time, maven starts, the Failed to execute goal. Org. Apache tomcat. Maven: tomcat7 — maven plugin: 2.2: run, or can’t find the tomcat plug-in, finally really is no way, to guide so the pom bag screening out, one at a time, found that two packages caused the error.


Hope I can help you.

Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project

Complete error message

Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project jurisdiction_controller: Could not start Tomcat


Start the Maven project wrong, use Tomcat embedded in it
The solution
The dependent use of servlets is introduced in the pom.xml file


Change after

add scope tags, and the values is provided (only role in the compilation and testing, and at the same time not pass)
The scope label specifies the range of values
compile
The default scope, which means that all Dependencies can be used throughout the lifecycle. Furthermore, these dependencies are passed to the projects on which they depend. Applies to all phases and will be released along with the project
provided
Similar to compile, but indicating that dependency is provided by JDKs or containers, such as Servlet APs and some Java EE APIs. This scope can only be used during compilation and testing and has no transitivity.
runtime
Dependency does not apply at compile time, but does apply at run and test times, such as JDBC drivers, for the run and test phases.
test
Indicates that dependency is applied at test time, not at run time. Used only during testing, to compile and run test code. Will not be released with the project.
system
Similar to Provided, but provided in the system as an external JAR, Maven does not look for it in a repository.

RemoveError: ‘requests‘ is a dependency of conda and cannot be removed from conda‘s operating env

1. The question is:

removeError: ‘requests’ is a dependency of Conda and cannot be removed from Conda’s operating environment.
removeError: ‘setup_tools’ is a dependency of CONDA and cannot be removed from CONDA’s operating environment.
2. Solutions
Force Conda to be updated before installation

conda update --force conda

3. More related questions
https://github.com/conda/conda/issues/8149

RemoveError: ‘setuptools’ is a dependency of conda and cannot be removed from conda’s operatin

RemoveError: ‘setuptools’ is a dependency of conda and cannot be removed from
conda’s operating environment.

PIP uninstall install setuptools
PIP uninstall install setuptools
c> update conda
conda u>e –force conda

PIP un>all install setuptools
conda install -c anaconda setuptools
conda install -c anaconda setuptools
conda install -c anaconda setuptools
conda install -c anaconda setuptools

Removeerror: ‘setuptools’ is a dependency of CONDA

At the wrong when update jupyterlab
RemoveError: 'setuptools' is a dependency of conda and always be removed from conda' s operating environment.
Try the first method:
PIP uninstall install setuptools
and conda install setuptools , useless, still an error
The second:
conda update conda
no, at the same error
The third:
conda update -- force conda
success, no error.
Conda install numpy, numpy, numpy, numpy, numpy, numpy, numpy. Looks like it worked out.