Specific steps:
1. Enter the dos interface, find the directory where setup.exe, the installation file of cygwin is located, and then run the command: setup.exe-x. This is done instead of directly double-clicking to run setup.exe, because you need to bypass the signature verification of setup.ini before you can use the library of Cygwin port, otherwise you will be prompted that the signature verification failed, resulting in failure to download and install. 2. Always enter the interface of selecting download site by default, enter the library address of Cygwin port in the user URL: ftp://ftp.cygwinports.org/pub/Cygwinports, and then click Add. Then choose this address and make sure that only this address is selected. Then click Next. At this time, you will be prompted that this is an old library and other information. Just ask if you want to continue and confirm. 3. Select php and php_mysqli in this library, and then click Next. So I installed php. You can enter the command php -v in cygwin to verify it. It should be able to output php version information. This means that the installation was successful. 4. install drush. This step is relatively simple. Download the latest version of drush and extract it to the root directory (or other directory) of cygwin, and then add a command alias: alias Drush =' PHP/Drush/Drush.php'. Bashrc, and then refresh. Bashrc file to make the settings effective: ... Bashir, so Druze can be used. Another method, use drush_windows_installer to install: 1. Install rxvt components, and after installation, at the beginning >; Program > open rxvt-native under cygwin, and map disk C to cygwin path: cd /ln -s /cygdrive/c/C/c/c.
(This step is not necessary. You can also use /cygdrive/c directly without creating soft links. In this way, the path in the alias below will be adjusted accordingly.