-
Linux ip forward
所属栏目:[Linux] 日期:2021-01-25 热度:179
.. $ systemctl restart networking ..auto ens39 iface ens39 inet static address span style="color: #800080"192.168.span style="color: #800080"2.254span style="color: #000000" netmask span style="color: #800080"255.255.span style="color: #[详细]
-
Linux mount 命令进阶
所属栏目:[Linux] 日期:2021-01-25 热度:200
可以将任何一个挂载点、普通目录或者文件挂载到其它的地方。 $ -p bind/bind1/ -p bind/bind2/ --bind ./bind/bind1 ./bind/bind2 $ /var/log /opt/ /var/ --bind /opt/var_log /var/log $ -o bind,ro ./bind/bind1 ./bind/ ./bind/bind2/sub1/abc $ aaa >[详细]
-
Linux mount 命令
所属栏目:[Linux] 日期:2021-01-25 热度:129
device:指定要挂载的设备,比如磁盘、光驱等。dir:指定把文件系统挂载到哪个目录。type:指定挂载的文件系统类型,一般不用指定,mount 命令能够自行判断。options:指定挂载参数,比如 ro 表示以只读方式挂载文件系统。 $ -h $ /proc/filesystems fs_sp[详细]
-
linux ss 命令
所属栏目:[Linux] 日期:2021-01-25 热度:66
ss 是 Socket Statistics 的缩写。ss 命令可以用来获取 socket 统计信息,它显示的内容和 netstat 类似。但 ss 的优势在于它能够显示更多更详细的有关 TCP 和连接状态的信息,而且比 netstat 更快。当服务器的 socket 连接数量变得非常大时,无论是使用 ne[详细]
-
linux diff(differential) 命令
所属栏目:[Linux] 日期:2021-01-25 热度:92
副标题#e# temp.diff table class="mtable" style="margin-bottom: 2em; border: 0px solid silver; background-color: #e5e5e5; width: 858px; margin-left: auto; margin-right: auto; color: #454545; font-family: Verdana,sans-serif; font-size: 16px[详细]
-
Linux 的启动流程--转
所属栏目:[Linux] 日期:2021-01-25 热度:127
副标题#e# 半年前,我写了,探讨BIOS和主引导记录的作用。那篇文章不涉及操作系统,只与主板的板载程序有关。今天,我想接着往下写,探讨操作系统接管硬件以后发生的事情,也就是操作系统的启动流程。 这个部分比较有意思。因为在BIOS阶段,计算机的行为基[详细]
-
BEA-141150 - An error occurred while preparing application c
所属栏目:[Linux] 日期:2021-01-25 热度:187
网上查询的 Cause:This is either because the resource it self is not available on the administration server or due a misconfiguration of security such that the managed server is not properly authorized to download application resources.[详细]
-
Linux原始套接字实现分析---转
所属栏目:[Linux] 日期:2021-01-25 热度:169
副标题#e# 本文从IPV4协议栈原始套接字的分类入手,详细介绍了链路层和网络层原始套接字的特点及其内核实现细节。并结合原始套接字的实际应用,说明各类型原始套接字的适应范围,以及在实际使用时需要注意的问题。 一、原始套接字概述 链路层原始套接字可以[详细]
-
Linux下C语言的调试--转
所属栏目:[Linux] 日期:2021-01-25 热度:59
调试是每个程序员都会面临的问题. 如何提高程序员的调试效率,更好更快地定位程序中的问题从而加快程序开发的进度,是大家共同面对的问题. 可能Windows用户顺口就会说出:用VC呗 :-),它提供了设置断点,单步跟踪等的图形界面,使调试起来直观易用. 但Linux用户[详细]
-
Install Tomcat 6 on CentOS or RHEL --转载
所属栏目:[Linux] 日期:2021-01-25 热度:128
副标题#e# p class="entryContent"? p class="entryContent"source:http://www.davidghedini.com/pg/entry/install_tomcat_6_on_centos p class="entryContent"This post will cover installation and configuration of Tomcat 6 on CentOS 5. We will als[详细]
-
linux下c的网络编程---转载
所属栏目:[Linux] 日期:2021-01-25 热度:75
副标题#e# 1.tcp协议 2. udp协议 #p#副标题#e# 3.并发编程 #p#副标题#e#[详细]
-
IP Failover Setup using Keepalived on CentOS/Redhat 6
所属栏目:[Linux] 日期:2021-01-25 热度:193
source url: Keepalived?is used for IP failover between two servers. It facilities for?load balancing?and high-availability to Linux based infrastructures. It works on VRRP ( Virtual Router Redundancy Protocol ) protocol. We have running[详细]
-
Linux的一些命令
所属栏目:[Linux] 日期:2021-01-25 热度:136
程序 # rpm -qa??????????????? # 查看所有安装的软件包 系统 # uname -a?????????????? # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue?? # 查看操作系统版本 # cat /proc/cpuinfo????? # 查看CPU信息 # hostname?????????????? # 查看计算机名 # l[详细]
-
火狐浏览器修改userAgent
所属栏目:[Linux] 日期:2021-01-25 热度:176
火狐浏览器修改userAgent的办法: 在火狐浏览器地址栏输入“about:config”,按下回车进入设置菜单。找到“general.useragent.override”,如果没有这一项,则点右键“新建”->“字符串”,输入这个字符串。将其值设为自己想要的UserAgent[详细]
-
Common Linux log files name and usage--reference
所属栏目:[Linux] 日期:2021-01-24 热度:53
副标题#e# div id="post-body-7256318887016413630" class="post-single-body post-body" div dir="ltr"If you spend lot of time in Linux environment,it is essential that you know where the log files are located,and what is contained in each and[详细]
-
linux vi 撤销重做于前进后退--转
所属栏目:[Linux] 日期:2021-01-24 热度:126
在vi中按u可以撤销一次操作 u?? 撤销上一步的操作Ctrl+r 恢复上一步被撤销的操作 注意:如果你输入“u”两次,你的文本恢复原样,那应该是你的Vim被配置在Vi兼容模式了。重做如果你撤销得太多,你可以输入CTRL-R(redo)回退前一个命令。换句话说,它撤销[详细]
-
Linux内核--网络栈实现分析(二)--数据包的传递过程--转
所属栏目:[Linux] 日期:2021-01-24 热度:82
副标题#e# 转载地址 作者:闫明 本文分析基于Linux Kernel 1.2.13 注:标题中的”(上)“,”(下)“表示分析过程基于数据包的传递方向:”(上)“表示分析是从底层向上分析、”(下)“表示分析是从上向下分析。 ?上篇: 上一篇博文中我们从宏观上分析[详细]
-
linux乱码问题
所属栏目:[Linux] 日期:2021-01-24 热度:115
命令输入: export LANG=zh_CN.GBK grep?匹配时高亮 先执行:export GREP_OPTIONS== 这条命令添加到 ~/.bash_profile 的最后,重启,就不用每次都执行该命令。 nohub ? /dev/null?2>1? . 单一个 符号,且放在完整指令列的最后端,即表示将该指令列放入后台[详细]
-
Linux内核--网络栈实现分析(一)--网络栈初始化--转
所属栏目:[Linux] 日期:2021-01-24 热度:83
副标题#e# 转载地址? 作者:闫明 ?本文分析基于内核Linux Kernel 1.2.13 以后的系列博文将深入分析Linux内核的网络栈实现原理,这里看到曹桂平博士的分析后,也决定选择Linux内核1.2.13版本进行分析。 原因如下: 1.功能和网络栈层次已经非常清晰 2.该版[详细]
-
Linux新手入门:通过chmod改变文件权限--转
所属栏目:[Linux] 日期:2021-01-23 热度:146
前面介绍过在,在中我们介绍了Linux文件的三种身份和四种权限,三种身份分别为: u:文件的拥有者 g:文件所属的群组 o:其他用户 对于每个身份,又有四种权限,分别为: r:读取文件的权限(read) w:写入文件的权限(write) x:执行的权限(execute)[详细]
-
rsync+inotify实现实时同步案例--转
所属栏目:[Linux] 日期:2021-01-23 热度:94
副标题#e# 转自:http://chocolee.blog.51cto.com/8158455/1400596 随着应用系统规模的不断扩大,对数据的安全性和可靠性也提出的更好的要求,rsync在高端业务系统中也逐渐暴露出了很多不足,首先,rsync同步数据时,需要扫描所有文件后进行比对,进行差量[详细]
-
Fast portable non-blocking network programming with Libevent
所属栏目:[Linux] 日期:2021-01-23 热度:70
h2 id="_learning_libevent"Learning Libevent div class="sectionbody" div class="ulist" These documents are Copyright (c) 2009-2010 by Nick Mathewson,and are made available under the Creative Commons Attribution-Noncommercial-Share Alike l[详细]
-
Linux下*.tar.bz2等文件如何解压--转
所属栏目:[Linux] 日期:2021-01-23 热度:58
如果tar不支持j这个参数就先用?bzip2 -d xxx.tar.bz2?把它解压成.tar文件,然后再用?tar xvf xxx.tar?拆包。压缩解压?linux下怎么解后缀名是gzip的文件??1.以.a为扩展名的文件:?#tar xv file.a?2.以.z为扩展名的文件:?#uncompress file.Z?3.以.gz为扩展名[详细]
-
How to allow/block PING on Linux server – IPTables rules fo
所属栏目:[Linux] 日期:2021-01-23 热度:168
div class="post-content-left" div class="random-posts" ?-?APRIL,9TH 2014 The ‘PING’,it’s a command-line tool to check a host is reachable or not. We can manage it by the help of ‘iptables’. The ‘ping’ is using ICMP to communicate.[详细]
-
expect实现自动交互由浅入深
所属栏目:[Linux] 日期:2021-01-22 热度:145
副标题#e# h1 id="expect实现自动交互由浅入深"expect实现自动交互由浅入深 作为运维人员可以通过Shell可以实现简单的控制流功能,如:循环、判断等。但是对于需要交互的场合则必须通过人工来干预,有时候我们可能会需要实现和交互程序如telnet服务器等进行[详细]