![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
ciqingloveless
这个作者很懒,什么都没留下…
展开
-
深入理解程序设计linux汇编语言书中源码
代码.section .data.section .text.globl _start_start:movl $1, %eax # 这事用于退出程序的linux内核命令号movl $0, %ebx # 这事我们将返回给操作系统的状态码# 改变这个数字,则返回到echo的值回不同int $0x80 # 这将唤醒内核,以运行退出命令编译as exit.s -o exit.o链接文件ld exit.o -o exit执行./exitecho $?maximum.s1.3powe原创 2022-06-22 16:02:28 · 326 阅读 · 0 评论 -
ISCSI 服务器搭建
服务端安装服务器端程序# 安装yum -y install targetd targetcli#启动systemctl start target# 设置开机自动启动systemctl enable target# 关闭防火墙systemctl status firewalldsystemctl stop firewalldsystemctl disable firewalld# 或者打开3260端口firewall-cmd --permanent --add-port原创 2022-01-17 15:56:27 · 1022 阅读 · 0 评论 -
查询linux中swap各进程占用情况
for i in $( cd /proc;ls |grep "^[0-9]"|awk ' $0 >100') ;do awk '/Swap:/{a=a+$2}END{print '"$i"',a/1024"M"}' /proc/$i/smaps 2>/dev/null ; done | sort -k2nr | head -10原创 2020-12-02 14:49:38 · 730 阅读 · 0 评论 -
Liunx挂在镜像并修改YUM源
1 挂在本机yum源mount -o loop /mnt/CentOS-6.9-x86_64-bin-DVD1.iso /media/2 修改yum源cd /etc/yum.repos.d/rm -rf *vi CentOS-Base.repo添加如下内容[base]name=CentOS-$releasever - Base#mirrorlist=http://mirror...原创 2018-11-19 16:06:05 · 243 阅读 · 0 评论 -
Centos7.4 无外网安装ISCSI服务器端
安装scsi-target-utils最近要装Oracle集群,由于我没有外网,网上的大部分方式不适合我,所以我写一下这部分相关操作yum -y install libaio libibverbs librdmacm perl sg3_utils然后去http://rpm.pbone.net/下载需要的包,这里默认需要如下包rpm -ivh perl-Config-General-2.6...原创 2019-03-18 16:45:19 · 1161 阅读 · 0 评论 -
Centos JDBC ConnectReset解决方案
网上有很多这个问题的解决方案,我都试了一下,感觉不管用,后来通过一个细节解决了,下面列出解决方案。I was recently struggling with this exact same problem. I opened a ticket with Oracle and this is what they told me.java.security.SecureRandom is a ...原创 2019-02-19 11:29:41 · 289 阅读 · 0 评论 -
Centos安装Ftp
https://www.cnblogs.com/ismallboy/p/6785270.html转载 2019-04-02 10:18:38 · 94 阅读 · 0 评论 -
Linux性能指令详解
iostat命令详解Linux系统中的iostat是I/O statistics(输入/输出统计)的缩写,iostat工具将对系统的磁盘操作活动进行监视。它的特点是汇报磁盘活动统计情况,同时也会汇报出CPU使用情况。同vmstat一样,iostat也有一个弱点,就是它不能对某个进程进行深入分析,仅对系统的整体情况进行分析。iostat常用命令格式如下:iostat [参数] [时间] [次...原创 2019-07-16 19:26:09 · 208 阅读 · 0 评论 -
top指令显示意义
o: VIRT (Virtual Image) - 进程使用的总虚拟内存 (virtual memory) 大小,包括进程的程序码、资料和共享程序库再加上被置换 (swap out) 的空间。VIRT = SWAP + RES p: SWAP (Swapped size) - 进程被置换的虚拟内存空间大小。 q: RES (Resident size) - 进程非被置换的实体内存大小。RES ...转载 2019-07-16 22:15:52 · 163 阅读 · 0 评论