iptables防火墙 1、基本操作 # 查看防火墙状态 service iptables status # 停止防火墙 service iptables stop # 启动防火墙 service iptables start # 重启防火墙 service iptables restart # 永 ...
分类:
其他好文 时间:
2018-09-16 12:32:57
阅读次数:
209
iptables iptables -F:关闭防火墙 crontab -l查看定时任务 crontab -e :编辑定时任务 log日志相关: ls /var/log:查看日志 du -sh /var/log/:以人类可读的语言查看日志大小 ...
分类:
系统相关 时间:
2018-09-15 16:37:19
阅读次数:
192
如果系统没有默认安装,可以手动安装,一条命令就可以搞定: yum install ntp -y 安装之后修改配置文件: vim /etc/ntp.conf #restrict 127.0.0.1 #restrict -6 ::1 注释这两行 server 127.127.1.0 # local cl ...
分类:
其他好文 时间:
2018-09-15 13:54:27
阅读次数:
182
环境准备: 关闭防火墙 暂时关闭:service iptables stop 禁止开机启动:chkconfig iptables off 关闭seLinux 暂时关闭:setenforce 0 永久关闭:修改配置文件/etc/sysconfig/selinux 中的SELINUX = disable ...
分类:
其他好文 时间:
2018-09-14 23:01:06
阅读次数:
182
命令代码(附加两张截图)1cd/etc/yum.repos.d2vidvd.repo3cat/etc/hosts4cat/etc/hostname5vi/etc/hostname6hostname7login8vi/etc/hosts9pingpai10ls/opt11mkdir/opt/dvd12ls/opt13mount/dev/sr0/opt/dvd14ls/opt/dvd15cd/etc/
分类:
其他好文 时间:
2018-09-13 20:23:24
阅读次数:
165
1. 第五步:安装httpd(httpd这是个服务) |-yum install httpd (安装httpd服务) |-systemctl start httpd (启动httpd服务) |-systemctl status htttpd (通过此命令查看服务是否为启动状态) 第六步: |-ipt ...
分类:
Web程序 时间:
2018-09-11 19:33:49
阅读次数:
181
公司有个业务是2B的以及日活不大,所以两台服务器搞定,一个6M EIP。两台机器都是CentOS7系统EIP为 xxx.xxx.xxx.xxx绑在 内网ip为 172.18.30.175的服务器上,内网机器的内网ip为 172.18.30.176。现在有个问题,更新软件的时候可以将EIP解绑然后重绑 ...
分类:
其他好文 时间:
2018-09-11 16:23:48
阅读次数:
232
一、准备工作 1.1、(服务端和客户端都需要设置) 系统使用的是CentOS6.8 禁用防火墙: 查看状态:# service iptables status 停止:# systemctl stop iptables 开机不启动:# chkconfig iptables off 查看:#chkcon ...
分类:
系统相关 时间:
2018-09-11 14:05:46
阅读次数:
171
1.将光盘挂载到/opt目录下2.在/opt目录下找到package包,进去安装vsftp还可以通过rpm-e删除vstpd这个包3.安装完包以后重启VSFTP服务查看VSFTP的状态登录上之后/opt目录下出现的内容4.重启之后无法在虚拟机上访问,通过关闭防火墙来进行访问iptables-Fiptables-Xsetenforce05.通过finger查看FTP的目录6.创建用户7.给/var/
分类:
其他好文 时间:
2018-09-11 01:08:30
阅读次数:
193
Linux系统内自带的防火墙有两层: 第一层:数据包过滤防火墙:IP Filtering和Net Filter 要进入Linux本机的数据包都会先通过Linux预先内置的防火墙(Net Filter),Net Filter是由iptables这个软件提供的,主要针对TCP/IP的数据包头部来进行过滤 ...
分类:
系统相关 时间:
2018-09-10 14:44:52
阅读次数:
277