selinux

centos7安装docker详细过程

空扰寡人 提交于 2019-12-01 20:02:32
因为开发的机器是在局域网中,不可以连接外网,所以,优先考虑离线安装docker。 但是安装的过程一路坎坷。安装到最后发现有些环境的依赖版本过低,但是这些依赖又被其他多个程序使用。不能轻易删除。 所以申请了网络权限,在线安装docker 关于离线的安装过程,虽然最终没有安装成功,也记录在文档了,毕竟也踩了好多坑 1、环境: centos 7.1 内核版本3.10.0-229.el7.x86_64 docker 1.13.1版本 2、在线安装docker: 1)、执行完安装命令: yum install docker 2)、执行启动命令: systemctl start docker 报下面错误: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable selinux in docker (--selinux-enabled=false) 解决方法: 重新编辑docker配置文件:将selinux-enabled改成selinux-enabled=false vi /etc/sysconfig/docker # /etc/sysconfig/docker #

SELinux has to be disabled on RHEL/OEL 5

末鹿安然 提交于 2019-12-01 12:35:28
SELinux has to be disabled on RHEL/OEL 5 Due to an internal bugs of Oracle database (Bug 6140224, Bug 6079461), SELinux has to be disabled on RHEL/OEL 5 to work with Oracle database 10.2 一、Symptoms Immediately after a successful RDBMS installation sqlplus will not start: ./sqlplus / as sysdba ./sqlplus: error while loading shared libraries: $ORACLE_HOME/lib/libnnz11.so: cannot restore segment prot after reloc: Permission denied 二、change SELinux is running in "enforcing" mode. So disable SELinux mode. 三、Cause You are encountering unpublished Bug 6140224, "SQLPLUS FAILS TO LOAD LIBNNZ11.SO WITH

防火墙与selinux

笑着哭i 提交于 2019-12-01 12:21:14
关闭防火墙及关闭防火墙开机自启 [root@localhost ~]# systemctl stop firewalld.service [root@localhost ~]# systemctl disable firewalld.service Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service. Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service. 查看SeLinux状态 [root@localhost ~]# sestatus SELinux status: enabled SELinuxfs mount: /sys/fs/selinux SELinux root directory: /etc/selinux Loaded policy name: targeted Current mode: enforcing Mode from config file: error (Success) Policy MLS status: enabled Policy deny_unknown status: allowed Max kernel policy version: 28

Centos 7.x Linux XAMPP 1.8.3-5 for CentOS 7.2 Linux 版系统安装

折月煮酒 提交于 2019-12-01 11:55:26
XAMPP 1.8.3-5 for linux 安装包主要包含如下软件包 Apache 2.4.10 MySQL 5.6.20 PHP 5.5.15 & PEAR + SQLite 2.8.17/3.7.17 + multibyte (mbstring) support Perl 5.16.3 ProFTPD 1.3.4c phpMyAdmin 4.2.7.1 OpenSSL 1.0.1i ProFTPD 1.3.4c 安装步骤: 安装XAMPP 1.8.3-5 on 64 bit Linux systems: # mkdir /wangsl # cd /wangsl 下载 xampp-linux-x64-1.8.3-5-installer.run # wget https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/xampp-linux-x64-1.8.3-5-installer.run # chmod +x xampp-linux-x64-1.8.3-5-installer.run # ./xampp-linux-x64-1.8.3-5-installer.run [root@localhost wangsl]# ./xampp-linux-x64-1.8.3-5-installer.run

How and why does “setenforce 0” allow Java 7 to run? [closed]

百般思念 提交于 2019-12-01 09:12:11
I've made some changes on a program I'm working on and I've updated Java from Java 6 to Java 7. I am running the program on a CentOS 5.8 32-bit VM. Before the Java update it worked fine. Now the process isn't starting with the error: [root@CentOS-58-i-0 bin]# ./agent.sh start Starting Agent.....d. running (23442). Error: dl failure on line 864 Error: failed /agent/jre/lib/i386/client/libjvm.so, because /agent/jre/lib/i386/client/libjvm.so: cannot restore segment prot after reloc: Permission denied I've checked online and the solution/workaround for this is to run the command: setenforce 0 and

