---
title: "使/etc/profile 生效!"
author: "javaeyeren"
date: "2009-02-25T00:04:00Z"
tags: []
slug: "etc-profile"
draft: false
lastmod: "2009-02-25T00:04:00Z"
id: 601301
url: "https://javaeyeren.iteye.com/blog/601301"
---

/etc/profile 更改后, 可用source /etc/profile来马上更新, 或reboot。

如果chkconfig在linux不能执行, 可把/sbin加到/etc/profile的PATH变量里或/sbin/chkconfig --list 来执行.