Stayed in Windows, into the JetBrains's family bucket. Prepare to get started swoole, it's impossible to run a little bit of change every minute git push
. So you want to windows
configure the swoole
run environment on. A comparison of several Linux environments under Windows
Bashonwindows
requires Windows ten
Installation is simple, refer to bash on Windows installation Tutorial (win 10)
Possibly due to Windows upgrade, my version bash
only prompts for the store download after CMD input, there is no [y/n] option. Open the store search to download UBUNTU
it.
# Upgrade Apt-get First, or many packages will not be foundsudoApt-get UpdatesudoApt-get Install php7.0 Php7.0-curl#... All the other extensions you need# pecl needs php-pearsudoApt Install php-pear# may prompt for phpize error, need Php-devpeclInstall Swoole# Follow the prompts to install Php7.0-devsudoApt Install Php7.0-dev# Install SwoolepeclInstall Swoole# Permissions not enough, direct VI new# echo ' extension=swoole.so ' >>/etc/php/7.0/mods-available/swoole.ini# Connection FileCD/etc/php/7.0/cli/conf.d/&& LN-S. /.. /mods-available/swoole.ini 20-swoole.ini# cd/etc/php/7.0/fpm/conf.d/&& ln-s. /.. /mods-available/swoole.ini 20-swoole.ini
Upgrade Apt-get to ensure you find the latest package
/mnt/ 挂载了所有盘符,直接cd相应的目录开始吧
Advantages
- WINDOWS10, installed without brain
- Complete Ubuntu environment with higher degrees of freedom
Disadvantages
- Permission problems, keep going
sudo
(well maybe I was spoiled by root)
- How to open multiple shell windows?
Docker on Windows
Docker is nothing to repeat, whether it is the development of debugging or online operation is a great sandbox container.
I am the WINDOWS10 system, directly elected the official Dockerforwindows CE
Other Windows versions of Docker are not researched. Install and deploy the Docker+swoole mirror on both windows before and after a deployment is successful and the restart is suspended. A deployment was successfully run OK. Let's talk about the course of hanging that one:
Install Dockerforwindows, prompt to turn on Hyper-V service, restart. Successfully run Docker and download the swoole image. To run the image:
docker run --rm -t -i --name myapp -p 9501:9501 -v [windows路径如 e/workspace/swoole]:[挂载路径如/data]:rw [swoole image] /bin/bash
A variety of parameters can be docker --help
found. The purpose of this command is to start running your mirror in Docker, and bind the port to mount the local folder into the container.
And then the question came.
Firewall is blocking file sharing between Windows and the containers.
As soon as I saw the firewall, I took a lot of solutions for the firewall settings.
- Research firewall rules (astray 1)
- Study 445-Port (misleading 2, resulting in a subsequent pile of butterfly effects)
- Reinstall the network connection
windows文件夹和打印机共享协议
. (3 astray, actually touched by the side)
"Resolution Process"
There is a Docker icon setting
that can be used to set shared drive characters.
Through so many Baidu's general understanding of Docker and Windows is through the virtual network card (Hyper-V) to establish network connectivity.
Then to mount the Windows file in the Docker container, you need to pass 网络文件夹共享
. That's why it's so much to tell me that reinstalling the windows文件夹和打印机共享
protocol solves the problem.
So the reason for the problem is ultimately,
The disk I want to share does not turn on network sharing
Click Open Folder Properties--share. Check the disks you want to share, Docker-setting. Then run the container, well done!
Beyond redemption
Because of the previous attempts at various workarounds, "Modified registry", "removed Hyper-V virtual network card", after the machine restarts Docker will not start, viewing the log is probably in the nat-switch when the creation of failure. View Hyper-V Manager, "Virtual Switch Management" cannot be opened. Many times unloading load without fruit, eventually gave up the dockerforwindows.
Later at home own WINDOWS10 installs, everything goes smoothly.
Advantages
- Docker container mirrors a lot of resources, one-click installation, no brain deployment
- By the way, familiar with the use of Docker
- No Permissions issues
Disadvantages
- Every time you start a mirror to lose a bunch of commands, the shared drive is in the pit.
Non-WINDOW10, Cygwin, other Docker on Windows
Cygwin does not introduce here.
Other Docker on Windows has not tried.
Windows Swoole Development Environment Configuration