-
Find command usage in Linux with excellent examples--referen
所属栏目:[Linux] 日期:2021-01-24 热度:71
find searches ?the directory tree rooted at each given file name by evaluating? the ?given expression from left to right,according to the rules of prece dence,until the outcome is known (the left ?hand side is false for? and ?operations,tr[详细]
-
expect实现自动交互由浅入深
所属栏目:[Linux] 日期:2021-01-23 热度:94
h1 id="expect实现自动交互由浅入深"expect实现自动交互由浅入深 作为运维人员可以通过Shell可以实现简单的控制流功能,如:循环、判断等。但是对于需要交互的场合则必须通过人工来干预,有时候我们可能会需要实现和交互程序如telnet服务器等进行交互的功能[详细]
-
sersync自动化同步部署
所属栏目:[Linux] 日期:2021-01-23 热度:121
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 热度:125
h1 id="详解iptables"详解IPTABLES Iptables 是Linux 内核集成的 IP 信息包过滤系统。如果Linux 系统连接到因特网或 LAN、服务器或连接 LAN 和因特网的代理服务器, 则该系统有利于在 Linux 系统上更好地控制 IP 信息包过滤和防火墙配置。 防火墙在做信息包[详细]
-
批量执行工具PSSH详解
所属栏目:[Linux] 日期:2021-01-22 热度:178
h1 id="批量执行工具pssh详解"批量执行工具PSSH详解 pssh是一个python编写可以在多台服务器上执行命令的工具,同时支持拷贝文件,是同类工具中很出色的,使用必须在各个服务器上配置好密钥认证访问。 yum install pssh -y # 安装setuptools包,如果安装了跳[详细]
-
Linux性能评估工具
所属栏目:[Linux] 日期:2021-01-22 热度:60
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-22 热度:86
VMware 安装提示缺少MicrosoftRuntime DLL 问题解决办法 ?[详细]
-
linux查看主机端口进程命令
所属栏目:[Linux] 日期:2021-01-22 热度:192
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-22 热度:63
安装之前大家一定要检查好各个版本问题 以免造成不兼容。 ? (一)下载所需安装包: ?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-22 热度:56
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-22 热度:185
div class="cnblogs_code[详细]
-
Linux环境下实现哲学家就餐问题
所属栏目:[Linux] 日期:2021-01-22 热度:117
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-22 热度:176
div class="entry" 相信对性能、优化这些关键字有兴趣的朋友都知道在 Linux 下面挂载文件系统的时候设置 noatime 可以显著提高文件系统的性能。默认情况下,Linux ext2/ext3 文件系统在文件被访问、创建、修改等的时候记录下了文件的一些时间戳,比如:文件[详细]
-
xfsdump命令使用
所属栏目:[Linux] 日期:2021-01-22 热度:165
div id="article_content" class="article_content" 一:使用xfsdump备份和恢复xfs文件系统 首先了解一下xfsdump的备份级别有以下两种,默认为0(即完全备份) 0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?完全备份 1 ? ? 1.创建xfs文件系统并挂载到/data目录下 -[详细]
-
《高性能网站构建实战》 目录--转
所属栏目:[Linux] 日期:2021-01-22 热度:70
div id="cnblogs_post_body" 《高性能网站构建实战》? 第一篇 架构规划篇? 第1章 网站架构简介 2? 1.1 网站的硬架构 2? 1.1.1 机房的选择 2? 1.1.2 带宽的大小 2? 1.1.3 服务器的划分 3? 1.2 网站的软架构 3? 1.2.1 框架的选择 3? 1.2.2 逻辑的分层 4? 1.3[详细]
-
Tracert 转
所属栏目:[Linux] 日期:2021-01-21 热度:178
div class="desc" div class="desc_tit"路由跟踪在线Tracert Tracert(跟踪路由)是路由跟踪实用程序,用于确定 IP 数据报访问目标所采取的路径。Tracert 命令用 IP 生存时间 (TTL) 字段和 ICMP 错误消息来确定从一个主机到网络上其他主机的路由。 通过向目[详细]
-
install keepalived on RedHat/CentOS to provide IP failover f
所属栏目:[Linux] 日期:2021-01-21 热度:129
table id="toc" class="toc" tr td div id="toctitle" Contents Keepalived provides a strong and robust health checking for LVS clusters. It implements a framework of health checking on multiple layers for server failover,and VRRPv2 stack to h[详细]
-
转载--CentOS 6.3下部署LVS(NAT)+keepalived实现高性能高可用负
所属栏目:[Linux] 日期:2021-01-21 热度:115
div id="cnblogs_post_body" 源地址:http://www.cnblogs.com/mchina/archive/2012/08/27/2644391.html 一、简介 VS/NAT原理图: 二、 系统环境 三、安装 ~]# wget http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.26.tar.gz ~]# ln -s /u[详细]
-
转载-centos网络配置(手动设置,自动获取)的2种方法
所属栏目:[Linux] 日期:2021-01-21 热度:133
转载地址:http://blog.51yip.com/linux/1120.html 重新启动网络配置 # /etc/init.d/network restart 不知道为什么最近一段时间网络特别的慢,还老是断,断的时候,局域网都连不上,当我手动设置一下ip后就可以了,搞得我很无语。下面是2种设置网络连接的方[详细]
-
转载--How to Install VMware Tools on CentOS 6.3
所属栏目:[Linux] 日期:2021-01-21 热度:88
源地址:http://www.ehowstuff.com/how-to-install-vmware-tools-on-centos-6-3/ VMware Tools is a group of utilities that enhances the overall performance of the virtual machine’s guest operating system (OS) and improves management of the vir[详细]
-
转载--linux filesystem structures
所属栏目:[Linux] 日期:2021-01-21 热度:188
In this article,let us review the Linux filesystem structures and understand the meaning of individual high-level directories. 1. / – Root Every single file and directory starts from the root directory. Only root user has write privilege[详细]
-
[Linux] linux下安装配置 zookeeper/redis/solr/tomcat/IK分词器
所属栏目:[Linux] 日期:2021-01-21 热度:51
今天 不知自己装的centos 出现了什么问题,一直卡在 启动界面,找了半天没找见原因(最后时刻还是发现原因,只因自己手欠一怒之下将centos删除了,而且选择的是在本地磁盘也删除. ..让我哭一会..)..于是便重新安装,可是问题来了,之前安装及配置好的zookeeper/redi[详细]
-
[Linux]Linux下安装和配置solr/tomcat/IK分词器 详细实例一.
所属栏目:[Linux] 日期:2021-01-21 热度:70
注: 本文属于原创文章,如若转载,请注明出处,谢谢. 关于设置IK分词器的文章?IK分词器: ? 1,解压tar文件 2,查看solr目录结构 3,复制solr/solr-4.10.3/example/bin/ext 的jar包到apache-tomcat-7.0.47/lib下 4,复制solr.war 首先找到war包位置:? 5,配置web.xml[详细]
-
[Linux]Linux下安装和配置solr/tomcat/IK分词器 详细实例二.
所属栏目:[Linux] 日期:2021-01-21 热度:189
为了更好的排版,所以将IK分词器的安装重启了一篇博文,?大家可以接上solr的安装一同查看. 8,打开浏览器查看solr可视化界面 9,使用IK分词器 复制IK分词器的jar包到 /tomcat/webapp/solr/WEB-INF/lib(这里是solr/WEB-INF下) 10,配置IK分词器 配置solr家中的sche[详细]
-
[Linux]Linux下redis的安装及配置.
所属栏目:[Linux] 日期:2021-01-21 热度:143
在上一篇?我们已经将redis所需tar包拷贝到了linux下的root 根目录下,接着我们只需要解压就可以了.? 先将Redis的tar包拷贝到Linux下的根目录 解压后的目录结构: 编译: 使用Make命令安装: 安装好之后的目录:? 6379 下的目录结构:(这个rdb文件时: redis databas[详细]