- 浏览: 344707 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (238)
- j2ee (22)
- mysql (14)
- hibernate (2)
- struts (3)
- spring (7)
- php (28)
- cakephp (12)
- pattern (0)
- 数据结构 (0)
- python (17)
- redis (1)
- sql (2)
- ibatis (1)
- jquery (3)
- 测试 (3)
- linux (37)
- solr (3)
- oracle (5)
- jira (5)
- 版本控制 (3)
- xp (1)
- IDE (3)
- apache (4)
- hadoop (2)
- freemarker (2)
- maven (5)
- 项目管理 (2)
- UML (1)
- Django (6)
- 正则 (1)
- Scrapy (1)
- 文档管理 (3)
- 项目集成 (8)
- MQ (3)
- 架构 (1)
- HTML (1)
- IT (1)
- 云 (0)
- 应用服务器 (4)
- win 7 (1)
- thrift (1)
- 学习 (3)
- OpenStack (3)
- sqlserver (1)
- javascript (1)
- zabbix (3)
- IOS (1)
- rabbitmq (1)
- springcloud (2)
最新评论
-
xushenkun4:
至今仍然有这个bug,0.9.1无法传输中文utf8。
thrift使用出现诡异问题 -
feiniao2029:
[i][/i][u][/u]引用
spring 配置init方法 -
wt811004:
非常感谢朋友慷慨指导
dotproject项目管理工具使用 -
hackpro:
这将是一个经典,就像大话西游...
javaeye怀旧 -
raymond2006k:
个人更偏好 Velocity。我觉得还有个对比点,就是编程方式 ...
jsp freemarker velocity 比较
'm trying to use semanage command to configure certain elements of SELinux policy without requiring modification to or recompilation from policy sources under RHEL 6 server. But, I'm not able to find out this command and/or package name. How do I install semanage command under RedHat Enterprise Linux?
You need to use the yum command to find out which package provides file called /usr/sbin/semanage. Type the following command:# yum provides /usr/sbin/semanage
OR# yum whatprovides /usr/sbin/semanage
Sample outputs:
Loaded plugins: rhnplugin policycoreutils-python-2.0.83-19.8.el6_0.x86_64 : SELinux policy core python utilities Repo : rhel-x86_64-server-6 Matched from: Filename : /usr/sbin/semanage policycoreutils-python-2.0.83-19.1.el6.x86_64 : SELinux policy core python utilities Repo : rhel-x86_64-server-6 Matched from: Filename : /usr/sbin/semanage
Type the following command to install the same, enter:# yum -y install policycoreutils-python
Sample outputs:
============================================================================================================================================================================================================================================= Installing: policycoreutils-python x86_64 2.0.83-19.8.el6_0 rhel-x86_64-server-6 334 k Installing for dependencies: audit-libs-python x86_64 2.0.4-1.el6 rhel-x86_64-server-6 56 k libselinux-python x86_64 2.0.94-2.el6 rhel-x86_64-server-6 201 k libsemanage-python x86_64 2.0.43-4.el6 rhel-x86_64-server-6 81 k setools-libs x86_64 3.3.7-4.el6 rhel-x86_64-server-6 400 k setools-libs-python x86_64 3.3.7-4.el6 rhel-x86_64-server-6 222 k Transaction Summary ============================================================================================================================================================================================================================================= Install 6 Package(s) Upgrade 0 Package(s) Total download size: 1.3 M Installed size: 0 Is this ok [y/N]: y Downloading Packages: (1/6): audit-libs-python-2.0.4-1.el6.x86_64.rpm | 56 kB 00:00 (2/6): libselinux-python-2.0.94-2.el6.x86_64.rpm | 201 kB 00:00 (3/6): libsemanage-python-2.0.43-4.el6.x86_64.rpm | 81 kB 00:00 (4/6): policycoreutils-python-2.0.83-19.8.el6_0.x86_64.rpm | 334 kB 00:00 (5/6): setools-libs-3.3.7-4.el6.x86_64.rpm | 400 kB 00:00 (6/6): setools-libs-python-3.3.7-4.el6.x86_64.rpm | 222 kB 00:00 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 1.7 MB/s | 1.3 MB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : setools-libs-3.3.7-4.el6.x86_64 1/6 Installing : setools-libs-python-3.3.7-4.el6.x86_64 2/6 Installing : libsemanage-python-2.0.43-4.el6.x86_64 3/6 Installing : audit-libs-python-2.0.4-1.el6.x86_64 4/6 Installing : libselinux-python-2.0.94-2.el6.x86_64 5/6 Installing : policycoreutils-python-2.0.83-19.8.el6_0.x86_64 6/6 Installed: policycoreutils-python.x86_64 0:2.0.83-19.8.el6_0 Dependency Installed: audit-libs-python.x86_64 0:2.0.4-1.el6 libselinux-python.x86_64 0:2.0.94-2.el6 libsemanage-python.x86_64 0:2.0.43-4.el6 setools-libs.x86_64 0:3.3.7-4.el6 setools-libs-python.x86_64 0:3.3.7-4.el6 Complete!
Now you can use semanage command:# semanage
Sample outputs:
/usr/sbin/semanage: semanage [ -S store ] -i [ input_file | - ] semanage [ -S store ] -o [ output_file | - ] semanage {boolean|login|user|port|interface|module|node|fcontext} -{l|D|E} [-n] semanage login -{a|d|m} [-sr] login_name | %groupname semanage user -{a|d|m} [-LrRP] selinux_name semanage port -{a|d|m} [-tr] [ -p proto ] port | port_range semanage interface -{a|d|m} [-tr] interface_spec semanage module -{a|d|m} [--enable|--disable] module semanage node -{a|d|m} [-tr] [ -p protocol ] [-M netmask] addr semanage fcontext -{a|d|m} [-efrst] file_spec semanage boolean -{d|m} [--on|--off|-1|-0] -F boolean | boolean_file semanage permissive -{d|a|l} type semanage dontaudit [ on | off ] Primary Options: -a, --add Add a OBJECT record NAME -d, --delete Delete a OBJECT record NAME -m, --modify Modify a OBJECT record NAME -i, --input Input multiple semange commands in a transaction -o, --output Output current customizations as semange commands -l, --list List the OBJECTS -E, --extract extract customizable commands -C, --locallist List OBJECTS local customizations -D, --deleteall Remove all OBJECTS local customizations -h, --help Display this message -n, --noheading Do not print heading when listing OBJECTS -S, --store Select and alternate SELinux store to manage Object-specific Options (see above): -f, --ftype File Type of OBJECT "" (all files) -- (regular file) -d (directory) -c (character device) -b (block device) -s (socket) -l (symbolic link) -p (named pipe) -F, --file Treat target as an input file for command, change multiple settings -p, --proto Port protocol (tcp or udp) or internet protocol version of node (ipv4 or ipv6) -M, --mask Netmask -e, --equal Substitue source path for dest path when labeling -P, --prefix Prefix for home directory labeling -L, --level Default SELinux Level (MLS/MCS Systems only) -R, --roles SELinux Roles (ex: "sysadm_r staff_r") -s, --seuser SELinux User Name -t, --type SELinux Type for the object -r, --range MLS/MCS Security Range (MLS/MCS Systems only) --enable Enable a module --disable Disable a module Requires 2 or more arguments
See also:
You can also view the manual page on semanage using the following command:$ man semanage
参考地址:http://www.cyberciti.biz/faq/redhat-install-semanage-selinux-command-rpm/
发表评论
-
详解 Nginx + Tomcat HTTPS/SSL 配置
2014-08-27 14:43 875前言:这篇文章涉及到很多专业术语,例如密钥对,私钥,公钥,证 ... -
CentOS6.2下YUM安装MySQL
2014-08-26 16:26 651用yum安装MySql 打入如下命令: [root@my ... -
centos直接yum安装nginx三部曲
2014-07-28 10:03 596第一步: CentOS 6,获取资源,先执行:rpm - ... -
linux局域网内磁盘映射【摘录】
2012-11-30 15:57 816同事需要局域网挂着硬盘,找了一下!顺便学习。哈哈 ... -
Cron 用法说明
2012-11-29 13:32 836更新:添加日志 cron.* -/var/log/cr ... -
Ubuntu下KVM的安装配置
2012-08-28 11:21 13921. KVM KVM的全称是“基于内核的虚拟机 ... -
Linux中通过locale来设置字符集
2012-08-28 11:11 1059在Linux中通过locale来 ... -
ubuntu 12.04 mysql 编码问题
2012-08-24 21:50 15181. 修改/etc/mysql/my.conf [mysq ... -
[Ubuntu]E: Unable to locate package - apt-get install error
2012-08-24 17:42 2852E: Unable to locate package ... -
httpd.tar.gz配置开机自启服务
2012-07-23 11:36 10741. httpd 2.2.22 安装 步骤一 ... -
在linux上安装rz/sz包
2012-07-23 10:17 1013在SecureCRT这样的ssh登录软件里, 通过在Linux ... -
yum命令处理时报错:undefined symbol: SSL_load_error_strings
2012-07-20 17:24 17801. 问题 使用yum时出现下列错误: ... -
linux 常用指令
2012-06-25 17:21 7931. 系统 # uname -a ... -
linux文件合并,去重复
2012-06-11 09:42 1279第一:两个文件的交集,并集前提条件:每个文件中不得有重复行 1 ... -
Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]
2012-02-29 23:14 2045如果修改过端口或添加过端口监听,重新Apache的时候可 ... -
Linux关机命令详解
2012-02-28 00:33 903在linux下一些常用的关机/重启命令有shutdown、ha ... -
[Centos 6] 同一台机器部署多个Tomcat应用服务器
2012-02-28 00:25 19001. 修改/etc/profile文件 TOMC ... -
[Centos 6] Subversion安装配置
2012-02-26 00:52 1344svnserver 1. 安装 yum安装命令 ... -
[Centos 6] 常用软件安装配置
2012-02-25 22:13 1703[Centos 6] 常用软件安装配置 1. mysq ... -
linux 后台运行python程序(不可见)
2011-12-31 09:26 9007nohup python *.py & noh ...
相关推荐
1.CentOS无线网卡驱动安装; 2.操作笔记,留此备忘。
apache-tomcat-8.5.50.tar.gz ,centos下的apache-tomcat-8.5.50安装工具文件,需要解压,解压后就是apache-tomcat-8.5.50.tar.gz
用了2个月centos,总结了些常用操作:文件夹变大,桌面图标变大,terminal保护色,双击termimal指定路径,双击文件夹进入而不弹,安装jdk,vi编辑,gedit编辑,指令tar,rpm,yum,wget,查看隐藏文件,设置环境变量...
大家在安装weblogic的时候,经常会遇到安装检查256色不通过问题,这是我在centos7上安装问题的解决办法,乌班图上我也试过,也可以,而且保证一下能解决问题
jdk-8u231-linux-x64.tar.gz ,centos下的jdk1.8安装工具文件,需要解压,解压后就是jdk-8u231-linux-x64.tar.gz
制作这个包是为了免去安装的烦恼,MySql绿色服务器版,可以安装在32位Windows系统中运行。安装时只需要把压缩包解压出来,然后运行Install.bat即可,会自动注册为服务,并每次重启后自动运行,同时有Unistall.bat,...
经典linux-CentOS6.4【或中标麒麟】下安装oracle11g文档。
CentOS的类似Ubuntu的每日消息借助无用的彩色彩色小程序屏幕,自动检查更新并通过电子邮件发送更新-正因为如此。 也可以在其他基于Redhat的系统上使用,例如Fedora和衍生工具。 依存关系无花果洛尔卡特EPEL资料库...
mysql8一键化安装脚本 1 可以自由安装在任何目录下(直接回车默认安装在/auto),而且所有的东西都在此目录下,不会出现在其他目录中 2 内置可以在存储过程中执行Linux命令插件 3 安装完成后,cd /auto/mysql/support-...
oracle 安装时提示256颜色问题 经验证通过
硬件配置完成后,在虚拟机上安装 CENTOS7,点击虚拟机上绿色的三角形(启用按钮) 选第一个高亮的,回车,虚拟机开始安装 下面进行选择语言 进行下如操作,安装源选择本地: 软件安装选择最小安装 ,点进去 下面...
Nginx是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,并在一个BSD-like 协议下发行。其特点是占有内存少,并发能力强,事实上nginx的并发能力确实在同类型的网页服务器中表现较好,...
solr-6.0.1.tgz ,centos下的solr-6.0.1安装工具文件,需要解压,解压后就是solr-6.0.1.tgz
Centos7与Centos6.x有了很大的不同。...2、Centos7之前的系统,如果安装vnc一般都需要配置 [root@localhost ~]# cat /etc/sysconfig/vncservers # THIS FILE HAS BEEN REPLACED BY /lib/systemd/system/vncserver@.
apache-activemq-5.15.7-bin.tar.gz ,centos下的apache-activemq-5.15.7安装工具文件,需要解压,解压后就是apache-activemq-5.15.7-bin.tar.gz
redis-4.0.6.tar.gz,centos下的redis-4.0.6安装工具文件,需要解压,解压后就是redis-4.0.6.tar.gz
redis-3.2.8.tar.gz,centos下的redis-3.2.8安装工具文件,需要解压,解压后就是redis-3.2.8.tar.gz
2.将weblogic的文件复制到主机中,此文件为通用版,使用java进行安装,注意:在下边的步骤中,绿色光标处为空时,是直接回车 3.选择安装weblogic
目前只在 CentOS 上测试过。 它可能适用于 Fedora,但除非您先使用 apt-get 翻译先决条件,否则它不适用于 Ubunutu。 这也被设计为在已经安装了许多其他先决条件的 cpanel 环境中工作。 这个项目最初是由的 ffmpeg ...
基础环境配置,安装必备组件和一些运维组件: 序号 软件名称 说明 使用方法 1 wget wget命令用来从指定的URL下载文件 2 nano nano是一个字符终端的文本编辑器,有点像DOS下的editor程序 3 zip zip命令可以用来解压缩...