CentOS7 systemd管理mysql的一个问题 20C

基础环境版本:
CentOS7.3
原生mysql5.7

我是通过下载官网的rpm包进行安装mysql-server的,

问题现象:
通过使用官网下载的rpm安装好mysql-server后,在配置文件中配置好mysql服务端
图片说明
创建好相关目录,配置好权限后,使用systemct启动应用
但是当我查看启动的mysql进程时,突然发现pid-file是/var/run/mysqld/mysqld.pid,但是我配置中写的是/opt/mysql/3306/tmp/mysqld.pid图片说明
查看了一下,发现/usr/lib/systemd/system/mysqld.service(mysql的systemd注册服务文件)中已经把mysql的pid文件名写死了图片说明
再次尝试修改pid文件路径,改为/opt/mysql/3306/tmp/mysqld.pid图片说明
使用systemctl daemon-reload重新加载mysqd.service文件
再次使用systemctl启动mysqld,但是这时,mysqld进程启动正常,pid文件也写入了正确的路径中,但是systemctl一直没有返回,另起一个section,用systemctl status mysqld查询状态,发现mysqld一直处于activating (start)状态图片说明
这时mysql-server可以正常使用,systemctl start mysqld的进程强制停掉也不会影响正常使用,但mysqld的服务状态也不会变为正常的active (running)
兄弟们有遇到过类似的状况么??求解一下,这个是什么原理?

1个回答

又重新看了一下,/usr/lib/systemd/system/mysqld.service中还有个配置是PIDfile,修改这个配置为/opt/mysql/3306/tmp/mysqld.pid后,就可以正常使用了,但是总觉得这个地方有点怪,本身我的/etc/my.cnf中已经配置了pid的文件路径,但是使用systemd管理mysqld服务的时候还需要在/usr/lib/systemd/system/mysqld.service中对pid文件另外进行配置,感觉这个本身有点问题呀

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
linux下安装Mysql5.7出现的问题,搞了一天了!

出现了如下问题: --> Finished Dependency Resolution Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libsasl2.so.3()(64bit) Error: Package: mysql-community-client-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) Error: Package: mysql-community-libs-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libc.so.6(GLIBC_2.14)(64bit) Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: systemd Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) Error: Package: mysql-community-client-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libc.so.6(GLIBC_2.14)(64bit) Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community) Requires: libc.so.6(GLIBC_2.17)(64bit) 试着装了一次mysql5.6没有问题,但是装5.7却出现了这个问题,求助!!

centos7下,tomcat启动成功,但页面无法访问

