22
2024
03
在非root环境下使用需要root权限的程序
在使用Replit等容器或没有sudo权限的Shell等情况下,想要运行apt来安装软件、使用systemctl设置服务等都是非常麻烦的,那么有没有方法能使其更简单呢。proot通过虚拟化文件系统和修改系统调用来模拟root权限,允许在非特权用户环境中运行需要root权限的应用程序。本文将介绍如何使用proot模拟root权限,方便在容器中使用root权限的程序使用一键脚本由于步骤较为繁琐,我写了一键脚本,方便使用curl https://r2.endercat.eu.org/root
作者:hqy | 分类:Linux | 浏览:581 | 评论:0
20
2024
03
14
2024
03
14
2024
03
14
2024
03
14
2024
03
13
2024
03
Linux错误代码
#ifndef _I386_ERRNO_H
#define _I386_ERRNO_H
#define EPERM 1 /* Operation not permitted */
#define ENOENT 2 /* No such file or directory */
#define ESRCH 3 /* No such process */
作者:hqy | 分类:Linux | 浏览:456 | 评论:0
13
2024
03
Webhook脚本范例 官方文档
https://www.zabbix.com/documentation/5.0/zh/manual/config/notifications/media/webhook/webhook_examples?hl=Zabbix.Log
作者:hqy | 分类:Linux | 浏览:536 | 评论:0
12
2024
03
12
2024
03
12
2024
03
11
2024
03
11
2024
03
11
2024
03
11
2024
03
设置Linux上ll命令显示时间格式
默认使用ll命令时候,时间为简写方式,无法显示年,如下:
drwxrwxr-x 1 dev dev 4096 Dec 12 18:00 sql
作者:hqy | 分类:Linux | 浏览:517 | 评论:0
11
2024
03
python https 无法访问 SSLError("Can\'t connect to HTTPS URL because the SSL module is not available
1,需要检查python 安装的时候是否支持 https
作者:hqy | 分类:Linux | 浏览:851 | 评论:0
11
2024
03
ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with
下面的官方说法是redhat7升级到8或者9,centos没说,实际可以重新编译python(带ssl参数)和安装对应版本的openssl就解决了。
作者:hqy | 分类:Linux | 浏览:600 | 评论:0
11
2024
03
11
2024
03
CentOS7下安装Docker-Compose No module named 'requests.packages.urllib3'
在使用Docker的时候,有一个工具叫做 docker-compose,安装它的前提是要安装pip工具.
作者:hqy | 分类:Linux | 浏览:431 | 评论:0