Linux开机启动服务设置

来源:互联网 发布:linux chgrp 单词 编辑:程序博客网 时间:2024/04/26 18:02

一、开机启动项

1、查看开机将要启动的服务

chkconfig --list

2、修改开机启动项

chkconfig   [service]   on/off

一般常启动的服务有vsftpd,sshd,关闭iptables(防火墙)。


二、环境变量的设置

path=$path:/*/*

export path

1.在终端窗口设置,只对当前终端有效。

2.在etc/profile里或用户目录下的.bash_profile里添加,需要用户登录才生效。

3.在etc/rc.local里添加,系统启动后就生效(无需用户登录)。

未完。。。

原创粉丝点击