## tomcat启动 ``` [root@ bin]# sh startup.sh Using CATALINA_BASE: /usr/share/tomcat Using CATALINA_HOME: /usr/share/tomcat Using CATALINA_TMPDIR: /usr/share/tomcat/temp Using JRE_HOME: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre Using CLASSPATH: /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar Tomcat started. [root@ bin]# ps -ef|grep tomcat root 81659 1 99 11:41 pts/0 00:00:40 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre/bin/java -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms512m -Xmx1024m -Xss2048K -XX:PermSize=256m -XX:MaxPermSize=512m -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/share/tomcat -Dcatalina.home=/usr/share/tomcat -Djava.io.tmpdir=/usr/share/tomcat/temp org.apache.catalina.startup.Bootstrap start root 81694 81477 0 11:41 pts/0 00:00:00 grep --color=auto tomcat ``` ## 浏览器访问 ![图片说明](https://img-ask.csdn.net/upload/201907/30/1564417712_701672.png) ## 端口情况 ``` [root@ bin]# netstat -lnp|grep 8081 tcp6 1 0 :::8081 :::* LISTEN 81659/java ``` ## server.xml ``` <?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <!-- Note: A "Server" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/server.html --> <Server port="8005" shutdown="SHUTDOWN"> <Listener className="org.apache.catalina.startup.VersionLoggerListener" /> <!-- Security listener. Documentation at /docs/config/listeners.html <Listener className="org.apache.catalina.security.SecurityListener" /> --> <!--APR library loader. Documentation at /docs/apr.html --> <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> <!-- Prevent memory leaks due to use of particular java/javax APIs--> <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> <!-- Global JNDI resources Documentation at /docs/jndi-resources-howto.html --> <GlobalNamingResources> <!-- Editable user database that can also be used by UserDatabaseRealm to authenticate users --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <!-- A "Service" is a collection of one or more "Connectors" that share a single "Container" Note: A "Service" is not itself a "Container", so you may not define subcomponents such as "Valves" at this level. Documentation at /docs/config/service.html --> <Service name="Catalina"> <!--The connectors can use a shared executor, you can define one or more named thread pools--> <!-- <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="150" minSpareThreads="4"/> --> <!-- A "Connector" represents an endpoint by which requests are received and responses are returned. Documentation at : Java HTTP Connector: /docs/config/http.html Java AJP Connector: /docs/config/ajp.html APR (HTTP/AJP) Connector: /docs/apr.html Define a non-SSL/TLS HTTP/1.1 Connector on port 8080 --> <Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <!-- A "Connector" using the shared thread pool--> <!-- <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> --> <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 This connector uses the NIO implementation. The default SSLImplementation will depend on the presence of the APR/native library and the useOpenSSL attribute of the AprLifecycleListener. Either JSSE or OpenSSL style configuration may be used regardless of the SSLImplementation selected. JSSE style configuration is used below. --> <!-- <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true"> <SSLHostConfig> <Certificate certificateKeystoreFile="conf/localhost-rsa.jks" type="RSA" /> </SSLHostConfig> </Connector> --> <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2 This connector uses the APR/native implementation which always uses OpenSSL for TLS. Either JSSE or OpenSSL style configuration may be used. OpenSSL style configuration is used below. --> <!-- <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol" maxThreads="150" SSLEnabled="true" > <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> <SSLHostConfig> <Certificate certificateKeyFile="conf/localhost-rsa-key.pem" certificateFile="conf/localhost-rsa-cert.pem" certificateChainFile="conf/localhost-rsa-chain.pem" type="RSA" /> </SSLHostConfig> </Connector> --> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> <!-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). Documentation at /docs/config/engine.html --> <!-- You should set jvmRoute to support load-balancing via AJP ie : <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1"> --> <Engine name="Catalina" defaultHost="localhost"> <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) --> <!-- <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> --> <!-- Use the LockOutRealm to prevent attempts to guess user passwords via a brute-force attack --> <Realm className="org.apache.catalina.realm.LockOutRealm"> <!-- This Realm uses the UserDatabase configured in the global JNDI resources under the key "UserDatabase". Any edits that are performed against this UserDatabase are immediately available for use by the Realm. --> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/> </Realm> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="/" docBase="radar" debug="0" privileged="true" reloadable="true" /> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" /> </Host> </Engine> </Service> </Server> ``` ## tomcat关闭 ``` [root@ bin]# sh shutdown.sh Using CATALINA_BASE: /usr/share/tomcat Using CATALINA_HOME: /usr/share/tomcat Using CATALINA_TMPDIR: /usr/share/tomcat/temp Using JRE_HOME: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre Using CLASSPATH: /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar OpenJDK 64-Bit Server VM warning: ignoring option PermSize=256m; support was removed in 8.0 OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0 七月 30, 2019 12:29:29 下午 org.apache.catalina.startup.Catalina stopServer 严重: Could not contact [localhost:[8005]]. Tomcat may not be running. 七月 30, 2019 12:29:29 上午 org.apache.catalina.startup.Catalina stopServer 严重: Catalina.stop: java.net.ConnectException: 拒绝连接 (Connection refused) at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.<init>(Socket.java:434) at java.net.Socket.<init>(Socket.java:211) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:503) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:406) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:498) ``` ## 防火墙已经关闭 ``` [root@LENOVO-LA0X1824 bin]# systemctl status firewalld.service · firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: man:firewalld(1) 七月 30 00:09:56 LENOVO-LA0X1824 systemd[1]: Starting firewalld - dynamic fi.... 七月 30 00:09:57 LENOVO-LA0X1824 systemd[1]: Started firewalld - dynamic fir.... 七月 30 00:19:35 LENOVO-LA0X1824 systemd[1]: Stopping firewalld - dynamic fi.... 七月 30 00:19:36 LENOVO-LA0X1824 systemd[1]: Stopped firewalld - dynamic fir.... Hint: Some lines were ellipsized, use -l to show in full. ``` ## tomcat内存已调整 ``` # OS specific support. $var _must_ be set to either true or false. JAVA_OPTS="-Xms512m -Xmx1024m -Xss2048K -XX:PermSize=256m -XX:MaxPermSize=512m" cygwin=false ``` ## tomcat日志 ``` 30-Jul-2019 00:41:04.731 警告 [main] org.apache.catalina.core.StandardContext.setPath A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to [] 30-Jul-2019 00:41:04.737 警告 [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property. 30-Jul-2019 00:41:04.758 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.35 30-Jul-2019 00:41:04.758 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Nov 3 2018 17:39:20 UTC 30-Jul-2019 00:41:04.758 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.35.0 30-Jul-2019 00:41:04.758 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 30-Jul-2019 00:41:04.758 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-862.14.4.el7.x86_64 30-Jul-2019 00:41:04.759 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 30-Jul-2019 00:41:04.759 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre 30-Jul-2019 00:41:04.759 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_212-b04 30-Jul-2019 00:41:04.759 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 30-Jul-2019 00:41:04.759 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/share/tomcat 30-Jul-2019 00:41:04.759 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/share/tomcat 30-Jul-2019 00:41:04.759 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/share/tomcat/conf/logging.properties 30-Jul-2019 00:41:04.760 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 30-Jul-2019 00:41:04.760 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms512m 30-Jul-2019 00:41:04.760 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1024m 30-Jul-2019 00:41:04.760 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xss2048K 30-Jul-2019 00:41:04.760 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:PermSize=256m 30-Jul-2019 00:41:04.760 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:MaxPermSize=512m 30-Jul-2019 00:41:04.760 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 30-Jul-2019 00:41:04.760 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 30-Jul-2019 00:41:04.761 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 30-Jul-2019 00:41:04.761 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 30-Jul-2019 00:41:04.761 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/share/tomcat 30-Jul-2019 00:41:04.761 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/share/tomcat 30-Jul-2019 00:41:04.761 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/share/tomcat/temp 30-Jul-2019 00:41:04.761 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib] 30-Jul-2019 00:41:04.863 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8081"] 30-Jul-2019 00:41:04.876 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 30-Jul-2019 00:41:04.889 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"] 30-Jul-2019 00:41:04.891 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 30-Jul-2019 00:41:04.891 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 576 ms 30-Jul-2019 00:41:04.916 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 30-Jul-2019 00:41:04.916 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.35 30-Jul-2019 00:41:09.189 信息 [localhost-startStop-1] org.springframework.boot.StartupInfoLogger.logStarting Starting RadarHealthLegalApplication v0.0.1-SNAPSHOT on LENOVO-LA0X1824 with PID 6604 (/usr/share/tomcat/webapps/radar/WEB-INF/classes started by root in /usr/share/tomcat/bin) 30-Jul-2019 00:41:09.191 信息 [localhost-startStop-1] org.springframework.boot.SpringApplication.logStartupProfileInfo No active profile set, falling back to default profiles: default 30-Jul-2019 00:41:09.233 信息 [localhost-startStop-1] org.springframework.context.support.AbstractApplicationContext.prepareRefresh Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3ca98b77: startup date [Tue Jul 30 00:41:09 HKT 2019]; root of context hierarchy 30-Jul-2019 00:41:11.119 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'shiroConfiguration' of type [com.huichuang.radar_health_legal.configuration.ShiroConfiguration$$EnhancerBySpringCGLIB$$8552a5e1] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:11.394 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'org.springframework.boot.context.properties.ConversionServiceDeducer$Factory' of type [org.springframework.boot.context.properties.ConversionServiceDeducer$Factory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:11.601 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'mybatis-org.mybatis.spring.boot.autoconfigure.MybatisProperties' of type [org.mybatis.spring.boot.autoconfigure.MybatisProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:11.620 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration' of type [org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$91557f45] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:11.625 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Generic' of type [org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Generic] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:11.660 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties' of type [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:11.751 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'dataSource' of type [com.alibaba.druid.pool.DruidDataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.510 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'sqlSessionFactory' of type [org.apache.ibatis.session.defaults.DefaultSqlSessionFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.526 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'sqlSessionTemplate' of type [org.mybatis.spring.SqlSessionTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.527 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'upUserMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.530 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'upUserMapper' of type [com.sun.proxy.$Proxy61] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.537 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'upRoleMapper' of type [org.mybatis.spring.mapper.MapperFactoryBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.539 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'upRoleMapper' of type [com.sun.proxy.$Proxy62] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.540 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'loginSerImp' of type [com.huichuang.radar_health_legal.service.shiro.imp.LoginSerImp] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.541 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'customShiroRealm' of type [com.huichuang.radar_health_legal.utill.shiro.CustomShiroRealm] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.547 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'rememberMeCookie' of type [org.apache.shiro.web.servlet.SimpleCookie] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.554 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'rememberMeManager' of type [org.apache.shiro.web.mgt.CookieRememberMeManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.569 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'securityManager' of type [org.apache.shiro.web.mgt.DefaultWebSecurityManager] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.691 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'authorizationAttributeSourceAdvisor' of type [org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.761 信息 [localhost-startStop-1] org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker.postProcessAfterInitialization Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$5e812e15] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 30-Jul-2019 00:41:12.997 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.prepareWebApplicationContext Root WebApplicationContext: initialization completed in 3765 ms 30-Jul-2019 00:41:13.506 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure Mapping filter: 'characterEncodingFilter' to: [/*] 30-Jul-2019 00:41:13.507 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure Mapping filter: 'errorPageFilter' to: [/*] 30-Jul-2019 00:41:13.507 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 30-Jul-2019 00:41:13.507 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure Mapping filter: 'httpPutFormContentFilter' to: [/*] 30-Jul-2019 00:41:13.507 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure Mapping filter: 'requestContextFilter' to: [/*] 30-Jul-2019 00:41:13.507 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure Mapping filter: 'UrlFilter' to urls: [/*] 30-Jul-2019 00:41:13.508 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure Mapping filter: 'webStatFilter' to urls: [/*] 30-Jul-2019 00:41:13.508 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure Mapping filter: 'delegatingFilterProxy' to: [/*] 30-Jul-2019 00:41:13.508 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure Mapping filter: 'corsFilter' to: [/*] 30-Jul-2019 00:41:13.508 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.AbstractFilterRegistrationBean.configure Mapping filter: 'shiroFilter' to: [/*] 30-Jul-2019 00:41:13.508 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.ServletRegistrationBean.addRegistration Servlet statViewServlet mapped to [/druid/*] 30-Jul-2019 00:41:13.510 信息 [localhost-startStop-1] org.springframework.boot.web.servlet.ServletRegistrationBean.addRegistration Servlet dispatcherServlet mapped to [/] 30-Jul-2019 00:41:14.707 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 30-Jul-2019 00:41:15.311 信息 [localhost-startStop-1] org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.initControllerAdviceCache Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3ca98b77: startup date [Tue Jul 30 00:41:09 HKT 2019]; root of context hierarchy 30-Jul-2019 00:41:15.439 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/data/getDataFromDatabase.do]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.SimData.getDataFromDatabase(java.lang.String) 30-Jul-2019 00:41:15.440 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/data/getWarningInfo.do]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.SimData.getWarningInfo() 30-Jul-2019 00:41:15.440 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/data/getRadarWarningInfo.do]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.SimData.getRadarWarningInfo(java.lang.String) 30-Jul-2019 00:41:15.441 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/data/theRadarInfo.do]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.SimData.theRadarInfo() 30-Jul-2019 00:41:15.441 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/data/getHistoryInfo.do]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.SimData.getHistoryInfo(java.lang.String[],java.lang.String) 30-Jul-2019 00:41:15.442 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/data/getInfoByField.do]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.SimData.getInfoByField(java.lang.String,java.lang.String) 30-Jul-2019 00:41:15.442 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/data/getFieldByChName.do]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.SimData.getFieldByChName(java.lang.String,java.lang.String) 30-Jul-2019 00:41:15.444 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/test/test]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.TestTest.toMenuManager(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.445 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/index/index]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.bigScreen.IndexCtl.first_page(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.446 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/parameterList/parameterList]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.bigScreen.ParameterListCtl.third_page(org.springframework.ui.Model,javax.servlet.http.HttpServletRequest,java.lang.String) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.446 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/radarInfo/radarInfo]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.bigScreen.RadarInfoCtl.second_page(org.springframework.ui.Model,javax.servlet.http.HttpServletRequest,java.lang.String,java.lang.String) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.447 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/forgetPs/forgetPs],methods=[GET]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.login.ForgetPsCtl.toLogin(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.448 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/login/getCode]}" onto public void com.huichuang.radar_health_legal.controller.login.LoginCtl.getCode3(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,javax.servlet.http.HttpSession) throws java.io.IOException 30-Jul-2019 00:41:15.448 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/login/login],methods=[GET]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.login.LoginCtl.toLogin(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.449 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/login/goLogin],methods=[POST]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.login.LoginCtl.login(java.lang.String,java.lang.String,java.lang.String,javax.servlet.http.HttpSession,java.lang.Integer) 30-Jul-2019 00:41:15.449 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/register/register],methods=[GET]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.login.RegisterCtl.toLogin(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.450 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/register/register],methods=[POST]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.login.RegisterCtl.register(javax.servlet.http.HttpSession,com.huichuang.radar_health_legal.model.shiro.UpUser) 30-Jul-2019 00:41:15.451 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setGroupData/setGroupData]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetGroupData.toMenuManager(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.452 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setGroupData/allGroup]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetGroupData.allGroup() 30-Jul-2019 00:41:15.452 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setGroupData/allGT]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetGroupData.allGT(int) throws java.lang.NoSuchFieldException,java.lang.InstantiationException,java.lang.IllegalAccessException,java.lang.reflect.InvocationTargetException 30-Jul-2019 00:41:15.453 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setGroupData/insertNewGroup]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetGroupData.insertNewGroup(java.lang.String) 30-Jul-2019 00:41:15.453 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setGroupData/deleteGroup]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetGroupData.deleteGroup(int) 30-Jul-2019 00:41:15.453 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setGroupData/deleteTemplate]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetGroupData.deleteTemplate(int) 30-Jul-2019 00:41:15.455 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setMonomerData/setMonomerData]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetMonomerData.toMenuManager(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.455 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setMonomerData/getAllTemProp]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetMonomerData.getAllTemProp() 30-Jul-2019 00:41:15.455 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setMonomerData/deleteTemProp]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetMonomerData.deleteTemProp(int) 30-Jul-2019 00:41:15.455 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setMonomerData/getAllTemplate]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetMonomerData.getAllTemplate() 30-Jul-2019 00:41:15.456 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setMonomerData/changeTemplateProperty]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetMonomerData.changeTemplateProperty(int,int,int) 30-Jul-2019 00:41:15.456 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setMonomerData/checkAdd]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetMonomerData.checkAdd(java.lang.String,int,int) 30-Jul-2019 00:41:15.456 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setMonomerData/deleteTemPropById]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetMonomerData.deleteTemPropById(java.lang.Integer[]) 30-Jul-2019 00:41:15.457 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setMonomerGroup/setMonomerGroup]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetMonomerGroup.toMenuManager(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.457 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setMonomerGroup/getAllGroup]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetMonomerGroup.getAllGroup() 30-Jul-2019 00:41:15.458 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setMonomerGroup/loadingData]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetMonomerGroup.loadingData() 30-Jul-2019 00:41:15.458 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/monitor/setMonomerGroup/changeTemplateGroup]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.monitor.SetMonomerGroup.changeTemplateGroup(int,int) 30-Jul-2019 00:41:15.458 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/mainMenu/getMenu.do]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options.MainMenu.getMenu(javax.servlet.http.HttpSession) 30-Jul-2019 00:41:15.459 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/options]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options.Options.toOptions(org.springframework.ui.Model,javax.servlet.http.HttpSession) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.460 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/menuManager/menuManager]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_menu.MenuManagerCtl.toMenuManager(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.460 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/menuManager/saveMenu]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_menu.MenuManagerCtl.saveMenu(java.lang.String,javax.servlet.http.HttpSession) throws java.lang.IllegalAccessException,java.lang.InstantiationException,java.lang.NoSuchMethodException,java.lang.NoSuchFieldException,java.lang.reflect.InvocationTargetException 30-Jul-2019 00:41:15.460 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/menuManager/getMenu]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_menu.MenuManagerCtl.getMenu(javax.servlet.http.HttpSession) 30-Jul-2019 00:41:15.461 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingObj/settingObj]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_monitoring.SettingObjCtl.toVesselModule() 30-Jul-2019 00:41:15.462 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingModule/getModule]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.SettingModuleCtl.getModule() 30-Jul-2019 00:41:15.462 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingModule/settingModule]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.SettingModuleCtl.toVesselModule() 30-Jul-2019 00:41:15.462 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingModule/settingModuleState]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.SettingModuleCtl.updateModuleState(int,int) 30-Jul-2019 00:41:15.462 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingModule/relDelModule]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.SettingModuleCtl.relDelModule(java.lang.String) 30-Jul-2019 00:41:15.464 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingPage/settingPage]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.SettingPageCtl.toSettingModule(org.springframework.ui.Model) 30-Jul-2019 00:41:15.464 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingPage/getAllPage]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.SettingPageCtl.getAllPage() 30-Jul-2019 00:41:15.464 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingPage/savePage]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.SettingPageCtl.savePage(java.lang.String,java.lang.String) 30-Jul-2019 00:41:15.464 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingPage/deletePage]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.SettingPageCtl.deletePage(java.lang.String) 30-Jul-2019 00:41:15.465 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingPage/updatePage]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.SettingPageCtl.updatePage(java.lang.String,java.lang.String) 30-Jul-2019 00:41:15.465 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingPage/reldelPage]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.SettingPageCtl.reldelPage(int,java.lang.String) 30-Jul-2019 00:41:15.465 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/settingPage/getModuleReferences]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.SettingPageCtl.getModuleReferences() 30-Jul-2019 00:41:15.466 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/testVessel/testVessel]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_pageModule.TestVesselCtl.toTestVessel(org.springframework.ui.Model,javax.servlet.http.HttpServletRequest) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.466 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/roleManager/roleManager]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_role.RoleManagerCtl.toMenuManager(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.467 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/roleManager/loadingAllRoles]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_role.RoleManagerCtl.loadingAllRoles() 30-Jul-2019 00:41:15.467 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/roleManager/deleteById]}" onto public boolean com.huichuang.radar_health_legal.controller.options_role.RoleManagerCtl.deleteById(java.lang.Integer[]) 30-Jul-2019 00:41:15.467 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/roleManager/saveRole]}" onto public boolean com.huichuang.radar_health_legal.controller.options_role.RoleManagerCtl.saveRole(java.lang.String) 30-Jul-2019 00:41:15.469 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/userManager/userManager]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_userManager.UserManagerCtl.toMenuManager(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.469 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/userManager/loadingUser]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_userManager.UserManagerCtl.lodingUser(int) 30-Jul-2019 00:41:15.469 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/userManager/deleteSelectRole]}" onto public boolean com.huichuang.radar_health_legal.controller.options_userManager.UserManagerCtl.deleteSelectRole(int,int) 30-Jul-2019 00:41:15.470 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/userManager/addSelectRole]}" onto public boolean com.huichuang.radar_health_legal.controller.options_userManager.UserManagerCtl.addSelectRole(int,int) 30-Jul-2019 00:41:15.470 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/userManager/deleteUserById]}" onto public boolean com.huichuang.radar_health_legal.controller.options_userManager.UserManagerCtl.deleteUserById(java.lang.Integer[],int) 30-Jul-2019 00:41:15.470 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/userManager/recoverByUserId]}" onto public boolean com.huichuang.radar_health_legal.controller.options_userManager.UserManagerCtl.recoverByUserId(int) 30-Jul-2019 00:41:15.470 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/userManager/checkUserName]}" onto public boolean com.huichuang.radar_health_legal.controller.options_userManager.UserManagerCtl.checkUserName(java.lang.String) 30-Jul-2019 00:41:15.471 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/userManager/loadingAllRole]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_userManager.UserManagerCtl.loadingAllRole() 30-Jul-2019 00:41:15.471 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/userManager/saveNewUser]}" onto public boolean com.huichuang.radar_health_legal.controller.options_userManager.UserManagerCtl.saveNewUser(java.lang.String,int) 30-Jul-2019 00:41:15.471 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/userManager/addRole]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.options_userManager.UserManagerCtl.addRole(int) 30-Jul-2019 00:41:15.472 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/index2/index2]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.page.Index2Ctl.toIndex2(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.472 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/index2/getData]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.page.Index2Ctl.getData() 30-Jul-2019 00:41:15.473 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/parameterList2/parameterList2]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.page.Index2ParamListCtl.toParameterList2(org.springframework.ui.Model,java.lang.String) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.473 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/parameterList2/getParamter]}" onto public <T> java.lang.String com.huichuang.radar_health_legal.controller.page.Index2ParamListCtl.getParamter(java.lang.String) 30-Jul-2019 00:41:15.473 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/parameterList2/getHistoryData]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.page.Index2ParamListCtl.getHistoryData(java.lang.String,java.lang.String,java.lang.String,java.lang.String) 30-Jul-2019 00:41:15.474 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/parameterList2/refreshHistoryData]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.page.Index2ParamListCtl.refreshHistoryData(java.lang.String,java.lang.String,java.lang.String,java.lang.String) 30-Jul-2019 00:41:15.474 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/index2_second/index2_second]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.page.Index2SecondCtl.toMenuManager(org.springframework.ui.Model,java.lang.String) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.474 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/index2_second/theSystemInfo]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.page.Index2SecondCtl.theSystemInfo(java.lang.String) 30-Jul-2019 00:41:15.475 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/roleMenu/roleMenu]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.role_menu.RoleMenuCtl.toMenuManager(org.springframework.ui.Model) throws com.huichuang.radar_health_legal.exception.The404Exception 30-Jul-2019 00:41:15.476 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/roleMenu/deleteById]}" onto public boolean com.huichuang.radar_health_legal.controller.role_menu.RoleMenuCtl.deleteById(java.lang.Integer[],int) 30-Jul-2019 00:41:15.476 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/roleMenu/loadingRoleSelect]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.role_menu.RoleMenuCtl.loadingRoleSelect() 30-Jul-2019 00:41:15.476 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/roleMenu/inverseMenuById]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.role_menu.RoleMenuCtl.inverseMenuById(int) 30-Jul-2019 00:41:15.476 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/roleMenu/insertRoleMenu]}" onto public boolean com.huichuang.radar_health_legal.controller.role_menu.RoleMenuCtl.insertRoleMenu(int,int) 30-Jul-2019 00:41:15.477 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/options/roleMenu/getMenu]}" onto public java.lang.String com.huichuang.radar_health_legal.controller.role_menu.RoleMenuCtl.getPermission(java.lang.String,int) 30-Jul-2019 00:41:15.482 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 30-Jul-2019 00:41:15.482 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$MappingRegistry.register Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 30-Jul-2019 00:41:15.509 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController] 30-Jul-2019 00:41:15.534 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 30-Jul-2019 00:41:15.534 信息 [localhost-startStop-1] org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] ``` ## 请教大神,为什么访问不了页面,怎么解决?