How and why does “setenforce 0” allow Java 7 to run? [closed]

只愿长相守 提交于 2019-12-01 06:59:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I've made some changes on a program I'm working on and I've updated Java from Java 6 to Java 7. I am running the program on a CentOS 5.8 32-bit VM. Before the Java update it worked fine. Now the process isn't starting with the error: [root@CentOS-58-i-0 bin]# ./agent.sh start Starting Agent.....d. running (23442

Linux关闭SELinux的方法

耗尽温柔 提交于 2019-12-01 05:00:06
1 [root@localhost ~]# cat /etc/selinux/config 2 3 # This file controls the state of SELinux on the system. 4 # SELINUX= can take one of these three values: 5 # enforcing - SELinux security policy is enforced. 6 # permissive - SELinux prints warnings instead of enforcing. 7 # disabled - No SELinux policy is loaded. 8 SELINUX=disabled 9 # SELINUXTYPE= can take one of three two values: 10 # targeted - Targeted processes are protected, 11 # minimum - Modification of targeted policy. Only selected processes are protected. 12 # mls - Multi Level Security protection. 13 SELINUXTYPE=targeted 来源: https

How to set SELinux to 0 or permissive mode in android 4.4.4 and above?

江枫思渺然 提交于 2019-12-01 03:06:11
I want to set the SELinux (Security Enhanced Linux) mode to Permissive or (0) on android 4.4.4 (and above if possible). I use the following command: setenforce 0 , setenforce permissive and setenforce Permissive under root (my device is rooted). But the output of getenforce is always Enforcing . Now I am exhausted with this problem. Can any one give me a solution? Thanks in advance. Apparently Google has removed the CONFIG_SECURITY_SELINUX_DEVELOP kernel flag from many of their Stock kernels. Thus the standard trick mentioned by William (below) probably doesn't work. An example of these

14_使用windows自带的远程桌面mstsc连接Centos7.x远程桌面

我是研究僧i 提交于 2019-12-01 02:20:01
14_使用windows自带的远程桌面mstsc连接Centos7.x远程桌面 秋的懵懂 关注 0.4 2018.07.03 15:28* 字数 1038 阅读 17465评论 2喜欢 12 时间:2018-07-03 作者:魏文应 一、说明 这里,我希望用windows远程访问centos图形界面。xmanager连接centos远程桌面,有以下问题: 只能有一个用户同时使用xmanger连接远程桌面,多个用户同时登录不行。 centos上,因为gnome硬件加速的原因,导致Xdmcp不可用,而基于xdmcp的xmanager也就无法使用了。 如果 直接使用VNC ,配置又相对麻烦一些。而且还要在windows上安装一个RealVNC软件。 我们希望找到一个配置简单,连接方便的方案。 所以,这里我使用了 XRDP服务器 。 相关工具材料: 一台安装了centos系统的电脑(我的是centos7)。 一台安装了windows系统的电脑(我的是win7)。 二、安装配置XRDP 下面的很多操作需要root用户权限,所以,我们先切换为root用户: sudo su - root 安装epel库 查询是否已经安装epel库: rpm -qa|grep epel 如果 epel库 没有安装,则安装它: yum install epel-release 安装xrdp 安装xrdp服务:

完全分布式集群(一)集群基础环境及zookeeper-3.4.10安装部署

烈酒焚心 提交于 2019-12-01 00:23:35
本系列博文将记录在3台CentOS7环境下搭建完全分布式数据分析平台环境。 基础环境配置 环境信息 设置机器名 设置服务器的机器名,3台都设依次分别设置为node222,node224,node225,root用户操作,示例如node222。 hostnamectl set-hostname node222 修改各服务器的/etc/hosts文件,追加3台服务器的IP和hostname信息,3台服务器信息一致,root用户操作。 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.0.222 node222 192.168.0.224 node224 192.168.0.225 node225 切一次用户测试配置是否设置生效,同时测试通过hostname互ping是否正常。 su - root ping node222 关闭防火墙 CentOS7默认防火墙服务是firewalld,3台服务器都要执行,root用户操作,如果安装了iptables服务也要关闭。 systemctl stop firewalld.service