Linux开机自启动

简介: 永久打开或则关闭 chkconfig iptables on chkconfig iptables off 即时生效,重启后还原 service iptables start service iptables stop 开机默认VSFTP服务自动启动:方法一:(常用\方便)[root@loca...

 

永久打开或则关闭 chkconfig iptables on
chkconfig iptables off
即时生效,重启后还原
service iptables start
service iptables stop

开机默认VSFTP服务自动启动:
方法一:(常用\方便)
[root@localhost etc]# chkconfig --list|grep vsftpd ( 查看情况)
vsftpd          0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@localhost etc]# chkconfig vsftpd on  (执行ON设置)
方法二:
修改文件 /etc/rc.local , 把行/usr/local/sbin/vsftpd & 插入文件中,以实现开机自动启动。

 http://blog.csdn.net/binyao02123202/article/details/7173127

 

 在开启了防火墙时,做如下设置,开启相关端口,修改/etc/sysconfig/iptables 文件,添加以下内容:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

 

相关文章
|
15天前
|
NoSQL Linux Redis
linux 下和win下安装redis 并添加开机自启 图文详解
linux 下和win下安装redis 并添加开机自启 图文详解
17 0
|
4月前
|
Linux 程序员 Shell
Linux编辑器,开机重启,用户注销,用户管理 常用命令
Linux编辑器,开机重启,用户注销,用户管理 常用命令
96 0
|
7月前
|
Linux 开发者 Windows
第十九章、【Linux】开机流程、模块管理与Loader
第十九章、【Linux】开机流程、模块管理与Loader
51 0
|
运维 Linux
Linux(CentOS)挂载数据盘并设置开机自动挂载
Linux(CentOS)挂载数据盘并设置开机自动挂载
793 0
Linux(CentOS)挂载数据盘并设置开机自动挂载
|
2天前
|
Linux
Linux(9)Debain EC25 quectel-CM usbnet0开机自动联网配置
Linux(9)Debain EC25 quectel-CM usbnet0开机自动联网配置
13 0
|
3月前
|
Linux
linux 开机启动脚本
linux 开机启动脚本
25 1
|
9月前
|
Linux
Linux Resin开机自动启动脚本写法
在Linux中,可以通过systemd服务来实现开机自动启动脚本。下面是一个编写开机自动启动脚本的示例:
120 0
|
5月前
|
Linux
linux设置开机服务自动启动/关闭自动启动命令 chkconfig
linux设置开机服务自动启动/关闭自动启动命令 chkconfig
209 0
|
5月前
|
NoSQL Linux Redis
Linux设置Redis开机自启
Linux设置Redis开机自启
|
5月前
|
应用服务中间件 Linux
Linux开机自动启动Tomcat
Linux开机自动启动Tomcat