我启动了`php-fpm`,但在我的CentOS7中找不到`php-fpm.sock`文件

<div class="post-text" itemprop="text"> <p>I started the <code>php-fpm</code>, but can not find the <code>php-fpm.sock</code> file in my CentOS7.</p> <p>I use this command installed the php7 and php7-fpm:</p> <pre><code>yum install php70w-common php70w-fpm php70w-opcache php70w-gd php70w-mysqlnd php70w-mbstring php70w-pecl-redis php70w-pecl-memcached php70w-devel </code></pre> <p>I started the php-fpm:</p> <pre><code>/usr/sbin/php-fpm </code></pre> <p>but I can not find the <code>php-fpm.sock</code> file in my CentOS7.2, I can find the <code>php-fpm.pid</code> in there:</p> <pre><code>/var/run/php-fpm/php-fpm.pid </code></pre> <hr> <p><strong>EDIT-01</strong></p> <p>I use the <code>ss -x -a</code>, did not find the <code>php-fpm.sock</code>.</p> <pre><code>$ ss -x -a Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port u_str LISTEN 0 128 /run/lvm/lvmpolld.socket 8458 * 0 u_dgr UNCONN 0 0 /run/systemd/shutdownd 8465 * 0 u_str LISTEN 0 128 /run/docker/libnetwork/d47cac5c2e8dd9490d56a5067ec009db0aa0e0df52b4321c51bff8f6062f6166.sock 110335003 * 0 u_str LISTEN 0 128 /var/run/docker.sock 110329383 * 0 u_dgr UNCONN 0 0 /run/systemd/cgroups-agent 3853374 * 0 u_str LISTEN 0 128 /run/systemd/private 110322498 * 0 u_str LISTEN 0 30 /var/run/NetworkManager/private 9026 * 0 u_dgr UNCONN 0 0 /run/systemd/notify 1355 * 0 u_str LISTEN 0 128 /var/run/dbus/system_bus_socket 9805 * 0 u_str LISTEN 0 128 /run/systemd/journal/stdout 1364 * 0 u_dgr UNCONN 0 0 /run/systemd/journal/socket 1367 * 0 u_dgr UNCONN 0 0 /dev/log 1369 * 0 u_seq LISTEN 0 128 /run/udev/control 3852388 * 0 u_str LISTEN 0 5 /var/run/screen/S-root/9870..www 128997222 * 0 u_str LISTEN 0 128 /var/run/docker/libcontainerd/docker-containerd.sock 110326421 * 0 u_str LISTEN 0 80 /var/lib/mysql/mysql.sock 4072947 * 0 u_str LISTEN 0 128 /run/lvm/lvmetad.socket 8373 * 0 u_str ESTAB 0 0 /run/systemd/journal/stdout 19620 * 18806 u_str ESTAB 0 0 * 18650 * 9123 u_str ESTAB 0 0 /run/systemd/journal/stdout 8155 * 17962 u_dgr UNCONN 0 0 * 110327085 * 1369 u_dgr UNCONN 0 0 * 9025 * 1369 u_str ESTAB 0 0 * 18179 * 19621 u_str ESTAB 0 0 * 8176 * 8175 u_str ESTAB 0 0 * 110322500 * 110325911 u_str ESTAB 0 0 * 15930 * 10704 u_str ESTAB 0 0 * 130300393 * 130300392 u_str ESTAB 0 0 /run/systemd/journal/stdout 110325177 * 110327913 u_str ESTAB 0 0 * 9028 * 15825 u_str ESTAB 0 0 * 130011125 * 130011124 u_str ESTAB 0 0 * 18806 * 19620 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 10705 * 19546 u_str ESTAB 0 0 * 18596 * 8177 u_str ESTAB 0 0 /run/systemd/journal/stdout 4070758 * 4074559 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 19553 * 9145 u_str ESTAB 0 0 /var/run/docker/libcontainerd/docker-containerd.sock 110329386 * 110332150 u_dgr UNCONN 0 0 * 9938 * 1369 u_dgr UNCONN 0 0 * 110322566 * 1369 u_str ESTAB 0 0 /run/systemd/journal/stdout 19621 * 18179 u_dgr UNCONN 0 0 * 9147 * 1369 u_str ESTAB 0 0 /run/systemd/journal/stdout 10704 * 15930 u_str ESTAB 0 0 * 110327913 * 110325177 u_str ESTAB 0 0 * 130011124 * 130011125 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 15825 * 9028 u_dgr UNCONN 0 0 * 18585 * 1367 u_str ESTAB 0 0 * 8175 * 8176 u_str ESTAB 0 0 * 130013581 * 130013580 u_str ESTAB 0 0 * 12146 * 9463 u_str ESTAB 0 0 * 17234 * 21801 u_str ESTAB 0 0 * 3851403 * 3849440 u_dgr UNCONN 0 0 * 3845588 * 1367 u_str ESTAB 0 0 * 9145 * 19553 u_dgr UNCONN 0 0 * 130300389 * 1369 u_str ESTAB 0 0 * 19546 * 10705 u_str ESTAB 0 0 * 130013580 * 130013581 u_str ESTAB 0 0 * 110333809 * 110331364 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 21801 * 17234 u_str ESTAB 0 0 /run/systemd/journal/stdout 8152 * 16751 u_str ESTAB 0 0 /run/systemd/journal/stdout 8151 * 15671 u_str ESTAB 0 0 /run/systemd/journal/stdout 110331364 * 110333809 u_str ESTAB 0 0 * 110322568 * 110322567 u_str ESTAB 0 0 * 4074559 * 4070758 u_str ESTAB 0 0 /run/systemd/journal/stdout 9463 * 12146 u_str ESTAB 0 0 * 17962 * 8155 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 110325911 * 110322500 u_str ESTAB 0 0 /run/systemd/journal/stdout 18006 * 15757 u_dgr UNCONN 0 0 * 3845606 * 3845607 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 9123 * 18650 u_str ESTAB 0 0 * 15757 * 18006 u_str ESTAB 0 0 * 110322567 * 110322568 u_dgr UNCONN 0 0 * 110329381 * 1367 u_dgr UNCONN 0 0 * 3845607 * 3845606 u_str ESTAB 0 0 * 16751 * 8152 u_str ESTAB 0 0 * 110332150 * 110329386 u_str ESTAB 0 0 /var/run/dbus/system_bus_socket 8177 * 18596 u_str ESTAB 0 0 * 15671 * 8151 u_dgr UNCONN 0 0 * 130020259 * 1367 u_str ESTAB 0 0 * 130300392 * 130300393 u_str ESTAB 0 0 /run/systemd/journal/stdout 3849440 * 3851403 </code></pre> </div>

centos7服务器中启动防火墙firewalld时间超长停止启动是怎么回事

firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled) Active: failed (Result: timeout) since Mon 2019-07-08 10:19:40 CST; 11min ago Docs: man:firewalld(1) Process: 7152 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS) Main PID: 7152 (code=exited, status=0/SUCCESS) 报错之前在防火墙端口处开启了3306端口,并且重载了,

centos yum skip-broken to work around the problem

