<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[systemctl查看完整非截断日志显示详细信息详细日志用systemctl status slapd.service -l，启动nginx时出现：Starting nginx (via systemctl): Job for nginx.service failed. See systemctl status nginx.service and journalctl -xn for details.]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Web服务器]]></category>
<pubDate>Sat, 10 Oct 2015 06:41:48 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	Hint: Some lines were ellipsized, use -l to show in full. systemctl status slapd&nbsp;&nbsp;-l ,&#039;journalctl -xn&#039; for details. 看不清换行，先journalctl -xn &gt; out.log,再vim看。<br/>一）那个Service XXX start时，也是装入了内存活它的Service系统的，而用chkconfig -add memcached&nbsp;&nbsp;就是装入这个Service系统，完全类似centos7 的systemctl daemon-reload,也就是说你改了/etc/init.d/memcached  如果不chkconfig -add memcached，service memcached start执行的还是旧的（尽管你替换了那个/etc/init.d/memcached文件）， 同理/lib/systemd/system/memcached.service,也是一样的道理，修改后得 systemctl daemon-reload才会生效，直接运行systemctl start memcached会提示你systemctl daemon-reload,不让你运行，也就是说它会监控/etc/systemd/system/*.service外，发现它还会监控centos6的/etc/init.d/* 的修改。<br/>二）在CentOS7里面，只有运行了service memcached start后，这个systemctl才行被注入，一上来就运行systemctl start memcached , 它是不认识这个memcached&nbsp;&nbsp;的，再就是如果自己Kill掉，没有用 service memcached stop,这个sytemctl 也是不知道它关了，想用systemctl start memcached也无法启动的，因为systemctl 认为它还运行着呢，于是得用systemctl stop memcached 后，再运行systemctl start memcached，也就成功了,否则即使systemctl start memcached啥也不输出就退出了，但是那个进程还是没有启动，说白了，在CentOS7里面，那个启动和停止最好是经过service或systemctl,连service 也是被systemctl接管了的，都得向systemctl注册！！！，艹。<br/><br/><br/>背景：conf里面有一个ssl的conf，scp过来抄时忘记删除，但nginx下的nginx.conf下是include *.conf，于是出问题了，但nginx不报这个conf有问题，而是说没有找到ssl的crt文件，怎么办？主要是学会看日志 cat /var/log/messages &#124; grep nginx ，看日志才发现是多了一个conf文件。<br/><br/>service nginx reload<br/>Reloading nginx configuration (via systemctl):&nbsp;&nbsp;Job for nginx.service failed. See &#039;systemctl status nginx.service&#039; and &#039;journalctl -xn&#039; for details.<br/>——————————————————————————————————————————————————————————————————————<br/><br/>启动apache服务出现，或启动nginx时出现：<br/>Starting nginx (via systemctl): Job for nginx.service failed. See &#039;systemctl status nginx.service&#039; and &#039;journalctl -xn&#039; for details.<br/> 查看错误提示<br/><br/>主要是学会看日志 cat /var/log/messages &#124; grep nginx<br/>Oct 10 14:34:12 iZ251vfc84kZ nginx: nginx: [emerg] BIO_new_file(&quot;/usr/local/nginx/conf/ssl/svn.justwinit.crt&quot;) failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(&#039;/usr/local/nginx/conf/ssl/svn.justwinit.crt&#039;,&#039;r&#039;) error:2006D080:BIO routines:BIO_new_file:no such file)<br/>Oct 10 14:34:12 iZ251vfc84kZ nginx: nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed<br/>Oct 10 14:34:12 iZ251vfc84kZ systemd: nginx.service: control process exited, code=exited status=1<br/>[root@iZ251vfc84kZ vhost]# grep -r &quot;svn.justwinit.crt&quot; ./<br/>./svn.justwinit.conf:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ssl_certificate&nbsp;&nbsp;&nbsp;&nbsp; ssl/svn.justwinit.crt;<br/>[root@iZ251vfc84kZ vhost]# rm -Rf svn.justwinit.conf <br/><br/><br/>来自：http://wangsheng1.blog.51cto.com/29473/1550655
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] systemctl查看完整非截断日志显示详细信息详细日志用systemctl status slapd.service -l，启动nginx时出现：Starting nginx (via systemctl): Job for nginx.service failed. See systemctl status nginx.service and journalctl -xn for details.]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>