本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
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即可...
Axis2的下载和安装 Axis2是一套崭新的WebService引擎,该版本是对Axis1.x重新设计的产物。Axis2不仅支持SOAP1.1和SOAP1.2,还集成了非常流行的REST WebService,同时还支持Spring、JSON等技术。这些都将在后面的系列教程中讲解。在本文中主要介绍了如何使用Axis2开发一个不需要任何配置文件的WebService,并在客户端使用Java和C#调用这个WebService。一、Axis2的下载和安装 读者可以从如下的网址下载Axis2的最新版本: http://ws.apache.org/axis2/ 在本文使用了目前Axis2的最新版本1.4.1。读者可以下载如下两个zip包: axis2-1.4.1-bin.zip axis2-1.4.1-war.zip 其中axis2-1.4.1-bin.zip文件中包含了Axis2中所有的jar文件, axis2-1.4.1-war.zip文件用于将WebService发布到Web容器中。 将axis2-1.4.1-war.zip文件解压到相应的目录,将目录中的axis2.war文件放到<Tomcat安装目录>\webapps目录中(本文使用的Tomcat的版本是5.5),并启动Tomcat。 在浏览器地址栏中输入如下的URL: &...
apache_php_tomcat基于主机名的多虚拟主机整合 环境:rhel4 x86-64 + apache2.0.52 + php5.2.17 + jdk1.6.0_29 + tomcat6.0.35, apache为系统缺省安装一,php安装,参见《rhel4_x86_64_php5.2.17_make安装支持mysqli》-> http://blog.csdn.net/lazyclough/article/details/7103948二, tomcat 6 安装1, 下载jdk-6u29-linux-i586-rpm.bin, 为其加上可执行权限并执行,jdk将安装于/usr/java/jdk1.6.0_292, 下载apache-tomcat-6.0.35.tar.gz并解压至任意目录,如:/home/molin/program/apache-tomcat-6.0.353,配置java和tomcat环境变量$ sudo vi /etc/profile, 在文件末尾加上以下内容:###########################################################export JAVA_HOME=/usr/java/jdk1.6.0_29export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jarexport PATH=$PATH:$JAVA_HOME/binexport CATALINA_HOME=/home/molin/program/apache-tomcat-6.0.35export CATALINA_BASE=$CATALINA_HOME###########################################################$ sudo source /etc/profile (使环境变量直接生效)4, 将t...
加密扩展Mcrypt安装/配置 Change language: Edit Report a Bug 安装 使用 --with-mcrypt[=DIR] 参数来编译 PHP 以启用本扩展。 DIR 是 mcrypt 的安装路径。 请确保编译 libmcrypt 的时候使用了 --disable-posix-threads 选项。 add a note User Contributed Notes 10 notes up down 42 Anonymous ¶1 year ago Note, for Ubuntu, simply installing php5-mcrypt did not get mcrypt to work. You need to execute the following commands as root to enable it:apt-get install php5-mcryptmv -i /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/php5enmod mcryptservice apache2 restart up down 14 Polichism ¶8 months ago If you don't have a /etc/php5/conf.d directory, you can simply only do: php5enmod mcryptShould be working fine. up down 6 Tanner Williamson ¶8 months ago On Ubuntu 14.04 LTS usin...
最新评论