错误如下: #yum install gcc Loaded plugins: fastestmirror, post-transaction-actions Setting up Install Process Loading mirror speeds from cached hostfile qa_mav_centos6 | 951 B 00:00 qa_mav_centos6.7_i686 | 951 B 00:00 qa_mav_centos6.7_noarch | 951 B 00:00 Resolving Dependencies --> Running transaction check ---> Package gcc.i686 0:4.4.7-16.el6 will be installed --> Processing Dependency: cpp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.i686 --> Processing Dependency: libgomp = 4.4.7-16.el6 for package: gcc-4.4.7-16.el6.i686 --> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-16.el6.i686 --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.7-16.el6.i686 --> Processing Dependency: libgomp.so.1 for package: gcc-4.4.7-16.el6.i686 --> Running transaction check ---> Package cloog-ppl.i686 0:0.15.7-1.2.el6 will be installed --> Processing Dependency: libppl.so.7 for package: cloog-ppl-0.15.7-1.2.el6.i686 --> Processing Dependency: libppl_c.so.2 for package: cloog-ppl-0.15.7-1.2.el6.i686 ---> Package cpp.i686 0:4.4.7-16.el6 will be installed --> Processing Dependency: libmpfr.so.1 for package: cpp-4.4.7-16.el6.i686 ---> Package glibc-devel.i686 0:2.12-1.166.el6_7.7 will be installed --> Processing Dependency: glibc = 2.12-1.166.el6_7.7 for package: glibc-devel-2.12-1.166.el6_7.7.i686 --> Processing Dependency: glibc-headers = 2.12-1.166.el6_7.7 for package: glibc-devel-2.12-1.166.el6_7.7.i686 --> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.166.el6_7.7.i686 ---> Package libgomp.i686 0:4.4.7-16.el6 will be installed --> Running transaction check ---> Package glibc-devel.i686 0:2.12-1.166.el6_7.7 will be installed --> Processing Dependency: glibc = 2.12-1.166.el6_7.7 for package: glibc-devel-2.12-1.166.el6_7.7.i686 ---> Package glibc-headers.i686 0:2.12-1.166.el6_7.7 will be installed --> Processing Dependency: glibc = 2.12-1.166.el6_7.7 for package: glibc-headers-2.12-1.166.el6_7.7.i686 ---> Package mpfr.i686 0:2.4.1-6.el6 will be installed ---> Package ppl.i686 0:0.10.2-11.el6 will be installed --> Finished Dependency Resolution Error: Package: glibc-devel-2.12-1.166.el6_7.7.i686 (qa_os_updates_3_0_centos6.7_32_3.0) Requires: glibc = 2.12-1.166.el6_7.7 Installed: glibc-2.12-1.192.el6.i686 (@qa_os_updates_3_3_centos6.7_32_3.3) glibc = 2.12-1.192.el6 Available: glibc-2.12-1.166.el6.i686 (qa_os_centos6.7_32) glibc = 2.12-1.166.el6 Available: glibc-2.12-1.166.el6_7.1.i686 (qa_os_updates_3_0_centos6.7_32_3.0) glibc = 2.12-1.166.el6_7.1 Available: glibc-2.12-1.166.el6_7.3.i686 (qa_os_updates_3_0_centos6.7_32_3.0) glibc = 2.12-1.166.el6_7.3 Available: glibc-2.12-1.166.el6_7.7.i686 (qa_os_updates_3_0_centos6.7_32_3.0) glibc = 2.12-1.166.el6_7.7 Error: Package: glibc-headers-2.12-1.166.el6_7.7.i686 (qa_os_updates_3_0_centos6.7_32_3.0) Requires: glibc = 2.12-1.166.el6_7.7 Installed: glibc-2.12-1.192.el6.i686 (@qa_os_updates_3_3_centos6.7_32_3.3) glibc = 2.12-1.192.el6 Available: glibc-2.12-1.166.el6.i686 (qa_os_centos6.7_32) glibc = 2.12-1.166.el6 Available: glibc-2.12-1.166.el6_7.1.i686 (qa_os_updates_3_0_centos6.7_32_3.0) glibc = 2.12-1.166.el6_7.1 Available: glibc-2.12-1.166.el6_7.3.i686 (qa_os_updates_3_0_centos6.7_32_3.0) glibc = 2.12-1.166.el6_7.3 Available: glibc-2.12-1.166.el6_7.7.i686 (qa_os_updates_3_0_centos6.7_32_3.0) glibc = 2.12-1.166.el6_7.7 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest 我的yum源如下: # ls /etc/yum.repos.d/ -l total 152 -rw------- 1 cmcadmin cmcadmin 1414 Oct 31 07:29 cmc_base.repo -rw-r--r-- 1 cmcadmin cmcadmin 113 Oct 31 07:23 cmc_sdeos.repo -rw------- 1 cmcadmin cmcadmin 119 Oct 31 07:29 cmc_sdetools.repo -rw------- 1 cmcadmin cmcadmin 310 Oct 31 07:29 cmc_tsp.repo -rw-r--r-- 1 root root 174 Sep 21 05:21 qa_mav_centos6.7_i686.repo -rw-r--r-- 1 root root 182 Sep 21 05:21 qa_mav_centos6.7_noarch.repo -rw-r--r-- 1 root root 167 Sep 21 05:21 qa_mav_centos6.repo -rw-r--r-- 1 root root 151 Oct 31 07:24 qa_os_centos6.7_32.repo -rw-r--r-- 1 root root 155 Sep 21 05:14 qa_os_centos6.7_i686.repo -rw-r--r-- 1 root root 163 Sep 21 05:14 qa_os_centos6.7_noarch.repo -rw-r--r-- 1 root root 170 Oct 31 07:24 qa_os_noarch_centos6.7_noarch.repo -rw-r--r-- 1 root root 183 Oct 31 07:24 qa_os_updates_3_0_centos6.7_32_3.0.repo -rw-r--r-- 1 root root 183 Oct 31 07:24 qa_os_updates_3_1_centos6.7_32_3.1.repo -rw-r--r-- 1 root root 183 Oct 31 07:24 qa_os_updates_3_2_centos6.7_32_3.2.repo -rw-r--r-- 1 root root 183 Oct 31 07:24 qa_os_updates_3_3_centos6.7_32_3.3.repo -rw-r--r-- 1 root root 183 Oct 31 07:24 qa_os_updates_3_4_centos6.7_32_3.4.repo -rw-r--r-- 1 root root 167 Oct 31 07:24 qa_os_updates_centos6.7_32.repo -rw-r--r-- 1 root root 191 Sep 21 05:14 qa_os_updates_centos6.7_i686_3.0.repo -rw-r--r-- 1 root root 191 Sep 21 05:14 qa_os_updates_centos6.7_i686_3.1.repo -rw-r--r-- 1 root root 187 Sep 21 05:14 qa_os_updates_centos6.7_noarch.repo -rw-r--r-- 1 root root 186 Oct 31 07:24 qa_os_updates_noarch_centos6.7_noarch.repo -rw-r--r-- 1 root root 167 Oct 31 07:24 qa_puppetlabs_centos6.7_32.repo -rw-r--r-- 1 root root 166 Sep 21 05:14 qa_puppetlabs_centos6.7_i686.repo -rw-r--r-- 1 root root 174 Sep 21 05:14 qa_puppetlabs_centos6.7_noarch.repo -rw-r--r-- 1 root root 193 Oct 31 07:24 qa_puppetlabs_dependencies_centos6.7_32.repo -rw-r--r-- 1 root root 205 Sep 21 05:14 qa_puppetlabs_dependencies_centos6.7_i686.repo -rw-r--r-- 1 root root 213 Sep 21 05:14 qa_puppetlabs_dependencies_centos6.7_noarch.repo -rw-r--r-- 1 root root 212 Oct 31 07:24 qa_puppetlabs_dependencies_noarch_centos6.7_noarch.repo -rw-r--r-- 1 root root 186 Oct 31 07:24 qa_puppetlabs_noarch_centos6.7_noarch.repo -rw-r--r-- 1 root root 169 Sep 21 05:14 qa_puppet_modules_webex_noarch.repo -rw-r--r-- 1 root root 151 Sep 21 05:21 qa_slim_noarch32.repo -rw-r--r-- 1 root root 163 Sep 21 05:21 qa_systools_centos6.7_i686.repo -rw-r--r-- 1 root root 170 Sep 21 05:21 qa_systools_centos6.7_noarch.repo -rw-r--r-- 1 root root 165 Oct 31 07:24 qa_systuning_centos6.7_32.repo -rw-r--r-- 1 root root 174 Sep 21 05:14 qa_systuning_centos6.7_i686.repo -rw-r--r-- 1 root root 182 Sep 21 05:14 qa_systuning_centos6.7_noarch.repo -rw-r--r-- 1 root root 184 Oct 31 07:24 qa_systuning_noarch_centos6.7_noarch.repo -rw-r--r-- 1 root root 153 Sep 21 05:21 qa_vmware_centos6.7_i686.repo 已经清除过源缓存:yum clean all 和重新生成源缓存: yum makecache 还是解决不了。

centos7上用rpmbuild建立rpm安装包问题(急)

centos7.1 php-5.6.25 $ ls rpmbuild/ BUILD BUILDROOT RPMS SOURCES SPECS SRPMS $cat rpmbuild/SPECS/php.spec Name: php Version: 5.6.25 Release: 1%{?dist} Summary: compiled from 5.6.25 by Kevin Group: System Environment/Daemons License: GPL URL: https://secure.php.net Source0: php-5.6.25.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: gcc, gcc-c++, openssl-devel Requires: wireshark-gnome %description php server. Compiled from 5.6.25 by Kevin %prep %setup -q %build ./configure '--with-libdir=lib64' '--prefix=/usr/local/php5.6' '--with-fpm-systemd' '--enable-fpm' '--enable-mbstring' '--with-mysql' '--with-mysqli' '--with-pdo-mysql' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir' '--with-curl' '--with-openssl' '--with-mcrypt' '--enable-zip' '--enable-intl' make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %defattr(-,root,root,-) /usr/local/php5.6/bin/* /usr/local/php5.6/sbin/* /usr/local/php5.6/include/* /usr/local/php5.6/php/php/fpm/* /usr/local/php5.6/php/man/man1/* /usr/local/php5.6/php/man/man8/* /usr/local/php5.6/lib/php/* /usr/local/php5.6/lib/php/extensions/* /usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/* /usr/local/php5.6/lib/php/build/* /usr/local/php5.6/lib/php/build/shtool/* /usr/local/php5.6/lib/php/.registry/* /usr/local/php5.6/lib/php/.channels/* /usr/local/php5.6/lib/php/Archive/* /usr/local/php5.6/lib/php/doc/* /usr/local/php5.6/lib/php/doc/Archive_Tar/* /usr/local/php5.6/lib/php/doc/Archive_Tar/docs/* /usr/local/php5.6/lib/php/doc/Structures_Graph/* /usr/local/php5.6/lib/php/doc/Structures_Graph/docs/* /usr/local/php5.6/lib/php/doc/Structures_Graph/docs/tutorials/* /usr/local/php5.6/lib/php/doc/Structures_Graph/docs/tutorials/Structures_Graph/* /usr/local/php5.6/lib/php/doc/Structures_Graph/LICENSE/* /usr/local/php5.6/lib/php/doc/XML_Util/* /usr/local/php5.6/lib/php/doc/XML_Util/examples/* /usr/local/php5.6/lib/php/doc/PEAR/* /usr/local/php5.6/lib/php/doc/PEAR/LICENSE/* /usr/local/php5.6/lib/php/doc/PEAR/INSTALL/* /usr/local/php5.6/lib/php/Console/* /usr/local/php5.6/lib/php/test/* /usr/local/php5.6/lib/php/test/Console_Getopt/* /usr/local/php5.6/lib/php/test/Console_Getopt/tests/* /usr/local/php5.6/lib/php/test/Structures_Graph/* /usr/local/php5.6/lib/php/test/Structures_Graph/tests/* /usr/local/php5.6/lib/php/test/XML_Util/* /usr/local/php5.6/lib/php/test/XML_Util/tests/* /usr/local/php5.6/lib/php/Structures/* /usr/local/php5.6/lib/php/Structures/Graph/* /usr/local/php5.6/lib/php/Structures/Graph/Manipulator/* /usr/local/php5.6/lib/php/XML/* /usr/local/php5.6/lib/php/OS/* /usr/local/php5.6/lib/php/PEAR/* /usr/local/php5.6/lib/php/PEAR/ChannelFile/* /usr/local/php5.6/lib/php/PEAR/Command/* /usr/local/php5.6/lib/php/PEAR/Downloader/* /usr/local/php5.6/lib/php/PEAR/Frontend/* /usr/local/php5.6/lib/php/PEAR/Installer/* /usr/local/php5.6/lib/php/PEAR/Installer/Role/* /usr/local/php5.6/lib/php/PEAR/PackageFile/* /usr/local/php5.6/lib/php/PEAR/PackageFile/Generator/* /usr/local/php5.6/lib/php/PEAR/PackageFile/Parser/* /usr/local/php5.6/lib/php/PEAR/PackageFile/v2/* /usr/local/php5.6/lib/php/PEAR/REST/* /usr/local/php5.6/lib/php/PEAR/Task/* /usr/local/php5.6/lib/php/PEAR/Task/Postinstallscript/* /usr/local/php5.6/lib/php/PEAR/Task/Replace/* /usr/local/php5.6/lib/php/PEAR/Task/Unixeol/* /usr/local/php5.6/lib/php/PEAR/Task/Windowseol/* /usr/local/php5.6/lib/php/PEAR/Validator/* /usr/local/php5.6/lib/php/data/* /usr/local/php5.6/lib/php/data/PEAR/* %config /usr/local/php5.6/etc/* /usr/local/php5.6/var/run/* /usr/local/php5.6/lib/* %dir /usr/local/php5.6/var/log/ %post cp /usr/local/php5.6/etc/php-fpm.conf.default /usr/local/php5.6/etc/php-fpm.conf ln -s /usr/local/php5.6/bin/php /usr/bin/php %changelog * Tue Aug 30 2016 Kevin<kevin_liao@163.com> 5.6.25 - first rpm from php-5.6.25 然后用一个user用户为centos,没在root下执行 $ rpmbuild -ba rpmbuild/SPECS/php.spec 最后报错 Build complete. Don't forget to run 'make test'. + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.QjJHDq + umask 022 + cd /home/centos/rpmbuild/BUILD + '[' /home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 '!=' / ']' + rm -rf /home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 ++ dirname /home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 + mkdir -p /home/centos/rpmbuild/BUILDROOT + mkdir /home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 + cd php-5.6.25 + rm -rf /home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 + make install DESTDIR=/home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64 Installing shared extensions: /usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/ Installing PHP CLI binary: /usr/local/php5.6/bin/ Installing PHP CLI man page: /usr/local/php5.6/php/man/man1/ Installing PHP FPM binary: /usr/local/php5.6/sbin/ Installing PHP FPM config: /usr/local/php5.6/etc/ Installing PHP FPM man page: /usr/local/php5.6/php/man/man8/ Installing PHP FPM status page: /usr/local/php5.6/php/php/fpm/ Installing PHP CGI binary: /usr/local/php5.6/bin/ Installing PHP CGI man page: /usr/local/php5.6/php/man/man1/ Installing build environment: /usr/local/php5.6/lib/php/build/ Installing header files: /usr/local/php5.6/include/php/ Installing helper programs: /usr/local/php5.6/bin/ program: phpize program: php-config Installing man pages: /usr/local/php5.6/php/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/local/php5.6/lib/php/ [PEAR] Archive_Tar - already installed: 1.4.0 [PEAR] Console_Getopt - already installed: 1.4.1 [PEAR] Structures_Graph- already installed: 1.1.1 [PEAR] XML_Util - already installed: 1.3.0 [PEAR] PEAR - already installed: 1.10.1 Wrote PEAR system config file at: /usr/local/php5.6/etc/pear.conf You may want to add: /usr/local/php5.6/lib/php to your php.ini include_path /home/centos/rpmbuild/BUILD/php-5.6.25/build/shtool install -c ext/phar/phar.phar /usr/local/php5.6/bin ln -s -f phar.phar /usr/local/php5.6/bin/phar Installing PDO headers: /usr/local/php5.6/include/php/ext/pdo/ + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /home/centos/rpmbuild/BUILD/php-5.6.25 find: '/home/centos/rpmbuild/BUILDROOT/php-5.6.25-1.el7.centos.x86_64': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.QjJHDq (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.QjJHDq (%install)

centos 7 重启network service 一直失败,开机启动服务已设置

[root@localhost test1]# systemctl status network.service ● network.service - LSB: Bring up/down networking Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled) Active: failed (Result: exit-code) since 五 2017-03-31 18:54:16 CST; 9s ago Docs: man:systemd-sysv-generator(8) Process: 5929 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE) 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master network[5929]: RTNETLINK answers: File exists 3月 31 18:54:16 master systemd[1]: network.service: control process exited, code...s=1 3月 31 18:54:16 master systemd[1]: Failed to start LSB: Bring up/down networking. 3月 31 18:54:16 master systemd[1]: Unit network.service entered failed state. 3月 31 18:54:16 master systemd[1]: network.service failed. Hint: Some lines were ellipsized, use -l to show in full.

