MYSQL downgrading operation
Create a user, such as mysql tutorial
Net user mysql microsoft/add
Net localgroup users mysql/del
Does not belong to any group
If MYSQL is installed in d: mysql, grant mysql full control permissions.
Then, set the MYSQL service attribute in the system service. In the logon attribute, select the user mysql and enter the password to confirm.
Restart the MYSQL service and MYSQL runs under low permissions.
2. If you build apache on the windos platform, note that apache runs with the system permission by default,
This is terrible, and it makes people feel uncomfortable. Let's drop apache permissions.
Net user apache microsoft/add
Net localgroup users apache/del
OK. We have created a user apche that does not belong to any group.
Open the computer manager, select a service, click the apache service attribute, Select log on, select this account, and fill in the account and password created above,
Restart the apache service. OK. apache runs under low permissions.
In fact, we can also set the permissions for each folder so that apache users can only execute what we want it to do, and create a single read/write user for each directory.
This is also a popular configuration method for many VM providers. However, this method is used to prevent the usage from being too small.