Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Using Docker to develop how to install PHP

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about using Docker to develop PHP is how to install, editor feels very practical, so share with you to learn, I hope you can get something after reading this article, say no more, follow the editor to have a look.

PHP, or "hypertext preprocessor", is a general open source scripting language. PHP is a scripting language executed on the server side, which is similar to C language and is a commonly used website programming language. PHP's unique syntax is a mix of C, Java, Perl, and PHP's own syntax.

Install Docker

"Ubuntu installation and configuration of Docker-CE Image acceleration"

Prepare the project

Use my project khs1994-docker/lnmp as the LNMP environment.

Installation

$git clone-- recursive https://github.com/khs1994-docker/lnmp.git# $git clone-- recursive git@github.com:khs1994-docker/lnmp.git

Chinese mirror image

$git clone-- recursive https://code.aliyun.com/khs1994-docker/lnmp.git# $git clone-- recursive git@code.aliyun.com:khs1994-docker/lnmp.git

Start Demo

$cd lnmp$. / lnmp-docker up

Windows 10 opens Power Shell execution

Windows 10 PowerShell forbids script execution by default. Open PowerShell as an administrator and execute the following command to remove the restriction.

$set-ExecutionPolicy RemoteSigned

Enter `Y` to confirm

Verification environment

$curl 127.0.0.1Welcome use khs1994-docker/lnmp v18.09 x 86 million 64 With Pull Docker Imagedevelopment

Windows

The above $wsl curl 127.0.0.1 is how to install PHP using Docker. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report