Php development environment lnmp is very troublesome. how can we quickly build it? every time the system is reinstalled, we have to reinstall it again.

Source: Internet
Author: User
Tags php development environment
The php development environment lnmp is very troublesome. every time the system is reinstalled, it will be re-installed. how can we quickly set up the php development environment lnmp? every time the system is reinstalled, we have to re-install it again, how to quickly build

Reply content:

The php development environment lnmp is very troublesome. every time the system is reinstalled, it should be re-installed. how can we quickly build it?

Same as abovedocker

In the development environment, you can use php 5.4 +.

php -S localhost:9000 -t /path/to/wwwroot

Write ssh ..

For local development, you can directly use phpstudy to install it in green, xampp, or wamp, which is very useful.
If it's WEB, why do you always have to reinstall it?

Docker

Write a shell script ......

Https://oneinstack.com/install/
Installed and integrated.
Either write the shell script as described above, that is, write the installation steps and configurations as scripts.

You can use XAMPP, but now the better choice is docker

However, XAMPP is better used.

Https://www.apachefriends.org/

Lnmp.org one-click script

Sudo apt-get install php5-cli php5-mysql mysql # PHP built-in HTTP server, used for rapid development is very convenient php-S 127.0.0.1: 8080-t/path/to/wwwroot

Vagrant such as laravel homestead

Https://laravel.com/docs/5.3...

Installing lnmp in linux is actually very simple.
You can use docker, vagrant

You can add the Repository source and install it through command line.

Virtual machines available

Then install the required environment on the virtual machine. after you change the computer, you can still maintain the same development environment. I used to do this.

After that, you can buy a mac and then do not have to worry about reinstalling the system. if you have a new computer, you can use backup for recovery.

If yesUbuntu0 orDebianYou can use apt to install the system.
Tutorial on pants: quick LNMP (LEMP) environment configuration in Ubuntu 16.04

If yesCentosThis kind of systems without a package manager can be quickly installed only by AMH without compilation.

Of course, it would be nice to use lnmp scripts if you don't want to install them quickly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.