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.