xfs_repair -v -L /dev/dm-0
The -l option specifies a forced log zeroing that forces XFS_REPAIR to zero the log even if it contains dirty data (metadata changes).
> Restart the virtual machine
xfs_repair -v -L /dev/dm-0
The -l option specifies a forced log zeroing that forces XFS_REPAIR to zero the log even if it contains dirty data (metadata changes).
> Restart the virtual machine
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
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:
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.
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.
This problem is usually reported as being occupied. This problem is usually the result of running again after forgetting to turn off the previous run.
A folder or file is being used. Eliminate the problem by deleting it, for example
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


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