Linux
  • Linux
  • Bash
  • Debian
  • Ubuntu
  • Shell
  • CentOS
  • SSH
☰

無法在linux命令列中啟動PHP伺服器

tag-icon 2024-7-15 • tag-icon ubuntu terminal php
無法在linux命令列中啟動PHP伺服器

我試過

php -s localhost:4444 WebContent/

但我的 ubuntu 終端給了

用法: php [選項] [-f] [--] [參數...]

答案1

開關是大寫的 S,您需要 php 5.4 或更高版本。

php -S localhost:4444 WebContent/
THE END
Win 8.1 中硬碟每 10 秒發出咔噠聲 - 載入/卸載週期計數增加 Win 8.1 中硬碟每 10 秒發出咔噠聲 - 載入/卸載週期計數增加
顏色編碼 Lotus Notes 8.5 椅子日曆 顏色編碼 Lotus Notes 8.5 椅子日曆

相關內容

熱門問答

熱門問答

  • ubuntu
  • terminal
  • php
  • hard-drive
  • windows-8.1
  • smart
  • clicking-sound
  • colors
  • calendar
  • lotus-notes

© 2024 rvso.com 版權所有. 網站地圖