mysql.sock的所有者所属组以及权限全部都是问号?求助神回复如何删除,亦或是如何重建,必有重谢!!!

mysql.sock的所有者所属组以及权限全部都是问号?求助神回复如何删除,亦或是如何重建,必有重谢!!! 代码如下: [root@DBServer-BAK lib]# cd /tmp [root@DBServer-BAK tmp]# ll ls: 无法访问mysql.sock: 输入/输出错误 总用量 40 drwxr-xr-x 2 root root 4096 6月 25 11:16 hsperfdata_root s????????? ? ? ? ? ? mysql.sock -rw------- 1 mysql mysql 6 6月 25 11:34 mysql.sock.lock -rwxrwxrwx 1 root root 45 6月 25 11:46 mysql.sock.tar.gz drwx------ 3 root root 4096 6月 25 11:16 systemd-private-0a3b207663d847a183bbad804fca0ebd-colord.service-sic0B1 drwx------ 3 root root 4096 6月 25 11:16 systemd-private-0a3b207663d847a183bbad804fca0ebd-cups.service-4zk1XQ drwx------ 3 root root 4096 6月 25 11:16 systemd-private-0a3b207663d847a183bbad804fca0ebd-rtkit-daemon.service-aM0JqV drwx------ 3 root root 4096 6月 20 07:42 systemd-private-6d51751ab45a4174b26d3719b9ce8eee-colord.service-1RN8yw drwx------ 3 root root 4096 6月 20 07:42 systemd-private-6d51751ab45a4174b26d3719b9ce8eee-cups.service-vXDiW2 drwx------ 3 root root 4096 6月 20 07:42 systemd-private-6d51751ab45a4174b26d3719b9ce8eee-rtkit-daemon.service-zCu1j4 drwx------ 2 ytomsbag ytomsbag 4096 6月 21 11:23 tracker-extract-files.1000 错误日志如下: 2019-06-25T05:00:27.641394Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2019-06-25T05:00:27.642251Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active. 2019-06-25T05:00:27.642263Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active. 2019-06-25T05:00:27.643015Z 0 [Note] InnoDB: Waiting for purge to start 2019-06-25T05:00:27.693118Z 0 [Note] InnoDB: 5.7.19 started; log sequence number 2539728 2019-06-25T05:00:27.693642Z 0 [Note] InnoDB: Loading buffer pool(s) from /usr/local/mysql/data/ib_buffer_pool 2019-06-25T05:00:27.693845Z 0 [Note] Plugin 'FEDERATED' is disabled. 2019-06-25T05:00:27.694464Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190625 13:00:27 2019-06-25T05:00:27.698589Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key 2019-06-25T05:00:27.698608Z 0 [Note] Server hostname (bind-address): '*'; port: 3306 2019-06-25T05:00:27.698645Z 0 [Note] IPv6 is available. 2019-06-25T05:00:27.698657Z 0 [Note] - '::' resolves to '::'; 2019-06-25T05:00:27.698702Z 0 [Note] Server socket created on IP: '::'. 2019-06-25T05:00:27.698752Z 0 [ERROR] Could not create unix socket lock file tmp/mysql.sock.lock. 2019-06-25T05:00:27.698766Z 0 [ERROR] Unable to setup unix socket lock file. 2019-06-25T05:00:27.698773Z 0 [ERROR] Aborting 2019-06-25T05:00:27.698781Z 0 [Note] Binlog end

docker第一次run mysql时问题, 247 258

