随笔分类 -  Linux

the simple description of linux
摘要:目前nginx需要pcre支持,另外如果要https需要加入http_stub_status和http_ssl yum -y install pcre-devel openssl openssl-devel ./configure --prefix=/usr/local/nginx --with-h 阅读全文
posted @ 2021-10-07 01:11 SteveYu 阅读(122) 评论(0) 推荐(0)
摘要:linux配置新的IP在/etc/sysconfig/network-scripts/ifcfg-eth0 此后需要删除/etc/udev/rules.d/70-persistent-rule文件 再service network restart即可 阅读全文
posted @ 2020-05-12 19:09 SteveYu 阅读(532) 评论(0) 推荐(0)
摘要:LinuxC——5.信号 1.❤️信号 信号是一种通信机制。 常用信号 SIGABRT 6 终止进程,abort函数产生 SIGALRM 14 超时,调用alarm产生 SIGBUS 7 硬件故障 SIGCHLD 17 子进程状态改变 SIGINT 2 终止进程 SIGIO 29 异步通知信号 SI 阅读全文
posted @ 2020-04-11 03:51 SteveYu 阅读(203) 评论(0) 推荐(0)
摘要:LinuxC——4.进程控制 1.PID pid是进程id,id为0是系统调度进程,id为1是初始化进程 2.fork fork函数是父亲进程进行拷贝父进程内存空间。 父进程返回子进程pid 子进程成功返回0,失败返回 1 3.exec加载器 我们如果一直在if和else if中控制进程,那么会臃肿 阅读全文
posted @ 2020-04-10 01:52 SteveYu 阅读(210) 评论(0) 推荐(0)
摘要:LinuxC——3.系统属性 1.❤️passwd口令文件 1.1.什么是口令文件 存放账户信息的文件,就是口令文件 1.2.文件内容 真实密码放在 /etc/shadow中 1.3.getpwuid & getpwnam 这两个函数获取账户数据,同样可以读取/etc/passwd也可以 案例 🧡 阅读全文
posted @ 2020-04-09 11:18 SteveYu 阅读(227) 评论(0) 推荐(0)
摘要:LinuxC——2.文件属性 0.❤️API stat、fstat、lstat umast chmod、fchmod chown、fchown、lchown link、unlink、remove、rename、symlink、readlink chdir、getcwd 1.🧡Linux的7种文件类 阅读全文
posted @ 2020-04-08 03:09 SteveYu 阅读(442) 评论(0) 推荐(0)
摘要:LinuxC——1.文件读写 1.❤️文件IO 从CPU到文件是Output的一个过程,从文件到CPU是一个Input的过程,这个过程是以CPU为点的 2.🧡系统函数 open:打开文件 close:关闭文件 read:读数据 write:写数据 lseek:移动文件中读写位置 dup:文件书写位 阅读全文
posted @ 2020-04-05 14:47 SteveYu 阅读(2046) 评论(0) 推荐(0)
摘要:1 阅读全文
posted @ 2020-03-13 19:56 SteveYu 阅读(250) 评论(0) 推荐(0)
摘要:VNC连接远程Linux——废弃电脑作为运算机器 1.install 2.set passwd 3.set up 阅读全文
posted @ 2020-03-13 19:27 SteveYu 阅读(162) 评论(0) 推荐(0)
摘要:1.1.模式 编辑模式 输入模式 末行模式 1.2.常用命令 vi file 直接打开,不能修改,光标在行首 vi +n file 直接打开,不能修改,光标在第n行 vi + file 直接打开,不能修改,光标在最后一行 移动光标命令 HJKL 对应 左上下右 移动光标命令 上下左右 对应 上下左右 阅读全文
posted @ 2019-07-30 03:46 SteveYu 阅读(251) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/julyme/p/5969626.html wget获取jdk wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com 阅读全文
posted @ 2019-02-12 22:24 SteveYu 阅读(160) 评论(0) 推荐(0)