本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
nginx优化 实现10万并发访问量一般来说nginx配置文件中对优化比较有作用的为以下几项:worker_processes 8;1 nginx进程数,建议按照cpu数目来指定,一般为它的倍数。worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 0010000001000000 10000000;为每个进程分配 cpu,上例中将 8 个进程分配到 8 个 cpu,当然可以写多个,或者将一个进程分配到多个cpu。worker_rlimit_nofile 102400;这个指令是指当一个nginx进程打开的最多文件描述符数目,理论值应该是最多打开文件数(ulimit -n)与nginx进程数相除,但是nginx分配请求并不是那么均匀,所以最好与ulimit-n的值保持一致。use epoll;使用epoll的I/O模型,这个不用说了吧。worker_connections 102400;每个进程允许的最多连接数,理论上每台 nginx 服务器的最大连接数为worker_processes*worker_connections。keepalive_timeout 60;keepalive超时时间。client_header_buffer_size 4k;客户端请求头部的缓冲区大小,这个可以根据你的系统分页大小来设置,一般一个请求头的大小不会超过 1k,不过由于一般系统分页都要大于 1k,所以这里设置为分页大小。分页大小可以用命令getconf PAGESIZE取得。open_file_cache ...
 
0

安装 Hexo 博客程序

发表者:admin分类:应用服务2015-07-16 16:30:30 阅读[1971]
安装 Hexo 博客程序 评分 4.00, 满分 5 星4 票+投票一、安装 Git 先安装 Homebrew ,打开 Terminal 输入以下指令。ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 等待后回车,中途会提示安装 Xcode,完成后任意键继续,直到出现成功。再输入:brew install git 二、安装 Node.js先安装 nvm,终端中输入:git clone git://github.com/creationix/nvm.git ~/nvm echo ". ~/.nvm/nvm.sh" >> ~/.bash_profile 重开终端,输入:nvm install v0.8.14 nvm use v0.8.14 nvm alias default v0.8.14 三、安装 Hexonpm install -g hexo 之后的操作教程直接见: http://zespia.tw/hexo/docs/setup.html
免费开源的 Webmail Roundcube 搭建Roundcube 是一套免费开源的 Webmail 系统,最新版本 0.7。需要注意的是,Roundcube 仅仅是 Webmail,不带 mail 服务器的,也就是说,你必须配合 mail 服务器(比如 hMailServer)使用。下载最新的 Roundcube 0.7,解压到 Apache 的 htdoc 目录,改名为 webmailwebmail 目录打开浏览器,访问 “http://localhost/webmail/installer/”,这是 Roundcube 的安装脚本安装 RoundcubeRoundcube 的最低要求是 PHP 5.2,低于这个版本的升级先。其他要求请看图。点击 Start Installation,安装脚本会检查系统配置检查系统配置点击 Next,输入各种参数。其实主要就是 Mysql 和 imap/smtp 服务器。设置数据库由于这里是配合之前安装的 hMailServer 使用,因此我都填了 localhost,Roundcube 不会创建数据库,因此需要提前创建。IMAP 服务器SMTP 服务器Roundcube 自带简体中文,在语言这里填写 zh_CN设置语言点击 Create Config,安装脚本会生成两个配置文件 main.inc.php 和 db.inc.php,把他们下载到  “htdocs\webmail\config” 目录。以后修改配置可以直接编辑这两个文件。最后点击 Continue。检查路径和数据库可以看到,temp 和 logs 两个目...
背景:     A公司集成两台WebSphere Application Server群集和一台Oracle DB作为项目架构 拓扑:     DB为后台Oracle服务器,Web1与Web2做WebSphere Application Server的IBM HTTP Server群集,Proxy为代理服务器,通过虚拟机IP让终端访问群集。 硬件与软件要求: 1.登陆至操作系统     作为root用户登录,您无法以非root用户标识正确安装产品;     选择允许所有者读写文件并允许其他人根据主要系统策略访问这些文件的umask。建议选择umask022 (chmod -R * 755 filename) 2.浏览器支持     下载并安装Mozilla Web浏览器(V1.4或V1.75或更高版本)     如果您没有Mozilla 浏览器,从http://www.mozilla.org/releases 下载并安装浏览器。 3.导出受支持浏览器位置     例如Mozilla软件包位于...
Configuring a Squid Server to authenticate off Active Directory Warning: Any example presented here is provided "as-is" with no support or guarantee of suitability. If you have any further questions about these examples please email the squid-users mailing list. ContentsConfiguring a Squid Server to authenticate off Active DirectoryIntroductionExample EnvironmentPrerequisitesDNS ConfigurationNTP ConfigurationInstall and Configure KerberosInstall Squid 3AuthenticationKerberosNTLMBasicInstall negotiate_wrappersquid.conf IntroductionThis wiki page covers setup of a Squid proxy which will seamlessly integrate with Active Directory using Kerberos, NTLM and basic authentication for clients not authenticated via Kerberos or NTLM. If you are running Debian or would like more verbose instructions including access groups this link may be of interest. Example Environmentthe following examples are utilised, you should update any configuration examples with your clients domain, hostname...
squid 处理长ACL列表 ACL列表某些时候非常长。这样的列表在squid.conf文件里难以维护。你也可能想从其他资源里自动产生squid ACL列表。在如此情况下,你可以从外部文件里包含ACL列表。语法如下: acl name "filename" 这里的双引号指示squid打开filename,并且将它里面的内容分配给ACL。例如,如下的ACL太长了: acl Foo BadClients 1.2.3.4 1.2.3.5 1.2.3.6 1.2.3.7 1.2.3.9 ... 你可以这样做: acl Foo BadClients "/usr/local/squid/etc/BadClients" http_access deny Foo 将IP地址放在BadClients文件里: 1.2.3.4 1.2.3.5 1.2.3.6 1.2.3.7 1.2.3.9
您所在的组无权查看该日志
Nginx反向代理及负载均衡实现过程 首先 安装nginx.各节点时间同步123[root@nginx ~]# ntpdate 202.120.2.101[root@web1 ~]# ntpdate 202.120.2.101[root@web2 ~]# ntpdate 202.120.2.1016.关闭防火墙与SELinux123456789101112[root@nginx ~]# service iptables stop[root@nginx ~]# chkconfig iptables off [root@nginx ~]# getenforce Disabled[root@web1 ~]# service iptables stop[root@web1 ~]# chkconfig iptables off [root@web1 ~]# getenforce Disabled[root@web2 ~]# service iptables stop[root@web2 ~]# chkconfig iptables off [root@web2 ~]# getenforce Disabled安装依赖包#yum install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel下载nginx#cd /usr/local/src#wget http://www.nginx.org/download/nginx-1.0.9.tar.gz#tar zxvf nginx-1.0.9.tar.gz#cd nginx-1.0.9配置安装:#./configure --prefix=/usr --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx/nginx...
您所在的组无权查看该日志
 