![图片说明](https://img-ask.csdn.net/upload/201903/30/1553883525_146099.jpg) 正在搭建CentOS7的docker, pull完mysql, 在运行时报错. ``` /usr/bin/docker-current: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:258: applying cgroup configuration for process caused \"Cannot set property TasksAccounting, or unknown property.\"". ``` 查看日志发现 ``` container_linux.go:247: starting container process caused "process_linux.go:258: applying cgroup configuration for process caused \"Cannot set property TasksAccounting, or unknown property.\"" ``` 查看容器发现已将创建, 但未启动 ![图片说明](https://img-ask.csdn.net/upload/201903/30/1553883796_924505.jpg)

为什么我的php没有呈现? 为什么我的php页面空白?

<div class="post-text" itemprop="text"> <p>I'm trying to setup a wordpress server, but before that I need to get PHP working. Currently I have installed and configured nginx and php 7.3, but the php is not rendering, it is just showing text.</p> <p><strong>Main Issue:</strong> </p> <pre><code>[root@a-knapsack-sav ~]# cat /usr/share/nginx/html/info.php &lt;?php phpinfo(); ?&gt; [root@a-knapsack-sav ~]# curl http://localhost/info.php &lt;?php phpinfo(); ?&gt; </code></pre> <p>Obviously I should expect to see some content from the above, but I'm not. The following is all of the setup that I've done. Hopefully someone can see this and point out my likely omission.</p> <p><strong>What OS are you using?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# rpm -q centos-release centos-release-7-6.1810.2.el7.centos.x86_64 </code></pre> <p><strong>Is nginx even installed?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# nginx -v nginx version: nginx/1.15.12 </code></pre> <p><strong>Is php even installed?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# php -v PHP 7.3.5 (cli) (built: Apr 30 2019 08:37:17) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.5, Copyright (c) 1999-2018, by Zend Technologies </code></pre> <p><strong>Where is nginx installed?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# pwd /etc/nginx [root@a-knapsack-sav nginx]# ls conf.d fastcgi_params koi-utf koi-win mime.types modules nginx.conf scgi_params sites-available sites-enabled uwsgi_params win-utf </code></pre> <p><strong>Is php-fpm even running?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# systemctl status php-fpm ● php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled) Active: active (running) since Fri 2019-05-03 10:42:25 CDT; 7h ago Main PID: 2772 (php-fpm) Status: "Processes active: 0, idle: 5, Requests: 0, slow: 0, Traffic: 0req/sec" CGroup: /system.slice/php-fpm.service ├─2772 php-fpm: master process (/etc/php-fpm.conf) ├─2773 php-fpm: pool www ├─2774 php-fpm: pool www ├─2775 php-fpm: pool www ├─2776 php-fpm: pool www └─2777 php-fpm: pool www </code></pre> <p><strong>Is nginx even running?</strong></p> <pre><code>[root@a-knapsack-sav nginx]# systemctl status nginx ● nginx.service - nginx - high performance web server Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled) Active: active (running) since Fri 2019-05-03 17:19:55 CDT; 31min ago Docs: http://nginx.org/en/docs/ Process: 4299 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=0/SUCCESS) Process: 4302 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS) Main PID: 4303 (nginx) CGroup: /system.slice/nginx.service ├─4303 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf └─4304 nginx: worker process </code></pre> <p><strong>Did you edit you php.ini?</strong> Only the <code>cgi.fix_pathinfo</code> for security.</p> <pre><code>[root@a-knapsack-sav nginx]# cat /etc/php.ini | grep cgi.fix ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's ; http://php.net/cgi.fix-pathinfo cgi.fix_pathinfo=0 </code></pre> <p><strong>Did you update php's conf settings to for nginx?</strong><br> I think so.</p> <pre><code>[root@a-knapsack-sav ~]# cat /etc/php-fpm.d/www.conf | grep listen ; - 'listen' (unixsocket) ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on ; 'port' - to listen on a TCP socket to all addresses ; '/path/to/unix/socket' - to listen on a unix socket. listen = /var/run/php-fpm/php-fpm.sock ; Set listen(2) backlog. ;listen.backlog = 511 listen.owner = nobody listen.group = nobody ;listen.mode = 0660 ; When set, listen.owner and listen.group are ignored ;listen.acl_users = apache,nginx ;listen.acl_groups = ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address listen.allowed_clients = 127.0.0.1 ; listen queue - the number of request in the queue of pending ; connections (see backlog in listen(2)); ; max listen queue - the maximum number of requests in the queue ; listen queue len - the size of the socket queue of pending connections; ; listen queue: 0 ; max listen queue: 1 ; listen queue len: 42 [root@a-knapsack-sav ~]# cat /etc/php-fpm.d/www.conf | grep nginx user = nginx group = nginx ;listen.acl_users = apache,nginx </code></pre> <p><strong>Did you update nginx's conf properly?</strong> As far as I know to....</p> <pre><code>[root@a-knapsack-sav ~]# cat /etc/nginx/conf.d/default.conf server { listen 80; # listen [::]:80; server_name A.B.C.D; root /usr/share/nginx/html; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~* \.php$ { try_files $uri =404; fastcgi_index index.php; include fastcgi_params; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # fastcgi_param SCRIPT_NAME $fastcgi_script_name; } # location ~ /.ht { # deny all; # } } </code></pre> <p><strong>Do you have your info.php file in the correct place?</strong><br> Yezzir.</p> <pre><code>[root@a-knapsack-sav ~]# ls /usr/share/nginx/html 50x.html index.html info.php </code></pre> <p><strong>What about your nginx.conf?</strong></p> <pre><code>[root@a-knapsack-sav ~]# cat /etc/nginx/nginx.conf user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*.conf; server_names_hash_bucket_size 64; } </code></pre> <p><strong>What about your sites-available conf?</strong> I don't know if this is needed but I tried it anways.</p> <pre><code>[root@a-knapsack-sav ~]# cat /etc/nginx/sites-available/default.conf server { listen 80; server_name A.B.C.D; root /usr/share/nginx/html; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ .php$ { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # location ~ /.ht { # deny all; # } } </code></pre> <p><strong>Did you forget to link sites-enabled and sites-available?</strong> Nope :)</p> <pre><code>[root@a-knapsack-sav ~]# ls -lrt /etc/nginx/sites-enabled total 0 lrwxrwxrwx. 1 root root 39 May 3 12:40 default.conf -&gt; /etc/nginx/sites-available/default.conf </code></pre> <p>I hope this is everything. I think this is everything I've done. The index.html loads when I <code>curl http://localhost</code> but as shown above the info.php is not rendered when called. I think, I've set this up almost correct, but I'm pretty sure I missed something. Please let me know if something seems off. I tried to follow <a href="https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7" rel="nofollow noreferrer">https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7</a> (mysql is on another server). Also if there is any configuration that I need to change so that <code>curl http://A.B.C.D</code> doesn't hang and returns like <code>curl http://localhost</code>, I'd appreciate it. Thanks :)</p> <p>Edit:</p> <p><strong>What is your entire config?</strong></p> <pre><code>[root@a-knapsack-sav ~]# nginx -T nginx: [warn] conflicting server name "A.B.C.D" on 0.0.0.0:80, ignored nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful # configuration file /etc/nginx/nginx.conf: user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on; #tcp_nopush on; keepalive_timeout 65; #gzip on; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*.conf; server_names_hash_bucket_size 64; } # configuration file /etc/nginx/mime.types: types { text/html html htm shtml; text/css css; text/xml xml; image/gif gif; image/jpeg jpeg jpg; application/javascript js; application/atom+xml atom; application/rss+xml rss; text/mathml mml; text/plain txt; text/vnd.sun.j2me.app-descriptor jad; text/vnd.wap.wml wml; text/x-component htc; image/png png; image/svg+xml svg svgz; image/tiff tif tiff; image/vnd.wap.wbmp wbmp; image/webp webp; image/x-icon ico; image/x-jng jng; image/x-ms-bmp bmp; font/woff woff; font/woff2 woff2; application/java-archive jar war ear; application/json json; application/mac-binhex40 hqx; application/msword doc; application/pdf pdf; application/postscript ps eps ai; application/rtf rtf; application/vnd.apple.mpegurl m3u8; application/vnd.google-earth.kml+xml kml; application/vnd.google-earth.kmz kmz; application/vnd.ms-excel xls; application/vnd.ms-fontobject eot; application/vnd.ms-powerpoint ppt; application/vnd.oasis.opendocument.graphics odg; application/vnd.oasis.opendocument.presentation odp; application/vnd.oasis.opendocument.spreadsheet ods; application/vnd.oasis.opendocument.text odt; application/vnd.openxmlformats-officedocument.presentationml.presentation pptx; application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx; application/vnd.openxmlformats-officedocument.wordprocessingml.document docx; application/vnd.wap.wmlc wmlc; application/x-7z-compressed 7z; application/x-cocoa cco; application/x-java-archive-diff jardiff; application/x-java-jnlp-file jnlp; application/x-makeself run; application/x-perl pl pm; application/x-pilot prc pdb; application/x-rar-compressed rar; application/x-redhat-package-manager rpm; application/x-sea sea; application/x-shockwave-flash swf; application/x-stuffit sit; application/x-tcl tcl tk; application/x-x509-ca-cert der pem crt; application/x-xpinstall xpi; application/xhtml+xml xhtml; application/xspf+xml xspf; application/zip zip; application/octet-stream bin exe dll; application/octet-stream deb; application/octet-stream dmg; application/octet-stream iso img; application/octet-stream msi msp msm; audio/midi mid midi kar; audio/mpeg mp3; audio/ogg ogg; audio/x-m4a m4a; audio/x-realaudio ra; video/3gpp 3gpp 3gp; video/mp2t ts; video/mp4 mp4; video/mpeg mpeg mpg; video/quicktime mov; video/webm webm; video/x-flv flv; video/x-m4v m4v; video/x-mng mng; video/x-ms-asf asx asf; video/x-ms-wmv wmv; video/x-msvideo avi; } # configuration file /etc/nginx/conf.d/default.conf: server { listen 80; # listen [::]:80; server_name A.B.C.D; root /usr/share/nginx/html; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~* \.php$ { try_files $uri =404; fastcgi_index index.php; include fastcgi_params; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # fastcgi_param SCRIPT_NAME $fastcgi_script_name; } # location ~ /.ht { # deny all; # } } # configuration file /etc/nginx/fastcgi_params: fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param REQUEST_SCHEME $scheme; fastcgi_param HTTPS $https if_not_empty; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; # PHP only, required if PHP was built with --enable-force-cgi-redirect fastcgi_param REDIRECT_STATUS 200; # configuration file /etc/nginx/conf.d/default_original.conf: server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; location / { root /usr/share/nginx/html; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #} } # configuration file /etc/nginx/sites-enabled/default.conf: server { listen 80; server_name A.B.C.D; root /usr/share/nginx/html; index index.php index.html index.htm; location / { try_files $uri $uri/ =404; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ .php$ { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } # location ~ /.ht { # deny all; # } } </code></pre> </div>

mariadb安装后,非root无法mysql登录

**系统** ``` Ubuntu 16 ``` **安装方式** ``` sudo apt-get install mariadb-server python-pymysql ``` ** 两个疑问 ** 1. 非系统root不能通过mysql登录 2. MariaDB 接受空用户登录, 如何取消? user表没有 求科普, 感激不尽! ** 说明 ** * mysql已确认开启 ``` nginx@nginx-virtual-machine:~$ service mysql status ● mysql.service - LSB: Start and stop the mysql database server daemon Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled) Active: active (running) since Wed 2017-09-27 19:17:51 ULAST; 16h ago Docs: man:systemd-sysv-generator(8) Process: 29567 ExecStop=/etc/init.d/mysql stop (code=exited, status=0/SUCCESS) Process: 29603 ExecStart=/etc/init.d/mysql start (code=exited, status=0/SUCCESS) CGroup: /system.slice/mysql.service ├─29633 /bin/bash /usr/bin/mysqld_safe ├─29777 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/m └─29778 logger -t mysqld -p daemon error ``` * root登录 ``` nginx@nginx-virtual-machine:~$ sudo mysql -uroot -psqlpass Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 46 Server version: 10.0.31-MariaDB-0ubuntu0.16.04.2 Ubuntu 16.04 Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | my_test | | mysql | | performance_schema | +--------------------+ 4 rows in set (0.00 sec) MariaDB [(none)]> ``` * 非root登录 ``` nginx@nginx-virtual-machine:~$ mysql -uroot -psqlpass ERROR 1698 (28000): Access denied for user 'root'@'localhost' ``` * root用户, 空用户登录 ``` root@nginx-virtual-machine:/home/nginx# mysql Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 48 Server version: 10.0.31-MariaDB-0ubuntu0.16.04.2 Ubuntu 16.04 Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> ``` 但是查询不到默认用户 ``` MariaDB [mysql]> select * from user where 0 = length(User); Empty set (0.00 sec) MariaDB [mysql]> select count(1) from user; +----------+ | count(1) | +----------+ | 1 | +----------+ 1 row in set (0.00 sec) ``` 通过安全加固删除匿名账户后, 任然可以匿名登录. ``` nginx@nginx-virtual-machine:~$ sudo mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MariaDB to secure it, we'll need the current password for the root user. If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MariaDB root user without the proper authorisation. You already have a root password set, so you can safely answer 'n'. Change the root password? [Y/n] n ... skipping. By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] y ... Success! By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB! ```

main函数return -1,服务设置了Restart=on-failure

自己项目上的进程xxx.service上设置了Restart=on-failure,但是实际上测试发现main函数中return -1后进程未自动重启,有人知道是为什么吗? 系统是centos7.0.1406

error: unpacking of archive failed on file /usr/bin/funzip;5db1c14a: cpio: open failed - No such file or director

[root@localhost ~]# rpm -ivh unzip-6.1c-6.mga8.x86_64.rpm warning: unzip-6.1c-6.mga8.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 80420f66: NOKEY Preparing... ################################# [100%] Updating / installing... 1:unzip-6.1c-6.mga8 ################################# [100%] error: unpacking of archive failed on file /usr/bin/funzip;5db1c14a: cpio: open failed - No such file or directory error: unzip-6.1c-6.mga8.x86_64: install failed 最近在centos7上 安装zip unzip 总是失败,有遇到类问题的,希望指点一二 ps : 不要告诉我yum直接装 ,已经试了很多次了 ,问题一样

Linux磁盘100%已用求解答

系统版本 [root@localhost mysql]# cat /etc/centos-release CentOS Linux release 7.3.1611 (Core) [root@localhost mysql]# df -h 文件系统 容量 已用 可用 已用% 挂载点 /dev/mapper/cl-root 50G 50G 20K 100% / devtmpfs 3.9G 0 3.9G 0% /dev tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 3.9G 377M 3.5G 10% /run tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/sda1 1014M 139M 876M 14% /boot /dev/mapper/cl-home 198G 23G 175G 12% /home tmpfs 783M 0 783M 0% /run/user/0 [root@localhost mysql]# 这里inode值比较大,是因为/usr文件中文件比较多 [root@localhost mysql]# df -i 文件系统 Inode 已用(I) 可用(I) 已用(I)% 挂载点 /dev/mapper/cl-root 55680 49112 6568 89% / devtmpfs 998610 364 998246 1% /dev tmpfs 1001351 1 1001350 1% /dev/shm tmpfs 1001351 576 1000775 1% /run tmpfs 1001351 16 1001335 1% /sys/fs/cgroup /dev/sda1 524288 330 523958 1% /boot /dev/mapper/cl-home 103346176 25421 103320755 1% /home tmpfs 1001351 1 1001350 1% /run/user/0 [root@localhost mysql]# find /usr | wc -l 44229 注:/home由于挂在另外一个磁盘下,所以可以无视。 那在/dev/mapper/cl-root这块盘下大致就用了(29-23=6G) [root@localhost mysql]# du -sh / 29G [root@localhost mysql]# du -sh /* 0 /bin 106M /boot 0 /dev 30M /etc 23G /home 0 /lib 0 /lib64 0 /media 0 /mnt 0 /proc 69M /root 377M /run 0 /sbin 0 /srv 0 /sys 2.0M /tmp 2.0G /usr 3.5G /var 前面这台机器不归我管,后来出了这个问题让我来弄。 经理说,前面这台机器还好好的,有一天重启了一下,然后就发现mysql启动不了了,查看一下磁盘用了100%了,然后就删了一些日志文件,大概清理了2G,然后重启一下,结果重启完又变成100%,清理出来的2G不见了 已尝试: 1)怀疑过中毒了,但是CPU没有异样,就磁盘有问题 [root@localhost mysql]# top top - 18:43:57 up 27 days, 19:01, 2 users, load average: 0.12, 0.13, 0.27 Tasks: 126 total, 1 running, 125 sleeping, 0 stopped, 0 zombie %Cpu(s): 1.1 us, 2.3 sy, 0.0 ni, 96.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 8010812 total, 141016 free, 2661320 used, 5208476 buff/cache KiB Swap: 8257532 total, 8223976 free, 33556 used. 4563024 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9220 root 20 0 6698700 359604 9476 S 5.6 4.5 733:59.96 java 12082 root 20 0 6449520 1.702g 12528 S 2.6 22.3 36:43.26 java 25297 root 20 0 357720 9564 2252 S 2.3 0.1 442:00.22 xfrpc 32298 root 20 0 430396 9236 2256 S 2.3 0.1 437:20.19 xfrpc 3133 root 20 0 169688 10560 1104 S 0.7 0.1 114:14.54 redis-server 2993 root 20 0 157704 2216 1536 R 0.3 0.0 0:00.05 top 1 root 20 0 45816 5408 3004 S 0.0 0.1 1:05.65 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:01.04 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:13.22 ksoftirqd/0 7 root rt 0 0 0 0 S 0.0 0.0 0:03.42 migration/0 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 9 root 20 0 0 0 0 S 0.0 0.0 29:27.01 rcu_sched 10 root rt 0 0 0 0 S 0.0 0.0 0:22.34 watchdog/0 11 root rt 0 0 0 0 S 0.0 0.0 0:22.23 watchdog/1 12 root rt 0 0 0 0 S 0.0 0.0 0:01.89 migration/1 13 root 20 0 0 0 0 S 0.0 0.0 0:23.27 ksoftirqd/1 16 root rt 0 0 0 0 S 0.0 0.0 0:23.70 watchdog/2 17 root rt 0 0 0 0 S 0.0 0.0 0:02.59 migration/2 18 root 20 0 0 0 0 S 0.0 0.0 0:22.26 ksoftirqd/2 2)主要运行的程序有 tomcat,redis,mosquitto 我已经排除了tomcat日志过大的问题,我重启过tomcat,如果过大的话,重启的时候已经没掉了。 redis占用的内存看了下,也不是很大,才百来兆。 3)losf | grep delete 也已经试过了,没发现有什么占用着 因为重启之后磁盘还是满的,也不太可能是什么进程占用着文件没释放 [root@localhost conf]# lsof | grep deleted tuned 930 root 7u REG 253,0 4096 67161125 /tmp/ffirMlJJF (deleted) gmain 930 2261 root 7u REG 253,0 4096 67161125 /tmp/ffirMlJJF (deleted) tuned 930 2262 root 7u REG 253,0 4096 67161125 /tmp/ffirMlJJF (deleted) tuned 930 2263 root 7u REG 253,0 4096 67161125 /tmp/ffirMlJJF (deleted) tuned 930 2264 root 7u REG 253,0 4096 67161125 /tmp/ffirMlJJF (deleted) [root@localhost conf]# 4)磁盘坏了~ 如果是这种情况,就莫得办法咯。 求大神帮忙~先谢过了。

nginx启动报错 Failed to start A high performance web server and a reverse proxy server.

``` root@tedu:/etc/nginx/sites-enabled# vim default ``` 修改了default文件 ``` location/static{ root /home/tarena/Download/ajax_day01_all/ajax_day01_all/mysite8; } ``` 增加了静态地址 分号没有漏掉 ``` sudo /etc/init.d/nginx restart ``` 运行报错 nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since 三 2019-10-30 14:36:12 CST; 13min ago Process: 13022 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exite Process: 12334 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 13098 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) Main PID: 12338 (code=exited, status=0/SUCCESS) 10月 30 14:36:12 tedu systemd[1]: Starting A high performance web server and a reverse proxy server... 10月 30 14:36:12 tedu nginx[13098]: nginx: [emerg] unknown directive "location/static" in /etc/nginx/sites-enabled/de 10月 30 14:36:12 tedu nginx[13098]: nginx: configuration file /etc/nginx/nginx.conf test failed 10月 30 14:36:12 tedu systemd[1]: nginx.service: Control process exited, code=exited status=1 10月 30 14:36:12 tedu systemd[1]: Failed to start A high performance web server and a reverse proxy server. 10月 30 14:36:12 tedu systemd[1]: nginx.service: Unit entered failed state. 10月 30 14:36:12 tedu systemd[1]: nginx.service: Failed with result 'exit-code'. ~ ~

Php-fpm不会监听端口

