linux上安装有些东西时会出现 Permission denied 的情况:以下就是解决它的办法之一
编辑/etc/selinux/config,找到这段:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
把 SELINUX=enforcing 注释掉:#SELINUX=enforcing ,然后新加一行为:
SELINUX=disabled
保存,关闭。
……
编辑/etc/sysconfig/selinux,找到:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
如果SELINUX已经是 SELINUX=disabled,那么就不用改了,否则就把SELINUX=enforcing 注释掉,新加一行:
SELINUX=disabled
保存,退出。
如果你碰到其他类似提示:
cannot restore segment prot after reloc: Permission denied
哪应该是SELinux的问题,可以考虑把它关闭。
————————————————————————————-
郁闷的是.我把SELinux关闭后还是不行.于是到google上search.发现这个很有用.
在你保证SElinux 被disable后.还执行下
chcon -t texrel_shlib_t
如: chcon -t texrel_shlib_t /路径/路径/名字.so (这个文件视具体执行文件.)
以上两步.已经解决了很多server的问题了.
分享到:
相关推荐
error :/usr/lib/libjvm.so: cannot restore segment prot after reloc: Permission denied . use the command: chcon -t textrel_shlib_t /usr/lib/libjvm.so 这是官方的提示 简单的做法是 setenforce 0 ok,java...
去噪图片效果很好
Jenkins是一个独立的开源软件项目,是基于Java开发的一种持续集成工具,用于监控持续重复的工作,旨在提供一个开放易用的软件平台,使软件的持续集成变成可能。前身是Hudson是一个可扩展的持续集成引擎。...
下面我们来看 restore 操作的详细流程: 向 cinder-api 发送 restore 请求cinder-api 发送消息cinder-schedule
KiCad保存并恢复参考位置 在KiCad中保存/恢复参考标记的位置和方向 对于那些经常修改库符号和封装的用户,将新的网表文件拖入电路板布局可能会导致参考标记重置为其默认位置。 这个简单的插件允许用户保存和恢复所有...
这个仓库原本是要作为博客系列的伴侣,但我现在觉得该仓库很全面,不需要博客文章。 我们将深入探讨Android中的Fragment在配置更改期间如何保存/恢复其状态。 乍一看,这似乎微不足道。 我想到的第一个解决方案是: ...
八、 pg_restore: pg_restore:pg_restore:pg_restore: pg_restore:pg_restore:pg_restore:pg_restore: 77 PostgreSQL PostgreSQL PostgreSQL学习手册 学习手册 学习手册 (SQL (SQL语言函数 语言函数 ) . 83 一、基本...
从还原数据 查看的命令行用法,类似于 安装 通过NPM安装 npm install mongodb-...var restore = require ( 'mongodb-restore' ) ; restore ( { uri : 'uri' , // mongodb://<dbuser>:<dbpassword>@<dbdomain>.mong
Docker的 Restart policy与dockerd命令的–live-restore启动标志还有区别:–live-restore标志可以在Docker升级的时候保证容器继续运行,但是网络以及用户终端输入会被中断。 那到底什么是restart policy呢?我们来
使用带有psql的sql备份文件还原postgres服务容器。... - name : Postgres Backup Restore uses : tj-actions/pg-restore@v4.5 with : database_url : " postgres://test_user:test_password@localhost:5432/test_d
ip6tables-restore命令用来还原ip6tables表。 语法格式:ip6tables-restore [参数] 常用参数: -c 指定在还原iptables表时候,还原当前的数据包计数器和字节计数器的值 -t 指定要还原表的名称 参考实例...
stable-diffusion-webui Restore faces Error 【https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/1513】 我认为这与损坏的安装有关。就我而言,我在“\models\Codeformer”上的 Codeformer.pth 已...
群晖restore工具
tsm restore命令的详细解释! Therestorecommandobtainscopiesofbackupversionsofyourfiles from aTivoli®StorageManagerserver,orinside abackup set. Torestore files, specifythe directoriesorselectedfiles, ...
tensorflow model save and restore example
[量产部落]Restore_v3.26.0.0
Restore可低级格式化你的U盘并恢复出厂默认状态,使用前要备份U盘中的数据。Format用于格式化你的U盘为FAT/NTFS文件系统,同样操作前要备份数据。群联官方发布的Phison Format Restore修复工具,版本是3.15应该是...
docker-iptables-restore !!!实验性的!!! 将iptables推送到docker主机时,可能会破坏docker创建的现有规则。 备份并稍后还原这些规则。 这个怎么运作: docker-iptables-save.sh Bash脚本,利用iptables-...
restore-symbol
用法 $ rdsing --helpUsage: rdsing <command>command restore Restore the latest RDS snapshot available. destroy Delete an RDS instance.有两种命令,一种用于恢复,一种用于删除: $ rdsing restore --...