CentOS7,lamp(php-fpm);要求:(1)三者分离于三台主机;(2)一个虚拟主机用于提供phpMyAdmin;另一个虚拟主机用于提供wordpress;(3)xcache一、准备工作:准备三台服务器A,B,C,分别用于安装httpd,php-fpm,mariadb。配置好网络和yum源,并关闭selinux和防火墙二、安装并配置ht..
分类:
其他好文 时间:
2016-04-25 22:53:17
阅读次数:
636
RHCE考试:1.Selinux两台服务器上配置~]#vim
/etc/selinux/configSELINUX=disabledSELINUXTYPE=targeted~]#reboot2.ssh登录控制~]#vim/ect/hosts.allowsshd:172.25.0.~]#vim/ect/hosts.denysshd:172.24.0.3.命令别名~]#vim/etc/bashrcalias
qstat=‘‘重读环境变量、验证~]#sourc..
分类:
其他好文 时间:
2016-04-25 15:14:16
阅读次数:
902
关闭SELinux的方法:修改/etc/selinux/config文件中的SELINUX="" 为 disabled ,然后重启。如果不想重启系统,使用命令setenforce 0注:setenforce 1 设置SELinux 成为enforcing模式setenforce 0 设置SELinu ...
分类:
系统相关 时间:
2016-04-24 18:31:50
阅读次数:
178
本文主要实现搭建简单的Samba服务器,使得Windows能访问Linux下的共享目录,为了简单,已经关闭iptables和selinux。 1、安装samba服务器 2、修改samba配置文件 3、测试配置是否有效 4、启动smb服务,查看相关端口 5、添加samba用户 6、Windows上访问 ...
分类:
其他好文 时间:
2016-04-24 00:33:29
阅读次数:
164
一、规划192.168.10.135Master192.168.10.132Slave1192.168.10.133Slave2注:均已关闭SELinux和Firewalld.二、部署前准备a.添加Hadoop用户并设置密码#useraddhadoop
#passwd--stdinhadoopb.添加sudo权限#ls-la/etc/sudoers
#chmodu+w/etc/sudoers##添加写权限
#vi/etc/sudoers
9..
分类:
其他好文 时间:
2016-04-22 16:54:28
阅读次数:
279
一、安装前 1、关闭linux的安全机制 vim /etc/selinux/config SELINUX=enforcing 改为 SELINUX=disabled 2、关闭iptables防火墙 vim /etc/sysconfig/iptables #把里边的条例全部dd删除掉,wq保存退出 s ...
分类:
其他好文 时间:
2016-04-21 16:47:18
阅读次数:
375
useradd-r-s/sbin/nologin-Mmysqlmkdir-p/opt/data/varyum-yinstallmakegcc-c++cmakebison-develncurses-devel/etc/init.d/iptablesstopchkconfigiptablesoffsed-i‘s#SELINUX=enforcing#SELINUX=disabled#g‘/etc/selinux/configyum-yinstallmakegcc-c++cmakebison-develncurses..
分类:
数据库 时间:
2016-04-21 12:00:14
阅读次数:
325
在平常搭建环境中,最容易遗忘iptables和selinux,以至于环境测试失败,相信有很多和我一样的遭遇的吧。好了,本文就说下这两个的日常用法。1、清空防火墙的命令:[root@localhost~]#iptables-F2、selinux的用法:(1)永久生效---需要重启服务器[root@localhost~]#vim/etc/sel..
分类:
系统相关 时间:
2016-04-20 23:57:53
阅读次数:
292
1、关闭selinux安全机制方法1:直接替换sed-i‘s#SELINUX=enforcing#SELINUX=disabled#g‘/etc/selinux/config方法2:vim/etc/sysconfig/selinux注释掉SELINUX=enforcing注释掉SELINUXTYPE=targeted最后添加SELINUX=disabled#让配置立刻生效setenforce02、精简开机自启动服务:关..
分类:
其他好文 时间:
2016-04-20 18:16:18
阅读次数:
225
1、centos6.5最小化安装后启动网卡2、ifconfig查询IP进行SSH链接3、更新系统源并且升级系统4、系统时间更新和设定定时任5、修改ip地址、网关、主机名、DNS6、关闭selinux,清空iptables7、创建普通用户并进行sudo授权管理8、修改SSH端口号和屏蔽root账号远程 ...
分类:
系统相关 时间:
2016-04-20 00:35:26
阅读次数:
286