0
一、Redhat/CentOS安装vsftp软件1.更新yum源首先需要更新系统的yum源,便捷工具下载地址:http://help.aliyun.com/manual?spm=0.0.0.0.zJ3dBU&helpId=16922.安装vsftp使用yum命令安装vsftp#yum install vsftpd -y3.添加ftp帐号和目录先检查一下nologin的位置,通常在/usr/sbin/nologin或者/sbin/nologin下。使用下面的命令创建帐户,该命令指定了/alidata/www/wwwroot为用户pwftp的家目录,您可以自己定义帐户名和目录:#useradd -d /alidata/www/wwwroot -s /sbin/nologin pwftp修改该帐户密码:#passwd pwftp修改指定目录的权限#chown -R pwftp.pwftp /alidata/www/wwwroot4.配置vsftp编辑vsftp配置文件,命令如下:#vi /etc/vsftpd/vsftpd.conf将配置文件中”anonymous_enable=YES “改为 “anonymous_enable=NO”取消如下配置前的注释符号:local_enable=YESwrite_enable=YESchroot_local_user=YES保存修改,按ESC键,输入:wq5.修改shell配置vi编辑/etc/shells,如果该文件里没有/usr/sbin/nologin或者/sbin/nologin(具体看当前系统配置)则追加进去6.启动vsftp服务并测试登录使用命令启动vsftp服务:#service vsftpd start然后用帐号pwftp测试下是否可以登陆ftp。目...
    总共46页,当前第26页 | 页数:
  1. 16
  2. 17
  3. 18
  4. 19
  5. 20
  6. 21
  7. 22
  8. 23
  9. 24
  10. 25
  11. 26
  12. 27
  13. 28
  14. 29
  15. 30
  16. 31
  17. 32
  18. 33
  19. 34
  20. 35
  21. 36