linux後臺運行Php的知識點

nohup /opt/php/bin/php    cron.php > out.log 2>&1 &

用到的知識點php

linux shell裏面nohup的用法linux

linux shell 中&的做用shell

linux的標準輸入和輸出.net

最終造成命令行

 ```  nohup /opt/php/bin/php cron.php > out.log 2>&1 &code

php命令行

一、 不加&時候的運行格式  php 1.php

           ctrl + c 中止

           關閉標籤,斷網  中止

          ctrl + z(fg)  暫停(繼續)

二、php 1.php &

      ctrl + c 中止

      關閉標籤,斷網  中止

三、nohup

  關閉標籤   繼續運行
相關文章
相關標籤/搜索