小编Lun*_*tic的帖子

Centos7 - dev sda 上的缓冲区 I/O 错误,逻辑块 xxxxxxxxx,丢失异步页面写入

我有一个 Web 服务器,其中包含 HP MSA2040 存储(10 TB 总存储)中的内容。

我不断收到如下错误

Jul 31 19:06:24 xxxxxxxx*** kernel: blk_update_request: I/O error, dev sda, sector 7094923416
Jul 31 19:06:24 xxxxxxxx*** kernel: buffer_io_error: 1110 callbacks suppressed
Jul 31 19:06:24 xxxxxxxx*** kernel: Buffer I/O error on dev sda, logical block 886865171, lost async page write
Jul 31 19:06:24 xxxxxxxx*** kernel: Buffer I/O error on dev sda, logical block 886865172, lost async page write
Jul 31 19:06:24 xxxxxxxx*** kernel: Buffer I/O error on dev sda, logical block 886865173, …
Run Code Online (Sandbox Code Playgroud)

xfs io centos7

4
推荐指数
1
解决办法
4万
查看次数

如何在 Centos 7.4 上仅为 Apache 禁用 Selinux

我不想禁用 Selinux,但我遇到了问题。我正在使用 FFMPEG(位于 /var/www/tester/ffmpeg 并归 apache 所有)

[root@betaX tester]# ls -Z /var/www/html/tester/ffmpeg/
-rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 ffmpeg
-rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 ffmpeg-10bit
-rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 ffprobe
-rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 ffserver
drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 manpages
drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 model
-rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 qt-faststart
Run Code Online (Sandbox Code Playgroud)

但是每次我尝试运行 ffmpeg

{ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 16 -movflags faststart {output}.mp4
Run Code Online (Sandbox Code Playgroud)

我收到权限被拒绝错误。

[root@betaX tester]# tail -f /var/log/httpd/error_log
sh: /var/www/html/tester/ffmpeg/ffmpeg: Permission denied
Run Code Online (Sandbox Code Playgroud)

我想只为 Apache 禁用 Selinux,因为它会花费我很多时间,在 Centos 7.x 上有什么方法可以做到吗?我在 Fedora 中找到了一个解决方案,但我没有任何名为 …

selinux apache-2.4 centos7

3
推荐指数
1
解决办法
5460
查看次数

标签 统计

centos7 ×2

apache-2.4 ×1

io ×1

selinux ×1

xfs ×1