<div class="post-text" itemprop="text"> <p>I have been trying to get php-fpm (w nginx) to work with the default port(9000) and it just does not work.I am trying to use php 7.1 (also tried 7.0 and 5.6). The service started fine and I can also see the port open and being listened in ss/netstat. There are no errors in the php-fpm log. Initially I thought it could be an nginx issue, But when I try to test the connection directly using cgi-fcgi -bind -connect 127.0.0.1:9000 it just does not respond and I eventually get a could not connect error. The request doesnot get logged in the access log (when access log enabled).</p> <pre><code> # cgi-fcgi -bind -connect 127.0.0.1:9000 Could not connect to 127.0.0.1:9000 </code></pre> <p>And some times after a restart it just randomly works for a few requests (sometimes 1 request, sometimes 10, varies) and then it just stops working again. The request count in the php-fpm status no longer increases. There is no rhyme or rythm to its behaviour and I could not find a consistent way to get it to work even for those few requests.<br> The issue has been haunting me for 2 days now and its soo inconsistent with nothing in logs. Please help. Thanks for the replies in advance.</p> <p><br> <br> <strong>What I tried so far -</strong> </p> <ol> <li>Tested with nginx to make sure that its not <em>cgi-fcgi</em> issue. Same problem in nginx too could not connect to upstream.</li> <li>Setting the php-fpm log level to debug to see if something pops up. Nothing out of the ordinary found.</li> <li>Enabling access log to see if the request atleast reaches php-fpm. <em>No entry in the access log for the failed requests.</em></li> <li>Changed <em>listen</em> value to 9000 and 0.0.0.0:9000 and the external_ip:9000. All of these changes didnot change the behaviour.</li> <li>Changed to other ports to ensure its not the port number being in use.</li> <li>Increased and decreased <em>pm.start_servers</em> along with other related values to check if its processes running out. Didnot effect, infact all process just idle all the time.</li> <li>Removing and re installing php-fpm</li> <li>Resetting the config to ensure its not a config issue</li> <li>Installing php-fpm from remi repo instead of webstatic repo to ensure its not a bad build</li> <li>Downgrading to php 7.0</li> <li>Stopping all other services to make sure there are no conflicts or alike</li> <li>Change listen.allowed_clients to 'any' to make sure that its not the client being rejected</li> <li>Nuked the server and reinstalled the OS itself to ensure that its not an OS issue after trying multiple things for 2 days straight. (Empty server with no data)</li> <li>It does work absolutely fine with a unix socket instead of port. But a socket will not work for the requirement as if it needs to get anything more than a 100 rows from mysql, I noticed it to just timeout (&gt; 30s) in socket mode.</li> </ol> <p><br> <br></p> <p><strong>Information &amp; Config Below</strong></p> <p>Operating System - CentOS 7</p> <p>PHP-FPM Service status</p> <pre><code> #service php-fpm status Redirecting to /bin/systemctl status php-fpm.service * php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled; vendor preset: disabled) Active: active (running) since Sun 2017-04-16 17:12:06 EDT; 14s ago Main PID: 2392 (php-fpm) Status: "Processes active: 0, idle: 5, Requests: 0, slow: 0, Traffic: 0req/sec" CGroup: /system.slice/php-fpm.service |-2392 php-fpm: master process (/etc/php-fpm.conf) |-2393 php-fpm: pool www |-2394 php-fpm: pool www |-2395 php-fpm: pool www |-2396 php-fpm: pool www `-2397 php-fpm: pool www Apr 16 17:12:06 2740.servermania.com systemd[1]: Starting The PHP FastCGI Pr.... Apr 16 17:12:06 2740.servermania.com systemd[1]: Started The PHP FastCGI Pro.... Hint: Some lines were ellipsized, use -l to show in full. </code></pre> <p>Socketstat / netstat . (Last one is php-fpm)</p> <pre><code> # ss -tapn State Recv-Q Send-Q Local Address:Port Peer Address:Port Cannot open netlink socket: Protocol not supported LISTEN 0 0 *:111 *:* users:(("rpcbind",pid=1588,fd=4),("systemd",pid=1,fd=42)) LISTEN 0 0 *:80 *:* users:(("httpd",pid=1871,fd=3),("httpd",pid=1870,fd=3)) LISTEN 0 0 *:22 *:* users:(("sshd",pid=1512,fd=3)) LISTEN 0 0 127.0.0.1:25 *:* users:(("sendmail",pid=416,fd=4)) LISTEN 0 0 127.0.0.1:9000 *:* users:(("php-fpm",pid=2397,fd=0),("php-fpm",pid=2396,fd=0),("php-fpm",pid=2395,fd=0),("php-fpm",pid=2394,fd=0),("php-fpm",pid=2393,fd=0),("php-fpm",pid=2392,fd=6)) </code></pre> <p>The default php-fpm config I am currently trying to get to work.( My config is not working, hence trying to get it to work atleast in default). </p><pre><code>; Start a new pool named 'www'. [www] <pre><code>; Unix user/group of processes ; Note: The user is mandatory. If the group is not set, the default user's group ; will be used. ; RPM: apache Choosed to be able to access some dir as httpd user = apache ; RPM: Keep a group allowed to write in log dir. group = apache ; The address on which to accept FastCGI requests. ; Valid syntaxes are: ; 'ip.add.re.ss:port' - to listen on a TCP socket to a specific IPv4 address on ; a specific port; ; '[ip:6:addr:ess]:port' - to listen on a TCP socket to a specific IPv6 address on ; a specific port; ; 'port' - to listen on a TCP socket to all addresses ; (IPv6 and IPv4-mapped) on a specific port; ; '/path/to/unix/socket' - to listen on a unix socket. ; Note: This value is mandatory. listen = 127.0.0.1:9000 ; Set listen(2) backlog. ; Default Value: 511 (-1 on FreeBSD and OpenBSD) ;listen.backlog = 511 ; Set permissions for unix socket, if one is used. In Linux, read/write ; permissions must be set in order to allow connections from a web server. Many ; BSD-derived systems allow connections regardless of permissions. ; Default Values: user and group are set as the running user ; mode is set to 0660 ;listen.owner = nobody ;listen.group = nobody ;listen.mode = 0660 ; When POSIX Access Control Lists are supported you can set them using ; these options, value is a comma separated list of user/group names. ; When set, listen.owner and listen.group are ignored ;listen.acl_users = ;listen.acl_groups = ; List of addresses (IPv4/IPv6) of FastCGI clients which are allowed to connect. ; Equivalent to the FCGI_WEB_SERVER_ADDRS environment variable in the original ; PHP FCGI (5.2.2+). Makes sense only with a tcp listening socket. Each address ; must be separated by a comma. If this value is left blank, connections will be ; accepted from any ip address. ; Default Value: any listen.allowed_clients = any ; Specify the nice(2) priority to apply to the pool processes (only if set) ; The value can vary from -19 (highest priority) to 20 (lower priority) ; Note: - It will only work if the FPM master process is launched as root ; - The pool processes will inherit the master process priority ; unless it specified otherwise ; Default Value: no set ; process.priority = -19 ; Choose how the process manager will control the number of child processes. ; Possible Values: ; static - a fixed number (pm.max_children) of child processes; ; dynamic - the number of child processes are set dynamically based on the ; following directives. With this process management, there will be ; always at least 1 children. ; pm.max_children - the maximum number of children that can ; be alive at the same time. ; pm.start_servers - the number of children created on startup. ; pm.min_spare_servers - the minimum number of children in 'idle' ; state (waiting to process). If the number ; of 'idle' processes is less than this ; number then some children will be created. ; pm.max_spare_servers - the maximum number of children in 'idle' ; state (waiting to process). If the number ; of 'idle' processes is greater than this ; number then some children will be killed. ; ondemand - no children are created at startup. Children will be forked when ; new requests will connect. The following parameter are used: ; pm.max_children - the maximum number of children that ; can be alive at the same time. ; pm.process_idle_timeout - The number of seconds after which ; an idle process will be killed. ; Note: This value is mandatory. pm = dynamic ; The number of child processes to be created when pm is set to 'static' and the ; maximum number of child processes when pm is set to 'dynamic' or 'ondemand'. ; This value sets the limit on the number of simultaneous requests that will be ; served. Equivalent to the ApacheMaxClients directive with mpm_prefork. ; Equivalent to the PHP_FCGI_CHILDREN environment variable in the original PHP ; CGI. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' ; Note: This value is mandatory. pm.max_children = 50 ; The number of child processes created on startup. ; Note: Used only when pm is set to 'dynamic' ; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2 pm.start_servers = 5 ; The desired minimum number of idle server processes. ; Note: Used only when pm is set to 'dynamic' ; Note: Mandatory when pm is set to 'dynamic' pm.min_spare_servers = 5 ; The desired maximum number of idle server processes. ; Note: Used only when pm is set to 'dynamic' ; Note: Mandatory when pm is set to 'dynamic' pm.max_spare_servers = 35 ; The number of seconds after which an idle process will be killed. ; Note: Used only when pm is set to 'ondemand' ; Default Value: 10s ;pm.process_idle_timeout = 10s; ; The number of requests each child process should execute before respawning. ; This can be useful to work around memory leaks in 3rd party libraries. For ; endless request processing specify '0'. Equivalent to PHP_FCGI_MAX_REQUESTS. ; Default Value: 0 ;pm.max_requests = 500 ; The URI to view the FPM status page. If this value is not set, no URI will be ; recognized as a status page. It shows the following informations: ; pool - the name of the pool; ; process manager - static, dynamic or ondemand; ; start time - the date and time FPM has started; ; start since - number of seconds since FPM has started; ; accepted conn - the number of request accepted by the pool; ; listen queue - the number of request in the queue of pending ; connections (see backlog in listen(2)); ; max listen queue - the maximum number of requests in the queue ; of pending connections since FPM has started; ; listen queue len - the size of the socket queue of pending connections; ; idle processes - the number of idle processes; ; active processes - the number of active processes; ; total processes - the number of idle + active processes; ; max active processes - the maximum number of active processes since FPM ; has started; ; max children reached - number of times, the process limit has been reached, ; when pm tries to start more children (works only for ; pm 'dynamic' and 'ondemand'); ; Value are updated in real time. ; Example output: ; pool: www ; process manager: static ; start time: 01/Jul/2011:17:53:49 +0200 ; start since: 62636 ; accepted conn: 190460 ; listen queue: 0 ; max listen queue: 1 ; listen queue len: 42 ; idle processes: 4 ; active processes: 11 ; total processes: 15 ; max active processes: 12 ; max children reached: 0 ; ; By default the status page output is formatted as text/plain. Passing either ; 'html', 'xml' or 'json' in the query string will return the corresponding ; output syntax. Example: ; http://www.foo.bar/status ; http://www.foo.bar/status?json ; http://www.foo.bar/status?html ; http://www.foo.bar/status?xml ; ; By default the status page only outputs short status. Passing 'full' in the ; query string will also return status for each pool process. ; Example: ; http://www.foo.bar/status?full ; http://www.foo.bar/status?json&amp;full ; http://www.foo.bar/status?html&amp;full ; http://www.foo.bar/status?xml&amp;full ; The Full status returns for each process: ; pid - the PID of the process; ; state - the state of the process (Idle, Running, ...); ; start time - the date and time the process has started; ; start since - the number of seconds since the process has started; ; requests - the number of requests the process has served; ; request duration - the duration in 袖s of the requests; ; request method - the request method (GET, POST, ...); ; request URI - the request URI with the query string; ; content length - the content length of the request (only with POST); ; user - the user (PHP_AUTH_USER) (or '-' if not set); ; script - the main script called (or '-' if not set); ; last request cpu - the %cpu the last request consumed ; it's always 0 if the process is not in Idle state ; because CPU calculation is done when the request ; processing has terminated; ; last request memory - the max amount of memory the last request consumed ; it's always 0 if the process is not in Idle state ; because memory calculation is done when the request ; processing has terminated; ; If the process is in Idle state, then informations are related to the ; last request the process has served. Otherwise informations are related to ; the current request being served. ; Example output: ; ************************ ; pid: 31330 ; state: Running ; start time: 01/Jul/2011:17:53:49 +0200 ; start since: 63087 ; requests: 12808 ; request duration: 1250261 ; request method: GET ; request URI: /test_mem.php?N=10000 ; content length: 0 ; user: - ; script: /home/fat/web/docs/php/test_mem.php ; last request cpu: 0.00 ; last request memory: 0 ; ; Note: There is a real-time FPM status monitoring sample web page available ; It's available in: @EXPANDED_DATADIR@/fpm/status.html ; ; Note: The value must start with a leading slash (/). The value can be ; anything, but it may not be a good idea to use the .php extension or it ; may conflict with a real PHP file. ; Default Value: not set pm.status_path = /status ; The ping URI to call the monitoring page of FPM. If this value is not set, no ; URI will be recognized as a ping page. This could be used to test from outside ; that FPM is alive and responding, or to ; - create a graph of FPM availability (rrd or such); ; - remove a server from a group if it is not responding (load balancing); ; - trigger alerts for the operating team (24/7). ; Note: The value must start with a leading slash (/). The value can be ; anything, but it may not be a good idea to use the .php extension or it ; may conflict with a real PHP file. ; Default Value: not set ping.path = /ping ; This directive may be used to customize the response of a ping request. The ; response is formatted as text/plain with a 200 response code. ; Default Value: pong ;ping.response = pong ; The access log file ; Default: not set access.log = /var/log/php-fpm/access.log ; The access log format. ; The following syntax is allowed ; %%: the '%' character ; %C: %CPU used by the request ; it can accept the following format: ; - %{user}C for user CPU only ; - %{system}C for system CPU only ; - %{total}C for user + system CPU (default) ; %d: time taken to serve the request ; it can accept the following format: ; - %{seconds}d (default) ; - %{miliseconds}d ; - %{mili}d ; - %{microseconds}d ; - %{micro}d ; %e: an environment variable (same as $_ENV or $_SERVER) ; it must be associated with embraces to specify the name of the env ; variable. Some exemples: ; - server specifics like: %{REQUEST_METHOD}e or %{SERVER_PROTOCOL}e ; - HTTP headers like: %{HTTP_HOST}e or %{HTTP_USER_AGENT}e ; %f: script filename ; %l: content-length of the request (for POST request only) ; %m: request method ; %M: peak of memory allocated by PHP ; it can accept the following format: ; - %{bytes}M (default) ; - %{kilobytes}M ; - %{kilo}M ; - %{megabytes}M ; - %{mega}M ; %n: pool name ; %o: output header ; it must be associated with embraces to specify the name of the header: ; - %{Content-Type}o ; - %{X-Powered-By}o ; - %{Transfert-Encoding}o ; - .... ; %p: PID of the child that serviced the request ; %P: PID of the parent of the child that serviced the request ; %q: the query string ; %Q: the '?' character if query string exists ; %r: the request URI (without the query string, see %q and %Q) ; %R: remote IP address ; %s: status (response code) ; %t: server time the request was received ; it can accept a strftime(3) format: ; %d/%b/%Y:%H:%M:%S %z (default) ; The strftime(3) format must be encapsuled in a %{&lt;strftime_format&gt;}t tag ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t ; %T: time the log has been written (the request has finished) ; it can accept a strftime(3) format: ; %d/%b/%Y:%H:%M:%S %z (default) ; The strftime(3) format must be encapsuled in a %{&lt;strftime_format&gt;}t tag ; e.g. for a ISO8601 formatted timestring, use: %{%Y-%m-%dT%H:%M:%S%z}t ; %u: remote user ; ; Default: "%R - %u %t \"%m %r\" %s" ;access.format = "%R - %u %t \"%m %r%Q%q\" %s %f %{mili}d %{kilo}M %C%%" ; The log file for slow requests ; Default Value: not set ; Note: slowlog is mandatory if request_slowlog_timeout is set slowlog = /var/log/php-fpm/www-slow.log ; The timeout for serving a single request after which a PHP backtrace will be ; dumped to the 'slowlog' file. A value of '0s' means 'off'. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) ; Default Value: 0 ;request_slowlog_timeout = 0 ; The timeout for serving a single request after which the worker process will ; be killed. This option should be used when the 'max_execution_time' ini option ; does not stop script execution for some reason. A value of '0' means 'off'. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) ; Default Value: 0 ;request_terminate_timeout = 0 ; Set open file descriptor rlimit. ; Default Value: system defined value ;rlimit_files = 1024 ; Set max core size rlimit. ; Possible Values: 'unlimited' or an integer greater or equal to 0 ; Default Value: system defined value ;rlimit_core = 0 ; Chroot to this directory at the start. This value must be defined as an ; absolute path. When this value is not set, chroot is not used. ; Note: chrooting is a great security feature and should be used whenever ; possible. However, all PHP paths will be relative to the chroot ; (error_log, sessions.save_path, ...). ; Default Value: not set ;chroot = ; Chdir to this directory at the start. ; Note: relative path can be used. ; Default Value: current directory or / when chroot ;chdir = /var/www ; Redirect worker stdout and stderr into main error log. If not set, stdout and ; stderr will be redirected to /dev/null according to FastCGI specs. ; Note: on highloaded environement, this can cause some delay in the page ; process time (several ms). ; Default Value: no ;catch_workers_output = yes ; Clear environment in FPM workers ; Prevents arbitrary environment variables from reaching FPM worker processes ; by clearing the environment in workers before env vars specified in this ; pool configuration are added. ; Setting to "no" will make all environment variables available to PHP code ; via getenv(), $_ENV and $_SERVER. ; Default Value: yes ;clear_env = no ; Limits the extensions of the main script FPM will allow to parse. This can ; prevent configuration mistakes on the web server side. You should only limit ; FPM to .php extensions to prevent malicious users to use other extensions to ; exectute php code. ; Note: set an empty value to allow all extensions. ; Default Value: .php ;security.limit_extensions = .php .php3 .php4 .php5 .php7 ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from ; the current environment. ; Default Value: clean env ;env[HOSTNAME] = $HOSTNAME ;env[PATH] = /usr/local/bin:/usr/bin:/bin ;env[TMP] = /tmp ;env[TMPDIR] = /tmp ;env[TEMP] = /tmp ; Additional php.ini defines, specific to this pool of workers. These settings ; overwrite the values previously defined in the php.ini. The directives are the ; same as the PHP SAPI: ; php_value/php_flag - you can set classic ini defines which can ; be overwritten from PHP call 'ini_set'. ; php_admin_value/php_admin_flag - these directives won't be overwritten by ; PHP call 'ini_set' ; For php_*flag, valid values are on, off, 1, 0, true, false, yes or no. ; Defining 'extension' will load the corresponding shared extension from ; extension_dir. Defining 'disable_functions' or 'disable_classes' will not ; overwrite previously defined php.ini values, but will append the new value ; instead. ; Default Value: nothing is defined by default except the values in php.ini and ; specified at startup with the -d argument ;php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f www@my.domain.com ;php_flag[display_errors] = off php_admin_value[error_log] = /var/log/php-fpm/www-error.log php_admin_flag[log_errors] = on ;php_admin_value[memory_limit] = 128M ; Set session path to a directory owned by process user php_value[session.save_handler] = files php_value[session.save_path] = /var/lib/php/session php_value[soap.wsdl_cache_dir] = /var/lib/php/wsdlcache </code></pre> <p></p></code></pre> <p>PHP-FPM Error log</p> <pre><code> [16-Apr-2017 17:12:06] NOTICE: fpm is running, pid 2392 [16-Apr-2017 17:12:06] NOTICE: ready to handle connections [16-Apr-2017 17:12:06] NOTICE: systemd monitor interval set to 10000ms </code></pre> <p>Telnet output</p> <pre><code> # telnet 127.0.0.1 9000 Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection timed out </code></pre> </div>

