nohup /data/users/bin/python3 as.py>bb.log 2>&1 &
要写好python的路径,不然直接用python3会报错,而且有时服务器上有很多python包,用不对可能有些pack包就没有装。
如何查看python的路径都有那些:
whereis python3(或者直接whereis python 会把所有python2和python3的路径都显示出来)
nohup /data/users/bin/python3 as.py>bb.log 2>&1 &
要写好python的路径,不然直接用python3会报错,而且有时服务器上有很多python包,用不对可能有些pack包就没有装。
如何查看python的路径都有那些:
whereis python3(或者直接whereis python 会把所有python2和python3的路径都显示出来)