本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
安装 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...
一、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。目...
Python下科学计算包numpy和SciPy的安装Python下大多数工具包的安装都很简单,只需要执行 “python setup.pyinstall”命令即可。然而,由于SciPy和numpy这两个科学计算包的依赖关系较多,安装过程较为复杂。网上教程较为混乱,而且照着做基本都不能用。在仔细研读各个包里的README和INSTALL之后,终于安装成功。现记录如下。 系统环境:OS:RedHat5Python版本:Python2.7.3gcc版本:4.1.2 各个安装包版本:scipy-0.11.0numpy-1.6.2nose-1.2.1lapack-3.4.2atlas-3.10.0 依赖关系:scipy的安装需要依赖于numpy、lapack、atlas(后两者都是线性代数工具包,不清楚的自行google之。。。),而numpy和sci的测试程序的运行又依赖于nose,因此,整个安装过程必须要按顺序执行的,否则是无法执行下去的。 安装步骤:1、安装nose这个安装比较简单,解压缩nose的安装文件,进入nose的目录,直接运行setup.py即可:tar -zxvfnose-1.2.1.tar.gzcd nose-1.2.1python setup.pyinstall 2、安装lapack由于最新版本的ATLAS可以直接集成lapack的安装压缩文件进行编译,因此,如果仅在python下使用的话,可以不用安装lapack。只需要下载压缩文件:lapack-3.4.2.tgz即可...
最新评论