-
Linux环境下实现管道通信-问题
所属栏目:[Linux] 日期:2021-01-23 热度:138
div class="cnblogs_code" #include pipe_fd[ w_buffer[],r_buffer[ (pipe(pipe_fd) ) ); ((pid2=fork( ))==) ]); sprintf(w_buffer,=], (pid2>) ); close(pipe_fd[]); (read(pipe_fd[],r_buffer,)>(read(pipe_fd[],)> ?[详细]
-
Linux环境下实现哲学家就餐问题
所属栏目:[Linux] 日期:2021-01-23 热度:90
副标题#e# 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:[详细]
-
mount 需要同时设置 noatime 和 nodiratime 吗?
所属栏目:[Linux] 日期:2021-01-23 热度:115
div class="entry" 相信对性能、优化这些关键字有兴趣的朋友都知道在 Linux 下面挂载文件系统的时候设置 noatime 可以显著提高文件系统的性能。默认情况下,Linux ext2/ext3 文件系统在文件被访问、创建、修改等的时候记录下了文件的一些时间戳,比如:文[详细]
-
xfsdump命令使用
所属栏目:[Linux] 日期:2021-01-23 热度:165
div id="article_content" class="article_content" 一:使用xfsdump备份和恢复xfs文件系统 首先了解一下xfsdump的备份级别有以下两种,默认为0(即完全备份) 0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?完全备份 1 ? ? 1.创建xfs文件系统并挂载到/data目录下[详细]
-
在linux(centos)系统安装redis教程
所属栏目:[Linux] 日期:2021-01-22 热度:137
最近在切换服务器操作系统,简单记录一下 一、安装redis 1、检查是否有redis yum 源 yum install redis 2、下载fedora的epel仓库 yum install epel-release 3、安装redis数据库 yum install redis 4、安装完毕后,使用下面的命令启动redis服务 -ef | grep[详细]
-
浅谈Linux文件系统
所属栏目:[Linux] 日期:2021-01-22 热度:178
Linux 与其他类 UNIX 系统一样并不区分文件与目录:目录是记录了其他文件名的文件。使用命令 mkdir 创建目录时,若期望创建的目录的名称与现有的文件名(或目录名)重复,则会创建失败。 Linux 上将文件分成两个部分:用户数据 (user data) 与元数据 (meta[详细]
-
sersync自动化同步部署
所属栏目:[Linux] 日期:2021-01-22 热度:76
副标题#e# 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/{[详细]
-
详解IPTABLES
所属栏目:[Linux] 日期:2021-01-22 热度:88
副标题#e# h1 id="详解iptables"详解IPTABLES Iptables 是Linux 内核集成的 IP 信息包过滤系统。如果Linux 系统连接到因特网或 LAN、服务器或连接 LAN 和因特网的代理服务器, 则该系统有利于在 Linux 系统上更好地控制 IP 信息包过滤和防火墙配置。 防火墙[详细]
-
expect实现自动交互由浅入深
所属栏目:[Linux] 日期:2021-01-22 热度:144
副标题#e# h1 id="expect实现自动交互由浅入深"expect实现自动交互由浅入深 作为运维人员可以通过Shell可以实现简单的控制流功能,如:循环、判断等。但是对于需要交互的场合则必须通过人工来干预,有时候我们可能会需要实现和交互程序如telnet服务器等进行[详细]
-
使用swoole进行消息推送通知,配合vb.net进行客户端开发一样爽[
所属栏目:[Linux] 日期:2021-01-21 热度:76
副标题#e# 在以前的项目中,就曾听说过swoole的大名,想用来进行消息推送,但是当时只是有了初步的了解,并不敢大胆的运用到线上产品。所谓?识不足则多虑,威不足则多怒、所以就是怕,只能跟领导说了运用极光的推送功能,而且还说出了一定的理由,领导自然[详细]
-
How can I exclude directories from grep -R?
所属栏目:[Linux] 日期:2021-01-20 热度:70
‘--exclude-dir=dir’ Exclude directories matching the pattern dir from recursive directory searches. = ) provide: ‘--exclude-dir=dir’ Exclude directories matching the pattern dir from recursive directory searches. So you can do: grep[详细]
-
主机访问虚拟机中linux上的web服务
所属栏目:[Linux] 日期:2021-01-20 热度:117
环境:主机windows xp 虚拟机centos 6.4 [root@localhost /]# iptables -I INPUT -p tcp --dport 80 -j ACCEPT[root@localhost /]# /etc/rc.d/init.d/iptables saveiptables: Saving firewall rules to /etc/sysconfig/iptables:[? OK? ] [root@localhost[详细]
-
CentOS下安装JDK7 转载
所属栏目:[Linux] 日期:2021-01-20 热度:177
转载地址:http://www.cnblogs.com/rilley/archive/2012/02/02/2335395.html 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html 1. 安装JDK1.7.0下载完成后在取得root权限后执行: [root@sea sea][详细]
-
用于软件包管理的21个Linux YUM命令 转载
所属栏目:[Linux] 日期:2021-01-20 热度:126
副标题#e# http://flycars001.iteye.com/blog/1949085 ol class="dp-xml" style="margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 1px !important; margin-left: 55px; padding: 5px 0px; color: #5c5c5c; border: none; backgr[详细]
-
centos nfs配置--转载
所属栏目:[Linux] 日期:2021-01-20 热度:131
副标题#e# h2 class="title"http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-nfs-client-config.html h2 class="title"18.6.?NFS Server Configuration There are three ways to configure an NFS server under Red Hat Enterprise Linux: us[详细]
-
Device eth0 does not seem to be present, delaying initializa
所属栏目:[Linux] 日期:2021-01-20 热度:147
昨天在vm里面克隆了个虚拟机,克隆之后,启动了网卡起不来,已启动就报Device eth0 does not seem to be present,delaying initialization.[FAILED]经过各种google,最终要是找到了答案使用克隆后的虚拟机时发现原来在基本系统中的网卡eth0到了新系统却没[详细]
-
Mount NAS Storage in Linux Overview 转载
所属栏目:[Linux] 日期:2021-01-20 热度:192
h1 class="title"Mount NAS Storage in Linux OverviewMounting your NAS Storage to a device that runs on a Linux-based Operating System can be done using a series of simple commands in the shell or terminal within the OS.? This procedure ou[详细]
-
启动weblogic的错误:Could not obtain an exclusive lock to th
所属栏目:[Linux] 日期:2021-01-20 热度:128
http://hi.baidu.com/kaisep/item/0e4bf6ee5da001d1ea34c986 源地址 启动weblogic时报以下错误: 解决办法: 为避免此错误,应确保没有没有启动其它进程或访问此文件并将它删除。?? 在关机时通常会对此文件进行解锁,但如果上次发生了异常关机(如崩溃),[详细]
-
linux下如何修改weblogic console登陆的用户名和密码
所属栏目:[Linux] 日期:2021-01-20 热度:54
1. 执行安装目录下config.sh ./config.sh 2.选择 ?2|Extend an existing WebLogic configuration 3. 别的一路跳过,到修改security,选择yes,即可修改weblogic console登录的用户名和密码。[详细]
-
《高性能网站构建实战》 目录--转
所属栏目:[Linux] 日期:2021-01-20 热度:55
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 网站架构[详细]
-
install keepalived on RedHat/CentOS to provide IP failover f
所属栏目:[Linux] 日期:2021-01-20 热度:145
副标题#e# 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[详细]
-
转载--CentOS 6.3下部署LVS(NAT)+keepalived实现高性能高可用负
所属栏目:[Linux] 日期:2021-01-20 热度:110
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 /[详细]
-
转载-centos网络配置(手动设置,自动获取)的2种方法
所属栏目:[Linux] 日期:2021-01-20 热度:58
副标题#e# 转载地址: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-20 热度:178
副标题#e# 源地址: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[详细]
-
转载--linux filesystem structures
所属栏目:[Linux] 日期:2021-01-20 热度:70
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 privileg[详细]

浙公网安备 33038102330477号