2016-06-27 42 views
0

我在JSReport www.jsreport.net中遇到問題。在後臺運行時出現JSReport錯誤「此套接字已關閉」RHEL

如果我開始NPM在後臺啓動 - 生產,它的工作原理,但如果我退出這個會議上,出現了一個錯誤:

Error occured - This socket is closed. 
Stak - Error: This socket is closed. 
    at WriteStream.Socket._write (net.js:638:19) 
    at doWrite (_stream_writable.js:226:10) 
    at writeOrBuffer (_stream_writable.js:216:5) 
    at WriteStream.Writable.write (_stream_writable.js:183:11) 
    at WriteStream.Socket.write (net.js:616:40) 

有人能幫助我嗎?

回答

0

開始jsreport在Linux的背景下,我用

nohup npm start --production > /dev/null 2>&1 & 

要在後臺自動啓動,並在重新啓動jsreport

# install pm2 
sudo npm install pm2 -g 

# start pm2 daemon running jsreport 
sudo pm2 start npm -- start --production 

# create startup script for running jsreport after boot 
sudo pm2 startup 
sudo pm2 save 
相關問題