-
Linux下C语言的调试--转
所属栏目:[Linux] 日期:2021-01-25 热度:84
调试是每个程序员都会面临的问题. 如何提高程序员的调试效率,更好更快地定位程序中的问题从而加快程序开发的进度,是大家共同面对的问题. 可能Windows用户顺口就会说出:用VC呗 :-),它提供了设置断点,单步跟踪等的图形界面,使调试起来直观易用. 但Linux用户可[详细]
-
Install Tomcat 6 on CentOS or RHEL --转载
所属栏目:[Linux] 日期:2021-01-25 热度:51
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 also show how[详细]
-
Handling of asynchronous events---reference
所属栏目:[Linux] 日期:2021-01-24 热度:125
http://www.win.tue.nl/~aeb/linux/lk/lk-12.html 12.?Handling of asynchronous events One wants to be notified of various events,like data that has become available,files that have changed,and signals that have been raised. FreeBSD has the ni[详细]
-
Sed - An Introduction and Tutorial by Bruce Barnett
所属栏目:[Linux] 日期:2021-01-24 热度:133
http://www.grymoire.com/unix/sed.html Quick Links - NEW table border="1" tr Sed Pattern Flags /tr tr td a href="http://www.grymoire.com/unix/Sed.html#uh-6"gt;/g?- Global/td /tr tr td a href="http://www.grymoire.com/unix/Sed.html#uh-10a"gt;[详细]
-
Boost application performance using asynchronous I/O-ref
所属栏目:[Linux] 日期:2021-01-24 热度:62
Linux asynchronous I/O is a relatively recent addition to the Linux kernel. It's a standard feature of the 2.6 kernel,but you can find patches for 2.4. The basic idea behind AIO is to allow a process to initiate a number of I/O operations[详细]
-
Linux定时增量更新文件--转
所属栏目:[Linux] 日期:2021-01-24 热度:93
http://my.oschina.net/immk/blog/193926 动机与需求:现在有两台服务器A和B,由于A的存储随时会挂(某些原因),所以需要B机器上有A的备份,并且能够与A同步更新 一、crontab定时任务 发现了crontab这个东西 简单实践了一下,把使用的过程写到下面: 首先是[详细]
-
Getting over the dangers of rm command in Linux---reference
所属栏目:[Linux] 日期:2021-01-24 热度:114
reference:http://www.coolcoder.in/2014/01/getting-over-dangers-of-rm-command-in.html When we want to delete a directory and everything in it,we normally usually use rm -rf . However,this? is a bad habit to get into. If you make a mistake,[详细]
-
Linux 线程实现机制分析--转
所属栏目:[Linux] 日期:2021-01-24 热度:127
div class="ibm-columns" div class="ibm-col-1-1" 按照教科书上的定义,进程是资源管理的最小单位,线程是程序执行的最小单位。在操作系统设计上,从进程演化出线程,最主要的目的就是更好的支持SMP以及减小(进程/线程)上下文切换开销。 无论按照怎样的分[详细]
-
linux下logrotate配置和理解---转
所属栏目:[Linux] 日期:2021-01-24 热度:95
对于Linux 的系统安全来说,日志文件是极其重要的工具。系统管理员可以使用logrotate 程序用来管理系统中的最新的事件,对于Linux 的系统安全来说,日志文件是极其重要的工具。系统管理员可以使用logrotate 程序用来管理系统中的最新的事件。logrotate 还可[详细]
-
Linux 信号signal处理函数--转
所属栏目:[Linux] 日期:2021-01-24 热度:79
alarm(设置信号传送闹钟) 相关函数 signal,sleep 范例 #include void handler() {printf("hello/n");}main(){int i;signal(SIGALRM,handler);alarm(5);for(i=1;i kill(传送信号给指定的进程) 相关函数 raise,signal 表头文件 #include #include 定义函[详细]
-
Signal Handling--ref
所属栏目:[Linux] 日期:2021-01-24 热度:82
signal is a software interrupt delivered to a process. The operating system uses signals to report exceptional situations to an executing program. Some signals report errors such as references to invalid memory addresses; others report asy[详细]
-
linux定时任务之crontab
所属栏目:[Linux] 日期:2021-01-24 热度:77
1.使用crontab crontab -u //设定某个用户的cron服务? crontab -l //列出某个用户cron服务的详细内容? crontab -r //删除某个用户的cron服务? 2. cron表达式 基本格式?:?*??*??*??*??*??command?分?时?日?月?周?命令?第1列表示分钟1~59?每分钟用*或者?*/1表[详细]
-
expect实现自动交互由浅入深
所属栏目:[Linux] 日期:2021-01-23 热度:109
h1 id="expect实现自动交互由浅入深"expect实现自动交互由浅入深 作为运维人员可以通过Shell可以实现简单的控制流功能,如:循环、判断等。但是对于需要交互的场合则必须通过人工来干预,有时候我们可能会需要实现和交互程序如telnet服务器等进行交互的功能[详细]
-
sersync自动化同步部署
所属栏目:[Linux] 日期:2021-01-23 热度:134
div class="toc" p class="toc-title"目录 div class="toc-list" 部署rsync+sersync服务,实现实时监控目录的变化,并实时同步变化文件。 192.168.1.9:安装rsync server服务。 192.168.1.10:安装rsync,sersync服务。 监控192.168.1.10(/data/{www,bbs}) -[详细]
-
详解IPTABLES
所属栏目:[Linux] 日期:2021-01-23 热度:64
h1 id="详解iptables"详解IPTABLES Iptables 是Linux 内核集成的 IP 信息包过滤系统。如果Linux 系统连接到因特网或 LAN、服务器或连接 LAN 和因特网的代理服务器, 则该系统有利于在 Linux 系统上更好地控制 IP 信息包过滤和防火墙配置。 防火墙在做信息包[详细]
-
批量执行工具PSSH详解
所属栏目:[Linux] 日期:2021-01-23 热度:143
h1 id="批量执行工具pssh详解"批量执行工具PSSH详解 pssh是一个python编写可以在多台服务器上执行命令的工具,同时支持拷贝文件,是同类工具中很出色的,使用必须在各个服务器上配置好密钥认证访问。 yum install pssh -y # 安装setuptools包,如果安装了跳[详细]
-
Linux性能评估工具
所属栏目:[Linux] 日期:2021-01-23 热度:65
div class="toc" p class="toc-title"目录 div class="toc-list" 检测服务器当前的性能,主要检查的项目如下: 负载:uptime 内核信息: dmesg 内存:vmstat、free CPU:top、mpstat、 I/O:iostat 网络:sar 有些命令需要安装sysstat包 $ uptime 22:37:31 u[详细]
-
VMware 安装提示缺少MicrosoftRuntime DLL 问题解决办法
所属栏目:[Linux] 日期:2021-01-23 热度:178
VMware 安装提示缺少MicrosoftRuntime DLL 问题解决办法 ?[详细]
-
linux查看主机端口进程命令
所属栏目:[Linux] 日期:2021-01-23 热度:53
div id="blog_content" class="blog_content" 1、查看主机信息 # more /etc/hosts # Do not remove the following line,or various programs # that require network functionality will fail. 127.0.0.1?????? xyn-redhat????? localhost.localdomain?? loc[详细]
-
ubuntu安装配置jdk tomcat mysql ...
所属栏目:[Linux] 日期:2021-01-23 热度:144
安装之前大家一定要检查好各个版本问题 以免造成不兼容。 ? (一)下载所需安装包: ?jdk-7u76-linux-x64.tar.gz ?apache-tomcat-7.0.63.tar.gz ?MySQL-server-5.1.73-1.glibc23.x86_64.rpm ?MySQL-client-5.1.73-1.glibc23.x86_64.rpm (二).安装jdk: 1.[详细]
-
Linux环境下实现生产者消费者问题
所属栏目:[Linux] 日期:2021-01-23 热度:101
div class="cnblogs_code" include stdio.hspan style="color: #000000;" include semaphore.hspan style="color: #000000;" include stdlib.hspan style="color: #000000;" include pthread.hspan style="color: #000000;" include unistd.h span style="co[详细]
-
Linux环境下实现管道通信-问题
所属栏目:[Linux] 日期:2021-01-23 热度:86
div class="cnblogs_code[详细]
-
Linux环境下实现哲学家就餐问题
所属栏目:[Linux] 日期:2021-01-23 热度:97
div class="cnblogs_code" #include pthread_mutex_t chopstick[ ] ; *eat_think( * phi = *( *)arg; left,right; = = = = = = = = = = /spanspan style="color: #0000ff;"gt;int/spanspan style="color: #000000;"gt; i;/spanspan style="color: #0000ff;"g[详细]
-
mount 需要同时设置 noatime 和 nodiratime 吗?
所属栏目:[Linux] 日期:2021-01-23 热度:161
div class="entry" 相信对性能、优化这些关键字有兴趣的朋友都知道在 Linux 下面挂载文件系统的时候设置 noatime 可以显著提高文件系统的性能。默认情况下,Linux ext2/ext3 文件系统在文件被访问、创建、修改等的时候记录下了文件的一些时间戳,比如:文件[详细]
-
xfsdump命令使用
所属栏目:[Linux] 日期:2021-01-23 热度:145
div id="article_content" class="article_content" 一:使用xfsdump备份和恢复xfs文件系统 首先了解一下xfsdump的备份级别有以下两种,默认为0(即完全备份) 0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?完全备份 1 ? ? 1.创建xfs文件系统并挂载到/data目录下 -[详细]