关闭防火墙SELINUX=disabled可以是三种状态# enforcing - SELinux security policy is enforced.打开# permissive - SELinux prints warnings instead of enforcing.打开不拦截#...
分类:
系统相关 时间:
2015-11-22 13:54:54
阅读次数:
174
关闭系统不必要的服务;关闭selinux,关闭iptables;关闭ctrl+alt+del重启;设置ssh端口,关闭DNS解析;设置系统最大文件描述符;设置系统关键文件权限;配置安装ntp;安装vim;配置安装阿里云yum源和epel源;#!/bin/bash#writtenbymofansheng@2015-11-03#systemoptimizationsc..
分类:
系统相关 时间:
2015-11-13 23:42:14
阅读次数:
575
系统版本:D2.6.32-431.el6.x86_64虚拟机:四台环境准备:关闭selinux;关闭iptables;其中两台nginx+keepalive已安装且正常;另外两台的节点web工作正常;#为了更好的测试,web1:www.22web2:www.23;nginx安装:yuminstallpcre*-yyuminstallopensslopenssl-devel-yuseradd-s/..
分类:
其他好文 时间:
2015-11-02 06:48:28
阅读次数:
318
centos7下首先确认防火墙、selinux关闭状态 [root@applog?~]#?cat?/etc/redhat-release? CentOS?Linux?release?7.0.1406?(Core) 第一步 ?安装ntp ? ntpdate [root@applog?~]#?yum?install??ntp??...
分类:
其他好文 时间:
2015-10-14 10:39:39
阅读次数:
180
问题描述,1 检查mysql服务是否启动, 2 关闭防火墙 Netfilter/Iptables 关闭方式[root@localhost ~]#iptables -F SELINUX 关闭方式 [root@localhost ~]#setsebool -P samba_enable_home_d.....
分类:
数据库 时间:
2015-10-02 14:53:18
阅读次数:
187
关闭selinux,关闭防火墙,配置网络getenforce
setenforce0
vi/etc/selinux/config
systemctlstopfirewalld.service
systemctldisablefirewalld.serivce挂载光盘,备份文件,创建repo文件,清除和重建缓存mkdir/mnt/cdrom
mount/dev/cdrom/mnt/cdrom
mkdir/etc/yum.repos.d/bac..
分类:
Web程序 时间:
2015-09-25 03:58:56
阅读次数:
352
本文主要介绍在RHEL6/centos6下本软件的安装,原理网上一大堆不辍述,大约耗时十分钟可完成。环境:centos6.5防火墙和SELinux关闭安装步骤如下:1.启用EPEL源来安装erlangrpm-ivhhttp://mirrors.ustc.edu.cn/epel/6/x86_64/epel-release-6-8.noarch.rpm&&yuminstall-y..
分类:
其他好文 时间:
2015-09-10 17:34:41
阅读次数:
157
前提:iptables关闭或放行,selinux关闭或放行。目标:创建虚拟ftpuser到指定的www.ftpuser.com目录,且只能在本目录下。创建帐号useradd -d /var/www/www.ftpuser.com -s /sbin/nologin -g ftp ftpuser -d....
分类:
其他好文 时间:
2015-08-31 17:18:00
阅读次数:
269
查看SELinux状态:1、/usr/sbin/sestatus-v|grep"SELinuxstatus:"##如果SELinuxstatus参数为enabled即为开启状态2、getenforce##除了上面的命令还可以使用这个命令,输出结果是permissive为关闭,enforcing为开启。关闭SELinux:1、临时关闭(不重启系统即可生效):setenforce..
分类:
系统相关 时间:
2015-08-21 17:22:51
阅读次数:
154
关闭iptables和SELINUX: # chkconfig iptables off # vi /etc/sysconfig/selinux(把enforcing修改为disabled,然后重启系统)...
分类:
系统相关 时间:
2015-08-17 21:58:52
阅读次数:
150