What is the environment variable of the system? Phpstudy settings of the computer environment variables after installation is complete
The so-called environment variable can be understood as a pre-prepared path with a command installed. So we enter the command directly under CMD, then the system will go down to the path in the environment variable to find the command. Otherwise, we have to execute a command, we need to write the full path of the command, it is a nightmare. So, setting the environment variable means that the path is told to the system beforehand.
For example, after we install phpstudy, we usually need to use some Apache and MySQL commands, find the installer, find any command under Apache\bin, right-click the property to copy the path directly. Then path>>> edit in My Computer >>> Properties >>> advanced system Settings >>> advanced >>> environment Variables >>> system variables.
Test: Open cmd, enter httpd-t to check the configuration file for syntax issues. Only the httpd command can be entered here, not only the path, but also the suffix. exe is omitted.