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

php command line to build a temporary local server

不言
Release: 2023-03-24 21:56:02
Original
1783 people have browsed it

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 &
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template