Stopping in-built php server on Mac Mavericks - Livecode

前端 未结 1 1487
一整个雨季
一整个雨季 2021-02-06 09:17

I\'m developing something in Livecode and I have been experimenting with using Mavericks own in-built php server. I started the server by sending the following command through s

相关标签:
1条回答
  • 2021-02-06 09:34

    open a terminal and type:

    ps -ef | grep php
    

    it will list the php process with the pid (process id)

    something like

    $ ps -ef | grep php
    
      501 14263 14133   0 10:25AM ttys001    0:00.21 php -S localhost:8000
    
      501 14355 14265   0 10:25AM ttys002    0:00.00 grep php
    

    The note the number for the line that lists your php process, the second column is your pid in the example the process id us 14263, kill it:

    $ kill 14263
    

    do another ps

    $ ps -ef | grep php
    
      501 14358 14265   0 10:26AM ttys002    0:00.00 grep php
    
    $
    

    The process should not be listed anymore

    0 讨论(0)
提交回复
热议问题