一.临时关闭防火墙 1. 查看防火墙的状态 [root@vpnSS ~]# /etc/init.d/iptables status Table: filter Chain INPUT (policy ACCEPT) num target prot opt source destination ACCEPT udp -- state NEW udp dpt: ACCEPT tcp -- state NEW tcp dpt: ACCEPT all -- state RELATED,ESTABLISH…
最近在自己的ubuntu安装了apache服务器,每次开机的时候通过: ps -A 命令发现apache服务总是自动启动,如下: 本来自己的电脑内存就小,现在也不用这个服务,所以想让apache服务不再开机自动启动. 具体做法如下: ctr + alt + T 打开终端 cd /etc 进入etc目录 etc 目录下有几个 文件夹: rc0.d rc1.…
关闭防火墙 1.查看防火墙状态 service iptables status 2.关闭,但开机后又会打开 service iptables stop 3.查看防火墙开机启动状态 chkconfig iptables --list 4.永久关闭 chkconfig iptables off 想说的是,因为防火墙是一个服务,那么服务,可能会随开机自动启开.所以,一般永久关闭. ==================================> 这也是为什么在搭建如hadoop.spark集…