How to configure the running permissions of mysql and apache

Source: Internet
Author: User
Tags mysql tutorial

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.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.