I have recently developed and debugged PHP programs in Linux. Here I will summarize the commonly used commands.
Program background running: nohup program command> xx. log 2> & 1 &. This command can still run after the end of the terminal. If you want to stop the terminal, remove nohup.
Remote file copy: Upload File: scp local file remote host name @ Remote Host ip: path download file: scp remote host @ Remote Host ip: path local path. -R needs to be added when the directory needs to be copied.
File Permission: sudo chmod 777 file name. You can modify the full permissions of a file and then restore the original permissions.
VLC stream: cvlc-vv rtsp: // camera User name: Camera password @ camera IP Address -- sout '# standard {access = http, mux = ts, dst = http address after streaming} 'vlcstream. log 2> & 1 &
Ffmpeg video (containing m3u8 files): ffmpeg-re-I video source address-segment_list playlist _ 'date + % s '. m3u8-segment_time 20 'date + % s' _ 20 _ % 04d. ts
If any reprint is available, please indicate the source. Thank you.