zabbix-server报错,请大神指点

[root@bogon zabbix]# systemctl status zabbix-server.service ● zabbix-server.service - Zabbix Server Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled) Active: active (running) since Sat 2017-11-04 05:26:17 EDT; 10min ago Process: 10832 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=0/SUCCESS) Process: 10838 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS) Main PID: 10840 (zabbix_server) CGroup: /system.slice/zabbix-server.service ├─10840 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf ├─10843 /usr/sbin/zabbix_server: configuration syncer [synced configuration in 0.065592 sec, idle 60 sec] ├─10844 /usr/sbin/zabbix_server: db watchdog [synced alerts config in 0.001676 sec, idle 60 sec] ├─10845 /usr/sbin/zabbix_server: poller #1 [got 0 values in 0.000007 sec, idle 1 sec] ├─10846 /usr/sbin/zabbix_server: poller #2 [got 82 values in 0.600170 sec, idle 1 sec] ├─10847 /usr/sbin/zabbix_server: poller #3 [got 0 values in 0.000006 sec, idle 1 sec] ├─10848 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.000006 sec, idle 1 sec] ├─10849 /usr/sbin/zabbix_server: poller #5 [got 0 values in 0.000006 sec, idle 1 sec] ├─10850 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000007 sec, idle 5 sec] ├─10851 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.001772 sec, waiting for connection] ├─10852 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.000640 sec, waiting for connection] ├─10853 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.001834 sec, waiting for connection] ├─10854 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.000553 sec, waiting for connection] ├─10855 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.000397 sec, waiting for connection] ├─10856 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000005 sec, idle 5 sec] ├─10857 /usr/sbin/zabbix_server: alerter [sent alerts: 0 success, 0 fail in 0.000893 sec, idle 30 sec] ├─10858 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 minutes] ├─10859 /usr/sbin/zabbix_server: timer #1 [processed 59 triggers, 0 events in 0.001562 sec, 0 maintenances in 0.002077 sec, idle 30 sec] ├─10860 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.000701 sec, idle 5 sec] ├─10861 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.000291 sec, idle 60 sec] ├─10862 /usr/sbin/zabbix_server: history syncer #1 [synced 5 items in 0.002880 sec, idle 1 sec] ├─10863 /usr/sbin/zabbix_server: history syncer #2 [synced 16 items in 0.004480 sec, idle 1 sec] ├─10864 /usr/sbin/zabbix_server: history syncer #3 [synced 0 items in 0.000010 sec, idle 1 sec] ├─10865 /usr/sbin/zabbix_server: history syncer #4 [synced 110 items in 0.015983 sec, idle 1 sec] ├─10866 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001307 sec, idle 3 sec] ├─10867 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000004 sec, idle 5 sec] ├─10868 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000009 sec, idle 1 sec] └─10869 /usr/sbin/zabbix_server: task manager [processed 0 task(s) in 0.000180 sec, idle 5 sec] Nov 04 05:26:17 bogon systemd[1]: Starting Zabbix Server... Nov 04 05:26:17 bogon systemd[1]: zabbix-server.service: Supervising process 10840 which is not our child. We'll most likely not notice when it exits. Nov 04 05:26:17 bogon systemd[1]: Started Zabbix Server.

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

我以为我学懂了数据结构,直到看了这个导图才发现,我错了

数据结构与算法思维导图

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

Linux 会成为主流桌面操作系统吗?

整理 |屠敏出品 | CSDN(ID:CSDNnews)2020 年 1 月 14 日,微软正式停止了 Windows 7 系统的扩展支持,这意味着服役十年的 Windows 7,属于...

讲一个程序员如何副业月赚三万的真实故事

loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...

学习总结之HTML5剑指前端(建议收藏,图文并茂)

前言学习《HTML5与CSS3权威指南》这本书很不错,学完之后我颇有感触,觉得web的世界开明了许多。这本书是需要有一定基础的web前端开发工程师。这本书主要学习HTML5和css3,看...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

搜狗输入法也在挑战国人的智商!

故事总是一个接着一个到来...上周写完《鲁大师已经彻底沦为一款垃圾流氓软件!》这篇文章之后,鲁大师的市场工作人员就找到了我,希望把这篇文章删除掉。经过一番沟通我先把这篇文章从公号中删除了...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

新一代神器STM32CubeMonitor介绍、下载、安装和使用教程

关注、星标公众号,不错过精彩内容作者:黄工公众号:strongerHuang最近ST官网悄悄新上线了一款比较强大的工具:STM32CubeMonitor V1.0.0。经过我研究和使用之...

记一次腾讯面试,我挂在了最熟悉不过的队列上……

腾讯后台面试,面试官问:如何自己实现队列?

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

冒泡排序动画(基于python pygame实现)

本项目效果初始截图如下 动画见本人b站投稿:https://www.bilibili.com/video/av95491382 本项目对应github地址:https://github.com/BigShuang python版本:3.6,pygame版本:1.9.3。(python版本一致应该就没什么问题) 样例gif如下 ======================= 大爽歌作,mad

Redis核心原理与应用实践

Redis核心原理与应用实践 在很多场景下都会使用Redis,但是到了深层次的时候就了解的不是那么深刻,以至于在面试的时候经常会遇到卡壳的现象,学习知识要做到系统和深入,不要把Redis想象的过于复杂,和Mysql一样,是个读取数据的软件。 有一个理解是Redis是key value缓存服务器,更多的优点在于对value的操作更加丰富。 安装 yum install redis #yum安装 b...

现代的 “Hello, World”,可不仅仅是几行代码而已

作者 |Charles R. Martin译者 | 弯月,责编 | 夕颜头图 |付费下载自视觉中国出品 | CSDN(ID:CSDNnews)新手...

带了6个月的徒弟当了面试官,而身为高级工程师的我天天修Bug......

即将毕业的应届毕业生一枚,现在只拿到了两家offer,但最近听到一些消息,其中一个offer,我这个组据说客户很少,很有可能整组被裁掉。 想问大家: 如果我刚入职这个组就被裁了怎么办呢? 大家都是什么时候知道自己要被裁了的? 面试软技能指导: BQ/Project/Resume 试听内容: 除了刷题,还有哪些技能是拿到offer不可或缺的要素 如何提升面试软实力:简历, 行为面试,沟通能...

!大部分程序员只会写3年代码

如果世界上都是这种不思进取的软件公司,那别说大部分程序员只会写 3 年代码,恐怕就没有程序员这种职业。

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

HTTP与HTTPS的区别

面试官问HTTP与HTTPS的区别,我这样回答让他竖起大拇指!

程序员毕业去大公司好还是小公司好?

虽然大公司并不是人人都能进,但我仍建议还未毕业的同学,尽力地通过校招向大公司挤,但凡挤进去,你这一生会容易很多。 大公司哪里好?没能进大公司怎么办?答案都在这里了,记得帮我点赞哦。 目录: 技术氛围 内部晋升与跳槽 啥也没学会,公司倒闭了? 不同的人脉圈,注定会有不同的结果 没能去大厂怎么办? 一、技术氛围 纵观整个程序员技术领域,哪个在行业有所名气的大牛,不是在大厂? 而且众所...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

程序员为什么千万不要瞎努力?

本文作者用对比非常鲜明的两个开发团队的故事,讲解了敏捷开发之道 —— 如果你的团队缺乏统一标准的环境,那么即使勤劳努力,不仅会极其耗时而且成果甚微,使用...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

立即提问
相关内容推荐