摘要:[nginx]:【root】之设置根目录的权限 一、 nginx_root:(为【root目录】设置权限) 1、 nginx_root_path := /www/html/ 2、 nginx_root【设置属组】: -- 【主选】: chown -R root:root /www/html/ --
阅读全文
随笔分类 - os
操作系统内容
摘要:[linux]:如何学习内核开发 一、正文(本文源自百度搜索AI) 学习Linux内核开发是一个既深入又富有挑战性的过程,涉及到对操作系统底层机制的理解以及C语言的高级应用。以下是一些步骤和资源,可以帮助你开始学习Linux内核开发: (一)、 基础准备 1、学习C语言 确保你对C语言有扎实的理解。
阅读全文
摘要:[openeuler]:openeuler2403--网络配置 一、说明 1、操作系统基本信息: Linux euler 6.6.0-72.0.0.76.oe2403sp1.x86_64 #1 SMP Fri Dec 27 12:13:01 CST 2024 x86_64 x86_64 x86_64
阅读全文
摘要:[nginx]: config php-fpm for nginx(config) 一、背景信息 1、服务器:rocky-9.3 [root@rocky:conf.d]# uname -a Linux rocky 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT
阅读全文
摘要:[os/linux]:计算机中的编码和解码(ASCII) 一、ASCII(American Standard Code For Information Interchange)简介 1、 在二进制的计算机中,ASCII用‘8位二进制数值’表示一个‘字符’;这样就形成了“字符”和“数值”之间的对应关系
阅读全文
摘要:[linux] 内核模块的编译(百度AI整理) 一、正文内容 [linux] 内核模块的编译(百度AI整理) 在Linux中编译内核模块通常涉及以下步骤: 一、 安装必要的工具和库(ubuntu): sudo apt-get install build-essential linux-headers
阅读全文
摘要:[linux]: job(百度ai) 说明:本文由【百度ai】生成,本人整理。 一、Job 概述: 在Linux中,job是指通过shell提交的一个任务或命令的执行实例。当一个命令通过shell提交执行时,这个命令就被视为一个job。 每个job都有一个唯一的job ID,并且可以处于不同的状
阅读全文
摘要:[linux]: vim - docs 一、本地位置: 1、 vim docs position: /usr/share/vim/vim82/doc 2、 图例 二、 参考资料 1、 无
阅读全文
摘要:[os] xx.service文件编写 -- systemctl 一、 基本信息 1、 操作系统: Linux rocky 5.14.0-427.16.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 8 17:48:14 UTC 2024 x86_64 x
阅读全文
摘要:[win] 【batch】 --‘批处理程序’常用脚本 一、常用脚本 1、【pycmd.bat 功能】: 打开程序【cmd.exe】,然后【改变当前目录】 1 :: file_name = pycmd.bat 2 :: function = call cmd.exe, and then change
阅读全文
摘要:[win_os] chrome浏览器 -- 添加自定义搜索引擎并将其设置为默认搜索引擎(转载裁切) 一、搜索引擎集合 1、【bing】: https://global.bing.com/search?q=%s 2、【sogou】: https://www.sogou.com/web?query=%s
阅读全文
摘要:[os]:linux 【系统调用的编号】- SYSCALL_NUMBER 一、基本说明 1、操作系统:fedora38 2、【系统调用的编号】所在路径和名称: [ /usr/include/asm-generic/unistd.h ] 二、系统调用编号的源码【文件路径和名称: /usr/includ
阅读全文
摘要:[c]: 计算机编程总结 -- 数据处理 计算机编程,主要工作是数据输入、数据处理、数据输出。在计算机编程中,常见的数据操作有: 一、‘字符串’的处理; 二、‘日期’的处理; 三、‘文件’的读写; 四、‘标准设备’的输入输出。
阅读全文
摘要:cpp: shell.cpp -- (bugs) 一、原理 1、实现原理: 无限循环 + 标准输入(等待输入状态...); 二、代码 1 [wit@fedora tmp]$ cat shell.cpp 2 #include <iostream> 3 #include <string> 4 5 usi
阅读全文
摘要:os: vscode -- fedora38 一、vscode 安装:官方安装方法 1、vscode 官方安装网址:https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions 2
阅读全文
摘要:os: ubuntu2310 -- 基础配置 一、基本配置脚本(~/.bashrc) 1 [wit@ubuntu:null]$ cat ~/.bashrc 2 # ~/.bashrc: executed by bash(1) for non-login shells. 3 # see /usr/sh
阅读全文
摘要:os: ubuntu2204 -- 配置和常用脚本 一、配置(/etc/profile) 1 [wit@on:null]$ cat /etc/profile 2 # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)
阅读全文
摘要:os: fedora38 -- config 一、~/.basrc 1 [wit@fedora ~]$ cat ~/.bashrc 2 # .bashrc 3 4 # Source global definitions 5 if [ -f /etc/bashrc ]; then 6 . /etc/b
阅读全文
摘要:os: fedora39 -- 配置和脚本 一、全局配置信息(/etc/basrc) 1、PS1配置(/etc/bashrc) 1 PS1="[${PROMPT_BRACKETS:+[}\[\e[${PROMPT_COLOR:-32}m\]\u@\h\[\e[0m\]:\[\e[${PROMPT_D
阅读全文
摘要:os:ubuntu2204 -- 删除“旧内核”脚本 一、ubuntu删除旧内核: 1、查询内核信息: 1 [wit@on:null]$ sudo dpkg --get-selections | grep linux 2、删除旧内核: 1 [wit@on:null]$ sudo apt purge
阅读全文

浙公网安备 33010602011771号