摘要:
在配置 nginx 反向代理之间我们得先准备两台测试服务器,Web1 与 Web2。 1.安装 httpd 136 在配置 nginx 反向代理之间我们得先准备两台测试服务器,Web1 与 Web2。 1.安装 httpd 136 1 [root@web1 ~]# yum install -y ht 阅读全文
posted @ 2019-08-09 17:25
樊伟胜
阅读(338)
评论(0)
推荐(0)
摘要:
linux vi 操作提示 Found a swap file by the name "/usr/local/nginx/conf/.nginx.conf.swp" 解决方法: [root@centos1 ~]# ls -a /usr/local/nginx/conf/ [root@centos1 阅读全文
posted @ 2019-08-09 17:23
樊伟胜
阅读(208)
评论(0)
推荐(0)
摘要:
#添加另一个域名,在浏览器中输入 etiantian.org,总是调到 www.etiantian.org server { listen 80; server_name www.etiantian.org etiantian.org; root html/www; index index.html 阅读全文
posted @ 2019-08-09 17:22
樊伟胜
阅读(1982)
评论(0)
推荐(0)
摘要:
可以在浏览器中查看并发数量 [root@Liangenyu conf]# vim nginx.conf server { listen 80; server_name status.etiantian.org; stub_status on; access_log off; } #注意要在 host 阅读全文
posted @ 2019-08-09 17:18
樊伟胜
阅读(143)
评论(0)
推荐(0)
摘要:
Httpd.conf nginx.conf my-heavy-innode-4G.cnf php.ini 用中文注释 # user:指定 Nginx Worker 进程运行用户和用户组,默认 nobody 账号 user nginx; group nginx; #worker_processes:指 阅读全文
posted @ 2019-08-09 17:16
樊伟胜
阅读(202)
评论(0)
推荐(0)
摘要:
#检查语法 /application/nginx/sbin/nginx –t #平滑重启 /application/nginx/sbin/nginx –s reload #不间断服务重启,将 pid 行程重跑 (restart) Kill –HUP `cat /opt/nginx/logs/ngin 阅读全文
posted @ 2019-08-09 17:15
樊伟胜
阅读(228)
评论(0)
推荐(0)
摘要:
原已经安装好的 nginx,现在需要添加一个未被编译安装的模块: nginx -V 可以查看原来编译时都带了哪些参数 /usr/local/nginx/sbin/nginx -V 原来的参数: --prefix=/app/nginx 添加的参数: 129 原已经安装好的 nginx,现在需要添加一个 阅读全文
posted @ 2019-08-09 17:12
樊伟胜
阅读(666)
评论(0)
推荐(0)
摘要:
Nginx 配置文件主要分为 4 部分: Main 全局设置:影响其他所有设置 Server 主机设置:配置指定的主机和端口 Upstream 负载均衡服务器设置 :设置一系列的后置服务器 Location URL 匹配特定位置的设置 :匹配网页位置 阅读全文
posted @ 2019-08-09 17:11
樊伟胜
阅读(123)
评论(0)
推荐(0)
摘要:
include:实现对配置文件所包含的文件设定 default_type:默认类型二进制流,当文件类型未定义使用这种方式,用浏览器访问 PHP 文件会出现 下载窗口 log_format:指定日志输出格式 client_header_buffer_size:指定客户端请求 headerbuffer 阅读全文
posted @ 2019-08-09 17:10
樊伟胜
阅读(108)
评论(0)
推荐(0)
摘要:
TCMalloc 全称为 Thread-Caching Malloc,是谷歌的开源工具 google-perftools 的成员,它可以 在内存分配效率和速度上高很多,可以很大程度提高服务器在高并发情况下的性能。从而降低系统 的负载。 1. 安装 libunwind 库,libunwind-0.99 阅读全文
posted @ 2019-08-09 17:09
樊伟胜
阅读(241)
评论(0)
推荐(0)
摘要:
1.减小 nginx 编译后的文件大小 在编译 nginx 时,默认以 debug 模式进行,在 debug 模式下会插入很多跟踪和 assert 之类的信息。 在 nginx 源码文件解压后,找到源码目录下的 auto/cc/gcc 文件,在其中找到如下行: #debug CFLAGS=”$CFL 阅读全文
posted @ 2019-08-09 17:00
樊伟胜
阅读(288)
评论(0)
推荐(0)
摘要:
确保安装了 gcc,openssl-devel,pcre-devel,zilb-devel 确保安装了 gcc,openssl-devel,pcre-devel,zilb-devel 下载官网:http://nginx.org/ [root@localhost tools]# wget http:/ 阅读全文
posted @ 2019-08-09 16:38
樊伟胜
阅读(137)
评论(0)
推荐(0)
摘要:
Nginx 和 Apache 一样是 http 服务器软件。它们的区别是 Apache 的处理速度慢,占用内存资源, nginx 恰恰相反。在功能上 Apache 的所有模块都支持动和静态编译,而 nginx 模块全是静态编译 的! Apache 对 fastcgi 的支持不好,而 nginx 对 阅读全文
posted @ 2019-08-09 16:37
樊伟胜
阅读(208)
评论(0)
推荐(0)
摘要:
在 Master 服务器上建立用于 Slave 服务器复制数据的帐户 [root@master ~]# mysql mysql> grant replication slave,replication client on *.* to 'allentuns'@'192.168.2.200' iden 阅读全文
posted @ 2019-08-09 16:36
樊伟胜
阅读(270)
评论(0)
推荐(0)
摘要:
[root@localhost ~]# hostname master.allentuns ###SLAVE 执行 [root@localhost ~]# sed -i 's@\(HOSTNAME=\).*@\1slave.allentuns.com@g' /etc/sysconfi g/netwo 阅读全文
posted @ 2019-08-09 16:32
樊伟胜
阅读(160)
评论(0)
推荐(0)
摘要:
MySql 复制 mysql 复制:将某一台主机上的 Mysql 数据复制到其它主机(slaves)上,并重新执行一遍从而实现 当前主机上的 mysql 数据与(master)主机上数据保持一致的过程我们可以称为复制。 复制过程中一个服务器充当主服务器,而一个或多个其它服务器充当从服务器。主服务器将 阅读全文
posted @ 2019-08-09 16:30
樊伟胜
阅读(214)
评论(0)
推荐(0)
摘要:
mysqladmin [oprions] command 选项 说明 create db_name 创建一个新的数据库表 debug 将 debug 信息写入错误信息日志中 drop db_name 删除指定数据库 flush-hosts 刷新缓存中所有信息 flush-logs 刷新所有日志信息 阅读全文
posted @ 2019-08-09 16:29
樊伟胜
阅读(389)
评论(0)
推荐(0)
摘要:
#更改口令前,确保 mysql 服务已经正常启动 mysqladmin –u root passwd 新口令 #登陆 mysql ./mysql –u root –p Enter password:新口令 阅读全文
posted @ 2019-08-09 16:28
樊伟胜
阅读(314)
评论(0)
推荐(0)
摘要:
mysql 帮助说明 1[oldboy_c64 ~]# mysql --help|grep dummy 2 -U, --i-am-a-dummy Synonym for option --safe-updates, -U. 3i-am-a-dummy FALSE 在 mysql 命令加上选项-U 后 阅读全文
posted @ 2019-08-09 16:28
樊伟胜
阅读(212)
评论(0)
推荐(0)
摘要:
建议使用 mysqld_safe 命令启动,因为该命令添加了安全特性,当服务器发生错误时自动重启并且 把运行信息记录错误发送到日志文件!命令格式如下: mysqld_safe options 命令的常用选项说明如下: --datadir=path 数据文件的目录位置 --help 显示命令的帮助信息 阅读全文
posted @ 2019-08-09 16:27
樊伟胜
阅读(14377)
评论(0)
推荐(2)
摘要:
#创建数据目录并且初始化 /bin/mysql_install_db –user=mysql 阅读全文
posted @ 2019-08-09 16:26
樊伟胜
阅读(6607)
评论(0)
推荐(0)
摘要:
以 root 身份登录 Linux 系统,创建 mysql 组和用户 [root@Nagios-Server ~]# groupadd mysql [root@Nagios-Server ~]# useradd mysql -g mysql -M -s /sbin/nologin [root@Nag 阅读全文
posted @ 2019-08-09 16:22
樊伟胜
阅读(638)
评论(0)
推荐(0)
摘要:
多数情况下数据库和 web 服务器是分离的,如何安装 MySQL? 1.到 Make install 结束即可 2.二进制:解压即可 #准备二进制软件: mysql-5.5.32-linux2.6-x86_64.tar.gz #安装开始 #创建 mysql 用户 [root@Apache tools 阅读全文
posted @ 2019-08-09 16:19
樊伟胜
阅读(159)
评论(0)
推荐(0)
摘要:
1.获得访问前 10 位的 ip 地址 [root@apache ~]# cat access_log |awk '{print $1}'|sort|uniq -c|sort -nr|head -10 2.访问次数最多的文件或页面,取前 20 cat access.log|awk ‘{print $ 阅读全文
posted @ 2019-08-09 16:17
樊伟胜
阅读(1245)
评论(1)
推荐(0)
摘要:
基本认证(Basic) 摘要认证(Digest) 更安全 创建一个名为 users 的认证口令: htpasswd -c /usr/local/apache2/conf/users sam 防止网站图片盗链 #假设本网站为 www.myWeb.com ,可编辑 http.conf 文件,加入以下内容 阅读全文
posted @ 2019-08-09 16:16
樊伟胜
阅读(168)
评论(0)
推荐(0)
摘要:
方法一: ※首先修改源文件,再进行 make && make install 编译安装 编辑源文件/usr/local/apache2/include/ap_release.h 文件 [root@Nagios-Server include]# vimap_release.h #define AP_S 阅读全文
posted @ 2019-08-09 16:15
樊伟胜
阅读(566)
评论(0)
推荐(0)
摘要:
用于设置哪些客户端可以访问 Apache,格式如下: Allow from [All /全域名/部分域名/IP 地址/网络地址/CIDR 地址] All:表示全部客户端 全域名:表示域名对应的客户端,如 www.domain.com 部分域名:表示域名内所有客户端,如 domain.com IP 地 阅读全文
posted @ 2019-08-09 16:15
樊伟胜
阅读(717)
评论(0)
推荐(0)
摘要:
安装日志轮询工具 cronolog [root@Nagios-Server tools]# wgethttp://cronolog.org/download/cronolog-1.6.2.tar.gz 编译安装……………….. [root@Nagios-Servercronolog-1.6.2]# 阅读全文
posted @ 2019-08-09 16:14
樊伟胜
阅读(214)
评论(0)
推荐(0)
摘要:
[root@Nagios-Server extra]# vimhttpd-vhosts.conf <VirtualHost *:80> ServerAdmin 111111 [root@Nagios-Server extra]# vimhttpd-vhosts.conf <VirtualHost * 阅读全文
posted @ 2019-08-09 16:13
樊伟胜
阅读(504)
评论(0)
推荐(0)
摘要:
配置临时生效 IP: [root@Nagios-Server extra]# ifconfigeth0:0 192.168.1.126/24 up [root@Nagios-Server extra]# vimhttpd-vhosts.conf #注释端口 #NameVirtualHost *:80 阅读全文
posted @ 2019-08-09 16:09
樊伟胜
阅读(673)
评论(0)
推荐(0)
摘要:
基于端口常用于内部网站,不对外开发的网站 [root@Nagios-Server extra]# vim ../httpd.conf Listen 80 Listen 8000 Listen 9000 [root@Nagios-Server extra]# vimhttpd-vhosts.conf 阅读全文
posted @ 2019-08-09 16:08
樊伟胜
阅读(263)
评论(0)
推荐(0)
摘要:
基于域名,一般是对外网站 www.etiantian.org /var/www/html/www blog.etiantian.org /var/www/html/blog bbs.tiantian.org /var/www/html/bbs mkdir /var/www/html/{www,blo 阅读全文
posted @ 2019-08-09 16:07
樊伟胜
阅读(414)
评论(0)
推荐(0)
摘要:
错误信息 1: configure: error: APR not found 解决方法:yum install apr* -y 错误信息 2:httpd: apr_sockaddr_info_get() failed for shiwei httpd: Could not reliably det 阅读全文
posted @ 2019-08-09 16:02
樊伟胜
阅读(547)
评论(0)
推荐(0)
摘要:
[root@Apache bin]# tree ├── ab #Apache 性能测试工具 ├── apachectl #Apache 启动命令,它是一个脚本 ├── apr-1-config ├── apu-1-config ├── apxs #Apache 服务器编译和安装扩展模块的工具,在进行 阅读全文
posted @ 2019-08-09 16:01
樊伟胜
阅读(818)
评论(0)
推荐(0)
摘要:
#prefork 多路处理模块 <IfModule mpm_prefork_module> StartServers 5 #设置服务器启动时建立的子进程数量,一般不调 MinSpareServers 5 #设置空闲子进程的最小数量,不要调太大 MaxSpareServers 10 #设置空闲子进程的 阅读全文
posted @ 2019-08-09 16:00
樊伟胜
阅读(674)
评论(0)
推荐(0)
摘要:
##Apache 默认设置文件 Timeout 300 #设置服务器在断定请求失败前等待的秒数。默认值 300 KeepAlive Off #设置是否启用 HTTP 持久链接,On 代表打开,Off 代表关闭。 如果用于同一页面包含大量静态文件的应用,设置为 On,以提高性能; 如果用于主要为动态页 阅读全文
posted @ 2019-08-09 16:00
樊伟胜
阅读(867)
评论(0)
推荐(0)
摘要:
[root@taokey ~]# grep -v ";" /application/php/lib/php.ini [PHP] engine = On ——→ 是否启用 PHP 解析引擎 short_open_tag = Off ——→ 是否使用简介标志 asp_tags = Off ——→ 不允许 阅读全文
posted @ 2019-08-09 15:59
樊伟胜
阅读(1399)
评论(0)
推荐(0)
摘要:
apachectl(Apache control interface) 参 数: apachectl(Apache control interface) 参 数: fullstatus 显示服务器完整的状态信息。 graceful 重新启动 Apache 服务器,但不会中断原有的连接。用于修改了配置 阅读全文
posted @ 2019-08-09 15:57
樊伟胜
阅读(963)
评论(0)
推荐(0)
摘要:
http.conf 是 Apache 的配置文件,Apache 的常见配置主要是通过修该文件实现的,修改之后需要 重启 Apache 服务生效。 Httpd.conf #Apache 安装目录 ServerRoot “/usr/local/apache2” #Apache 监听端口 Listen 8 阅读全文
posted @ 2019-08-09 15:57
樊伟胜
阅读(537)
评论(0)
推荐(0)
摘要:
rpm –qa httpd 查询是否安装了 Apache rpm –e 包名卸载安装程序 rpm –e --nodeps 包名卸载安装程序不产生依赖 #检查是否安装有依赖库 yum install –y gcc glibc glibc-common gd gd-devel xinetd openss 阅读全文
posted @ 2019-08-09 15:56
樊伟胜
阅读(234)
评论(0)
推荐(0)
摘要:
NFS 自动挂载的两种方法 第一种: 需要注意的事项 开机挂载的命令不能写入到/etc/fstab 中,由于 NFS 依赖于网络,而/etc/fstab 的引用是在计算机 网络尚未启动的时候就开始引导,因此肯定无法挂载成功!我们应该把挂载命令写入到 /etc/rc.d/rc.local 中;看操作 阅读全文
posted @ 2019-08-09 15:46
樊伟胜
阅读(3722)
评论(0)
推荐(0)
摘要:
为了证明是 Allentunsgroup 组起的作用而非用户 [root@NFS_Client ~]# useradd scott1 [root@NFS_Client ~]# passwd scott1 Changing password for user scott1. New password: 阅读全文
posted @ 2019-08-09 15:44
樊伟胜
阅读(283)
评论(0)
推荐(0)
摘要:
以下实验大家用主机名来区分服务器端和客户端, 服务器端为 NFS_Server ip-192.168.1.4; 客户端为 NFS_Client ip-192.168.1.5; 实例一 将/tmp 分享给大家使用,让所有的人都可以存取,让 root 写入档案还是具有 root 的权限 [NFS Ser 阅读全文
posted @ 2019-08-09 15:43
樊伟胜
阅读(230)
评论(0)
推荐(0)
摘要:
服务器端 >>客户端 1. 服务器端 [root@allentuns ~]# ifconfig |grep "Bcast" inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0 [root@allentuns ~]# cd /web 阅读全文
posted @ 2019-08-09 15:42
樊伟胜
阅读(1656)
评论(0)
推荐(0)
摘要:
1. 安装 showmount [root@allentuns ~]# yum -y install showmount 2. 查看服务器共享 [root@allentuns ~]# showmount -e 192.168.1.4 Export list for 192.168.1.4: /web 阅读全文
posted @ 2019-08-09 15:31
樊伟胜
阅读(4409)
评论(0)
推荐(0)
摘要:
1. 安装 nfs 服务 [root@allentuns ~]# yum -y install nfs-utils rpcbind 2. 启动 nfs 服务 [root@allentuns ~]# /etc/init.d/rpcbind start Starting rpcbind: [ OK ] 阅读全文
posted @ 2019-08-09 15:30
樊伟胜
阅读(199)
评论(0)
推荐(0)
摘要:
关闭 iptables 和 selinux [root@allentuns ~]# service iptables stop [root@allentuns ~]# chkconfig iptables off [root@allentuns ~]# service iptables status 阅读全文
posted @ 2019-08-09 15:29
樊伟胜
阅读(105)
评论(0)
推荐(0)
摘要:
Sersync 的可选功能是通过 xml 配置文件来实现的,下面来为大家解释该文件! 在该文件中,使用<!--中间是注释内容-->的方式去注释信息,注意不是我们平时# [root@SERSYNC sersync]# cat conf/confxml.xml -n 1<?xml version="1. 阅读全文
posted @ 2019-08-09 15:28
樊伟胜
阅读(1231)
评论(0)
推荐(0)
摘要:
[root@SERSYNC web]# for i in {1..10000};do echo 123456 > /data/web/$i &>/dev/null;do ne [root@SERSYNC web]# for i in {1..10000};do echo 123456 > /data 阅读全文
posted @ 2019-08-09 15:27
樊伟胜
阅读(243)
评论(0)
推荐(0)
摘要:
a、配置 Sersync 环境变量 [root@SERSYNC sersync]# echo 'export PATH=$PATH:/usr/local/sersync/bin'>>/etc/profile [root@SERSYNC sersync]# tail -1 /etc/profile e 阅读全文
posted @ 2019-08-09 15:26
樊伟胜
阅读(463)
评论(0)
推荐(0)
摘要:
上面的工作做好之后呢,下面就开始正式配置我们的 Sersync 了! 我们在 Sersync 安装过程中所用到包均是从谷歌 Sersync 项目组取得的,地址: https://code.google.com/p/sersync/downloads/list 这里,我所用的将是这个 sersync2 阅读全文
posted @ 2019-08-09 15:25
樊伟胜
阅读(236)
评论(0)
推荐(0)
摘要:
[root@SERSYNC sersync]# cp conf/confxml.xml conf/confxml.xml.bak.$(date +%F) [root@SERSYNC sersync]# ls bin conf logs [root@SERSYNC sersync]# ls conf/ 阅读全文
posted @ 2019-08-09 15:25
樊伟胜
阅读(302)
评论(0)
推荐(0)
摘要:
1、安装 Rsync 并配置相关权限 在 SERSYNC 上配置 RSYNC 客户端相关权限认证: [root@SERSYNC /]# yum install rsync -y [root@SERSYNC /]# echo "redhat" > /etc/rsync.password [root@S 阅读全文
posted @ 2019-08-09 15:15
樊伟胜
阅读(155)
评论(0)
推荐(0)
摘要:
内核版本:2.6.32-431.el6.x86_64 系统采用最小化安装,系统经过了基本优化,selinux 为关闭状态,iptables 为无限制模式 源码包存放位置:/root Rsync 客户端+Sersync 服务器(SERSYNC),承担角色 MASTER,IP:172.16.100.3, 阅读全文
posted @ 2019-08-09 15:14
樊伟胜
阅读(154)
评论(0)
推荐(0)
摘要:
(1):sersync 可以记录下被监听目录中发生变化的(包括增加、删除、修改)具体某一个文件或 某一个目录的名字; (2):rsync 在同步的时候,只同步发生变化的这个文件或者这个目录(每次发生变化的数据相对 整个同步目录数据来说是很小的,rsync 在遍历查找比对文件时,速度很快),因此,效率 阅读全文
posted @ 2019-08-09 15:05
樊伟胜
阅读(198)
评论(0)
推荐(0)
摘要:
[root@rsync-client-inotify ~]# ll /usr/local/bin/inotify* -rwxr-xr-x. 1 root root 38582 Jun 3 22:23 /usr/local/bin/inotifywait -rwxr-xr-x. 1 root root 阅读全文
posted @ 2019-08-09 15:03
樊伟胜
阅读(366)
评论(0)
推荐(0)
摘要:
我们知道 rsync 可以实现推送和拉取,而 inotify-tools 借助内核的 inotify 机制实现了文件的 实时监控。因此,借助这个思路,我们可以通过使用 shell 脚本,调整 inotifywait 的输出格式, 然后借助 inotifywait 的监控文件或目录实时变化去通知 rs 阅读全文
posted @ 2019-08-09 15:03
樊伟胜
阅读(379)
评论(0)
推荐(0)
摘要:
[root@rsync-client-inotify ~]# yum install make gcc gcc-c++ [root@rsync-client-inotify ~]# wget http://nchc.dl.sourceforge.net/project/inotify-tools/i 阅读全文
posted @ 2019-08-09 15:02
樊伟胜
阅读(1494)
评论(0)
推荐(0)
摘要:
强大的,细致的,异步的文件系统事件监控机制。Linux 内科从 2.6.13 起支持 inotify Inotify 实现的几款软件:Inotify,sersync,lsyncd ※Inotify 实施准备前提:rsync daemon 服务配置成功,并且客户端可以推送和拉取数据,才能够 成功配置 阅读全文
posted @ 2019-08-09 14:56
樊伟胜
阅读(141)
评论(0)
推荐(0)
摘要:
特别强调:此步很关键,如果这不能同步,后面的 inotify 配好了也不会同步数据。 1) 分别创建待同步数据 [root@rsync-client-inotify ~]# mkdir /data/{web,web_data}/redhat.sx -p [root@rsync-client-inot 阅读全文
posted @ 2019-08-09 14:55
樊伟胜
阅读(913)
评论(0)
推荐(0)
摘要:
[root@rsync-client-inotify /]# yum install rsync -y [root@rsync-client-inotify /]# echo "redhat">/etc/rsync.password [root@rsync-client-inotify /]# ch 阅读全文
posted @ 2019-08-09 14:51
樊伟胜
阅读(374)
评论(0)
推荐(0)
摘要:
[root@rsync-server-1 /]# echo "/usr/bin/rsync --daemon" >> /etc/rc.local [root@rsync-server-1 /]# grep daemon /etc/rc.local # rsyncd service daemon by 阅读全文
posted @ 2019-08-09 14:46
樊伟胜
阅读(2912)
评论(0)
推荐(0)
摘要:
[root@rsync-server-1 /]# lsof -i tcp:873 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME rsync 10309 root 4u IPv4 94045 0t0 TCP *:rsync (LISTEN) rs 阅读全文
posted @ 2019-08-09 14:45
樊伟胜
阅读(4272)
评论(0)
推荐(0)
摘要:
[root@rsync-server-1 /]# rsync --daemon 阅读全文
posted @ 2019-08-09 14:08
樊伟胜
阅读(1085)
评论(0)
推荐(0)
摘要:
[root@rsync-server-1 /]# echo 'rsync_backup:redhat' > /etc/rsync.password [root@rsync-server-1 /]# echo 'rsync_backup:redhat' > /etc/rsync.password [r 阅读全文
posted @ 2019-08-09 14:07
樊伟胜
阅读(271)
评论(0)
推荐(0)
摘要:
[root@rsync-server-1 ~]# mkdir /data/{web,web_data}/redhat.sx -p [root@rsync-server-1 ~]# tree /data /data ├── web_data │ └── redhat.sx └── web └── re 阅读全文
posted @ 2019-08-09 14:06
樊伟胜
阅读(153)
评论(0)
推荐(0)
摘要:
[root@rsync-server-1 ~]# cat > /etc/rsyncd.conf << EOF #Rsync server #created by sunsky 00:17 2013-06-28 ##rsyncd.conf start## uid = root # rsync 对后面模 阅读全文
posted @ 2019-08-09 14:05
樊伟胜
阅读(1195)
评论(0)
推荐(0)
摘要:
首先要选择服务器启动方式: l 对于负荷较重的 rsync 服务器应该选择独立运行方式 l 对于负荷较轻的 rsync 服务器应该选择 xinetd 运行方式 l 创建配置文件 rsyncd.conf l 对于非匿名访问 rsync 服务器还要创建认证口令文件 首先要选择服务器启动方式: l 对于负 阅读全文
posted @ 2019-08-09 14:01
樊伟胜
阅读(619)
评论(0)
推荐(0)
摘要:
Rsync+Inotify-tools (1):Inotify-tools 只能记录下被监听的目录发生了变化(包括增加、删除、修改),并没有 把具体是哪个文件或者哪个目录发生了变化记录下来; (2):rsync 在同步的时候,并不知道具体是哪个文件或者哪个目录发生了变化,每次都是对整 个目录进行同步 阅读全文
posted @ 2019-08-09 13:59
樊伟胜
阅读(158)
评论(0)
推荐(0)
摘要:
sysctl 变量修改方法:sysctl –a 使用 sysctl 命令修改系统变量,和通过编辑 sysctl.conf 文件来修改系统变量两种。但并不是所有的 变量都可以在这个模式下设定。 注:sysctl 变量的设置通常是字符串、数字或者布尔型。 (布尔型用 1 来表示'yes',用 0 来表示 阅读全文
posted @ 2019-08-09 13:58
樊伟胜
阅读(181)
评论(0)
推荐(0)
摘要:
具体的 options 含义以及简单示例可以参考以下表格。 选项 含义 例子 -H 设置硬资源限制,一旦设置不能增加。 ulimit – Hs 64;限制硬资源,线程栈大小为 64K。 -S 设置软资源限制,设置后可以增加, ulimit – Sn 32;限制软资源,32 个文件描述符。 具体的 o 阅读全文
posted @ 2019-08-09 13:57
樊伟胜
阅读(181)
评论(0)
推荐(0)

浙公网安备 33010602011771号