In Linux, you can use the new settings without restarting the configuration file.
Source: Internet
Author: User
After modifying the configuration file in Linux, you can use the new settings-Linux general technology-Linux technology and application information without restarting. For more information, see the following. Author: laemai from http://blog.sina.com.cn/s/blog_495113340100ctek.html
We mentioned several common configuration files in Linux, such as/etc/profile ,~ /. Bashrc. However, after the configuration is modified, the new settings should take effect. Generally, we use the "Windows" logic to solve the problem and restart the system!
Well, this is indeed a good method, and it is absolutely effective, but Linux is a multi-user operating system, and my configuration belongs to me. bashrc, maybe someone is inserting a record in MySQL on the system, maybe someone is writing a C program. If I restart the system and other online users are not prepared, it is not a disaster, as it is no less damage as a result of system crash.
It is useless to say so much saliva. Since it is a problem, there must be a way to solve it, that is, to use the source command.
# Source variable configuration file name
In this way, you can use the new configuration without restarting the system.
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