-
IP Failover Setup using Keepalived on CentOS/Redhat 6
所属栏目:[Linux] 日期:2021-01-25 热度:80
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 热度:157
程序 # rpm -qa??????????????? # 查看所有安装的软件包 系统 # uname -a?????????????? # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue?? # 查看操作系统版本 # cat /proc/cpuinfo????? # 查看CPU信息 # hostname?????????????? # 查看计算机名 # l[详细]
-
火狐浏览器修改userAgent
所属栏目:[Linux] 日期:2021-01-25 热度:84
火狐浏览器修改userAgent的办法: 在火狐浏览器地址栏输入“about:config”,按下回车进入设置菜单。找到“general.useragent.override”,如果没有这一项,则点右键“新建”->“字符串”,输入这个字符串。将其值设为自己想要的UserAgent[详细]
-
Install Redis on CentOS 6.4--转
所属栏目:[Linux] 日期:2021-01-25 热度:174
h4 class="post_title"a href="http://thoughts.z-dev.org/2013/05/27/install-redis-on-centos-6-4/"gt;Install Redis on CentOS 6.4 source:http://thoughts.z-dev.org/2013/05/27/install-redis-on-centos-6-4/ We’re provisioning production machin[详细]
-
Linux df du 命令
所属栏目:[Linux] 日期:2021-01-25 热度:60
查看系统的分区使用情况,并显示文件系统的类型: $ -hT 查看某个目录所在分区的磁盘使用情况: $ -h nodedemo/ 输出文件系统的 inodes 信息: $ -ih $ -hs $ -hs nodedemo/ -hs nodedemo/Dockerfile $ -hs . $ $[详细]
-
Linux ip forward
所属栏目:[Linux] 日期:2021-01-25 热度:164
.. $ 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 热度:111
可以将任何一个挂载点、普通目录或者文件挂载到其它的地方。 $ -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 热度:72
device:指定要挂载的设备,比如磁盘、光驱等。dir:指定把文件系统挂载到哪个目录。type:指定挂载的文件系统类型,一般不用指定,mount 命令能够自行判断。options:指定挂载参数,比如 ro 表示以只读方式挂载文件系统。 $ -h $ /proc/filesystems fs_sp[详细]
-
linux ss 命令
所属栏目:[Linux] 日期:2021-01-25 热度:181
ss 是 Socket Statistics 的缩写。ss 命令可以用来获取 socket 统计信息,它显示的内容和 netstat 类似。但 ss 的优势在于它能够显示更多更详细的有关 TCP 和连接状态的信息,而且比 netstat 更快。当服务器的 socket 连接数量变得非常大时,无论是使用 ne[详细]
-
Linux 内核空间与用户空间
所属栏目:[Linux] 日期:2021-01-25 热度:54
系统调用、软中断和硬件中断。这三种方式每一种都涉及到大量的操作系统知识,所以这里不做展开。 内核空间 -> 用户空间。如下图所示(此图来自互联网):[详细]
-
linux free 命令
所属栏目:[Linux] 日期:2021-01-25 热度:121
$ -h -s Mem 行(第二行)是内存的使用情况。Swap 行(第三行)是交换空间的使用情况。total 列显示系统总的可用物理内存和交换空间大[详细]
-
linux dig 命令
所属栏目:[Linux] 日期:2021-01-25 热度:104
$ dig baidu.com /tr tr tdspan style="font-family: Microsoft YaHei; font-size: 15px"A/td tdspan style="font-family: Microsoft YaHei; font-size: 15px"地址记录,用来指定域名的 IPv4 地址,如果需要将域名指向一个 IP 地址,就需要添加 A 记录。/t[详细]
-
Ubuntu 中登录相关的日志
所属栏目:[Linux] 日期:2021-01-25 热度:104
$ nick@myserver $ vim /var/log/auth.log $ -f /var/log/btmp $ $ -f /var/log/wtmp. $ reboot $[详细]
-
linux sed 命令
所属栏目:[Linux] 日期:2021-01-25 热度:123
aabbcc Hello world! Hello Jack!Hello China!Hello Nick! $ test.txt # 删除第二行到最后一行 选项 -i $ -i '1d' test.txt $ test.txt # 在第一行下面新增一行,内容为 test.txt # 在最后一行下面新增一行,内容为 , test.txt # 一次增加多行需要使用换行[详细]
-
linux kill 命令
所属栏目:[Linux] 日期:2021-01-25 热度:135
[options] span style="color: #000000" […] : 把信号发送给列出的所有进程。 options :- span style="color: #000000" : 指定发送给进程的信号,指定信号的名称或号码都可以。 /span-l : 列出所有信号的名称和号码。/pre $ -l /tr tr tdspan style="font[详细]
-
TeamCity : 安装 Agent
所属栏目:[Linux] 日期:2021-01-25 热度:171
副标题#e# $ $ $ buildAgent.dist.properties buildAgent.properties name=tcagent1 $ cd /var/local/ -R tcuser:tcuser buildagent/ $ #p#副标题#e# #p#副标题#e# #p#副标题#e# #!/bin/=#p#副标题#e# span style="color: #0000ff"case span style="color:[详细]
-
TeamCity : 安装 Server
所属栏目:[Linux] 日期:2021-01-25 热度:103
副标题#e# $ -xf TeamCity-...gz -C ~/ $ ./teamcity-server. start #p#副标题#e# #p#副标题#e# #p#副标题#e# #p#副标题#e# #p#副标题#e# #!/bin//etc/init.d/teamcity - startup script =/usr/lib/jdk1.=${JAVA_HOME}/=.:${JAVA_HOME}/lib:${JRE_HOME}/=${[详细]
-
Ubuntu14.04安装postgresql9.4
所属栏目:[Linux] 日期:2021-01-25 热度:100
安装前的检查 首先查看是否已经安装了旧版本: dpkg -l | postgresql 如果已经安装了某个版本的postgresql,请先卸载。 安装postgresql 添加postgresql源: /etc/apt/sources.list.d/ vim /etc/apt/sources.list.d/pgdb.list 把下面这行数据添加到pgdb.lis[详细]
-
linux 定时任务
所属栏目:[Linux] 日期:2021-01-25 热度:144
p style="margin: 0in; font-size: 11.0pt;" lang="zh-CN"span style="font-family: 'Microsoft YaHei'; font-size: 15px;"习惯了使用span style="font-family: Calibri;" windows span style="font-family: 'Microsoft YaHei';"的计划任务,span style="f[详细]
-
Linux新手入门:通过chmod改变文件权限--转
所属栏目:[Linux] 日期:2021-01-24 热度:176
前面介绍过在,在中我们介绍了Linux文件的三种身份和四种权限,三种身份分别为: u:文件的拥有者 g:文件所属的群组 o:其他用户 对于每个身份,又有四种权限,分别为: r:读取文件的权限(read) w:写入文件的权限(write) x:执行的权限(execute)[详细]
-
rsync+inotify实现实时同步案例--转
所属栏目:[Linux] 日期:2021-01-24 热度:139
副标题#e# 转自:http://chocolee.blog.51cto.com/8158455/1400596 随着应用系统规模的不断扩大,对数据的安全性和可靠性也提出的更好的要求,rsync在高端业务系统中也逐渐暴露出了很多不足,首先,rsync同步数据时,需要扫描所有文件后进行比对,进行差量[详细]
-
Fast portable non-blocking network programming with Libevent
所属栏目:[Linux] 日期:2021-01-24 热度:179
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-24 热度:90
如果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-24 热度:164
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.[详细]
-
Common Linux log files name and usage--reference
所属栏目:[Linux] 日期:2021-01-23 热度:190
副标题#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[详细]