PHP Development under Windows, many environments rely on Linux, such as Redis,swoole.
How to solve such problems under Windows, the Linux system is currently installed in a virtual machine, but it feels like the virtual machine is more resource-intensive.
There is nothing better than the other way.
Reply content:
PHP Development under Windows, many environments rely on Linux, such as Redis,swoole.
How to solve such problems under Windows, the Linux system is currently installed in a virtual machine, but it feels like the virtual machine is more resource-intensive.
There is nothing better than the other way.
Why not develop directly with Linux and efficiently
Vagrant
https://segmentfault.com/a/1190000000264347
Windows is the premise, the virtual machine is the best solution, the main feeling of resources I personally judge there are two possibilities
A) installed desktop environment resulting in resource consumption = no GUI version, or configuration shutdown GUI Service
b) machine Memory small = plus memory. A browser, an IDE, and a virtual machine at least 8G.
It is highly recommended to use MacBook pro!!! directly
Redis has a version of Windows, Swoole can try to install Cygin and other software compatible, other extensions or plugins unless there is a Win32 version, otherwise only under Linux development.
Development of the words of the company must be back-end server, in the company set up a test environment, lamplnmp what all have a set of packages, find out if there is no ready-made packaging in win can also solve the environmental problems it. Again the weak is to buy a chassis, performance requirements are not very high, install a Linux test machine.
Docker + Swoole
Use Docker to solve this problem and take up less memory
Windows or Mac, build your local development environment with vagrant.
https://www.vagrantup.com/
Recommended use of vagrant
There is no other way, either the virtual machine or the remote
The whole of the broken VPS environment package to open the whole chant ... What are you doing on win?
Under Windows with some extensions is the pit ah ...
Redis's win extension is out, if I give you, Memcached's win extension did not come out.
Swoole can be said not to be used for Windows ...
The scene is Docker ~ ~ ~
As long as you're not a. NET developer, or do you understand Linux, recommend PC+VM (CentOS) or Mac
Development machine Linux I use Ubuntu to feel good
MacBook Pro
The memory is so small that it does. Hardware limitations No way ah, you can install Linux AH.
In fact you want to buy MacBook Pro, I know .... Buy it ... Support You
My solution is to prepare a small Linux development server, develop on Windows, then submit the code to the Linux server to run, the server environment is configured on Linux, it is easy to get a small development server, I bought a cubietruck development Board, a total of only slap size, 2G of cpu,2g memory, 8G of built-in storage, cost me more than 500 dollars, and then connect two machines to the same LAN, so that through the development server to try to simulate the environment of the official server, As for the code to run the problem, I wrote a program, as long as I changed my program code, will automatically sync to the development server, and then in the browser to access the site on the development server can be