Home  >  Article  >  Backend Development  >  php command line to build a temporary local server

php command line to build a temporary local server

不言
不言Original
2018-04-26 16:02:211762browse

This article mainly introduces the php command line to build a temporary local server. It has certain reference value. Now I share it with everyone. Friends in need can refer to it

php服务器

//搭建一个简易的后台运行本地服务器
nohup php -S 192.168.1.112:8888 & 

//搭建一个临时本地服务器
php -S 192.168.1.112:8888
//结束所有php进程,包括了新建的服务器进程
killall php
//结束指定进程
kill -9 pid
//显示Php进程信息
ps -ef|grep php

sleep 2222; killall php &

Related recommendations:

Common commands under the php command line

Introduction to the php command line script receiving parameters


The above is the detailed content of php command line to build a temporary local server. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn