linux chkconfig和service 的区别
来源:互联网 发布:jquery.dateformat.js 编辑:程序博客网 时间:2024/05/22 12:25
service 一般使用, chkconfig 也通用
区别
chkconfig 设置是当前不生效,linux重启后才生效,
service 设置是即时生效,linux关机重启后设置失效
chkconfig 重启后,设置才生效
开启: chkconfig iptables on
关闭: chkconfig iptables off
service 即时生效,重启后设置失效
开启: service iptables start
关闭: service iptables stop
需要说明的是对于Linux下的其它服务都可以用以上命令执行开启和关闭操作。
在开启了防火墙时,做如下设置,开启相关端口,
修改/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
0 0
- linux chkconfig和service 的区别
- linux命令之service和chkconfig
- linux启动脚本和service、chkconfig
- linux启动脚本和service、chkconfig
- linux启动脚本和service、chkconfig
- linux启动脚本和service、chkconfig
- linux启动脚本和service、chkconfig
- linux中daemon的改动之systemctl替代chkconfig和service
- linux(centos)中tomcat开机启动 配置service和chkconfig
- linux中service与chkconfig的替代者systemctl
- linux中service与chkconfig的替代者systemctl
- linux中service与chkconfig的替代者systemctl
- linux中service与chkconfig的替代…
- Linux的运行级别和chkconfig用法
- Linux的运行级别和chkconfig用法
- Linux的运行级别和chkconfig用法
- Linux的运行级别和chkconfig用法
- Linux的运行级别和chkconfig用法
- winxp/2003 无人值守光盘制作的一些注意事项
- 设计模式-抽象工厂模式
- maven install 报错Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plug
- 设计模式从零到一 之六大原则
- 查询数据
- linux chkconfig和service 的区别
- 细说servlet细节
- JDK源码——java.util.concurrent
- 文献综述的写法
- ACL掩码的设置查看与对文件的访问
- 触发器
- Eclipse插件:mybatis generator的使用步骤
- python中文件的读写(含爬虫内容)
- 完全背包