nginx线上问题记录

  1. 线上异常处理


Exception in thread "main" java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:160)
at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:84)
at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:273)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:140)
at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:261)
at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:283)
at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:259)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:209)
at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:272)
at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:124)
at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:686)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:488)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at com.quincy.core.helper.HttpClientHelper.send(HttpClientHelper.java:117)
at com.quincy.core.helper.HttpClientHelper.getString(HttpClientHelper.java:99)
at com.quincy.core.helper.HttpClientHelper.post(HttpClientHelper.java:55)
at com.oborexport.eub.EubClientTest.main(EubClientTest.java:118)

2. nginx问题
 查看进程号
[root@~~~oelouoZ sbin]# ps -ef|grep nginx
root 18821 1 0 11:32 ? 00:00:00 nginx: master process nginx -c /export/tools/nginx-bin/conf/nginx.conf
nobody 18822 18821 0 11:32 ? 00:00:00 nginx: worker process
nobody 18823 18821 0 11:32 ? 00:00:00 nginx: worker process
root 18825 18727 0 11:32 pts/0 00:00:00 grep nginx

3.强制杀进程
pkill -9 nginx

4.重启服务
[root@~~~oelouoZ sbin]# nginx -c /export/tools/nginx-bin/conf/nginx.conf

你可能感兴趣的:(nginx,nginx)