Windows drop right MySQL and Apche run level (normal user rights run) _win server
Source: Internet
Author: User
1, MySQL down the right to run
Create a new user like MySQL
NET user MySQL Microsoft/add
net localgroup users Mysql/del
Does not belong to any group
If MySQL is installed in D:\mysql, then, give MySQL Full control of the permissions
Then in the system service settings, MySQL service properties, in the login attribute, select this user MySQL and then enter the password, OK.
Restart the MySQL service, and MySQL runs under low privileges.
2, if it is in the WinDOS platform to build Apache we also need to note that the Apache default run is System permissions,
It was scary, and it made people feel uncomfortable. Then let's give Apache a drop in privileges.
NET user Apache Microsoft/add
net localgroup users Apache/del
OK. We have established a user apche that does not belong to any group.
We open the Computer Manager, select the service, point Apache Service Properties, we select Log on, choose this account, we fill in the above established accounts and passwords,
Restart the Apache service, Ok,apache running under low privileges.
In fact, we can also set the permissions of each folder so that Apache users can only do what we want it to do, and create a single user who can read and write to each directory.
This is also the current popular configuration of many virtual host providers Oh, but this method is used to prevent this is a little bit overqualified
If the above operation is not successful is the issue of file permissions, we carefully look for the next.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service