记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
ڵȨ鿴־
 
0

ToughRADIUS快速指南

发表者:admin分类:应用服务2016-01-25 19:58:16 阅读[3069]
ToughRADIUS快速指南准备一台完整的服务器,或者远程VPS,给服务器安装Linux系统,CentOS6以上,ubuntu13以上,或者其他你自己熟悉的Linux发行版。你要懂一点技术,比如安装操作系统,会在终端敲命令。ToughRADIUS 是Docker技术的拥抱者,如果想更好的使用ToughRADIUS,你也需要去学习关于Docker的知识。安装部署ToughRADIUS主要采用了Docker镜像部署的模式,ToughRADIUS的镜像基础是ubuntu 14。我们可以把Docker看作一个软件集装箱,半世纪之前,集装箱发挥了巨大的力量,改变了整个运输产业,也改变了人们的生活。而Docker就类似这样一个集装箱工具,只不过他封装的是软件。还记得linux安装lamp的经历吗?现在可以对各种安装配置apache,php等繁琐的工作说再见了。我们把ToughRADIUS相关的配置,运行依赖环境等全部打包在一个“Docker集装箱”里,我们只需要在我们的服务器上简单的安装一个支持运行“Docker集装箱”的环境,那么我们不用去折腾各种运行环境搭建就能简单的让ToughRADIUS跑起来。通常我们把封装了软件应用的“Docker集装箱”叫做镜像,有...
CentOS6 64bit系统配置vsftpd虚拟用户登陆 CentOS6 64bit系统配置vsftpd虚拟用户登陆,本文在Linode VPS上测试成功。准备工作$ yum install vsftpd db4-utils #添加虚拟用户,用户名和密码各占一行$ vim /etc/vsftpd/virtual_useruser1password1user2password2 #生成虚拟用户口令认证文件$ db_load -T -t hash -f /etc/vsftpd/virtual_user /etc/vsftpd/virtual_user.db #生成pam认证文件$ mv /etc/pam.d/vsftpd /etc/pam.d/vsftpd.bak$ vim /etc/pam.d/vsftpd    #写入如下两行,如果是32位系统,把lib64改为libauth    required    /lib64/security/pam_userdb.so    db=/etc/vsftpd/virtual_useraccount    required    /lib64/security/pam_userdb.so    db=/etc/vsftpd/virtual_user修改vsftp配置文件$ cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.ori$ vim /etc/vsftpd/vsftpd.conf anonymous_enable=NOlocal_enable=YESwrite_enable=YESlocal_umask=022dirmessage_enable=YESxferlog_enable=YESconnect_from_port_20=YESxf...
ڵȨ鿴־
Apache PHP Server Issue : Warning: POST Content-Length exceeding the limit PHP Warning: POST Content-Length of xxxxx bytes exceeds the limit of xxxxxx bytes in Unknown on line 0You receive the “POST Content-Length” error message when a file greater than the size defined in the php.ini file is uploaded via the browser.The file you are uploading using the POST method should not exceed the value of post_max_size defined in php.ini file. If it does, it results in the above error message.Solution:In case you are looking to upload a larger file size, you need to increase the value of “post_max_size” in php.ini.1) To locate the exact php.ini file, your PHP is using php -i | grep php.ini 2) Edit the php configuration file pico /usr/local/lib/php.ini 3) If you are looking to upload a file of 30M, set post_max_size and to upload_max_filesize to 40M. post_max_size = 40M upload_max_filesize = 40M 4) Save the file and restart the httpd service service httpd restart cha...
 
0
centos下安装php的ZipArchive扩展 系统:centos6.5 64位系统 下载ZipArchivewget http://pecl.php.net/get/zip-1.12.4.tgz 解压:tar zxvf zip-1.12.4.tgz 切换到zip-1.12.4目录一看,没有configure,这怎么编译呢,于是网上一 阵狂搜。后来在意个论坛的一片帖子的回复中有人提到了phpize,我也试着执行了一下phpize命令,提示没有该命令,于是又是一阵狂搜。原来phpize是php.devel带的,于是又安装了php.devel,命令为:yum -y install php.devel 然后再执行phpize,接着ls一下,果然configure出现了,然后执行:./configure --with-php-config=/usr/bin/php-config 出现错误,提示缺少zlib什么的,于是执行yum -y install zlib-devel 进行安装,然后重新./configure --with-php-config=/usr/bin/php-config 接着make,但是又遇到了错误,提示缺少pcre啥的,于是执行yum install pcre-devel 然后make && make install 搞定!
华为S2700 交换机,web操作时,不小心操作错误了。配置文件中接口显示:undo port hybrid vlan 1查看文件说明如下:port hybrid pvid vlan vlan-idundo port hybrid pvid【视图】以太网端口视图/端口组视图【参数】vlan-id:指定接口的缺省的VLAN ID,取值范围为1~4094。【描述】port hybrid pvid vlan命令用来设置Hybrid端口的缺省VLAN ID。undo port hybrid pvid命令用来恢复缺省情况。缺省情况下,Hybrid端口的缺省VLAN为VLAN1。对Hybrid端口,执行undo vlan命令删除端口的缺省VLAN后,端口的缺省VLAN配置不会改变,即可以使用已经不存在的VLAN作为缺省VLAN。在以太网端口视图下执行该命令,则该配置只在当前端口生效;在端口组视图下执行该命令,则该配置将在端口组中的所有端口生效 配置Vlan时,怎么也添加不了,提示端口有错误。使用以下两条命令解决。port hybrid tagged vlan 1port hybrid untagged vlan 1 然后再配置vlan,将接口配置成access模式,再创建vlan ,然后添加进vlan中,测试同一vlan可以互通,与其它端口不通
OneinStack 1.0 发布,一键 PHP/JAVA 安装工具这个脚本是使用shell编写,为了快速在生产环境上部署lnmp/lamp/lnmpa/lnmt(Linux、Nginx/Tengine、MySQL/MariaDB/Percona、PHP、Apache、Tomcat),适用于CentOS 5~7(包括redhat)、Debian 6~8、Ubuntu 12.04~15.04的32位和64位。可根据需求自由组合以下:lnmp(Linux + Nginx+ MySQL+ PHP)lamp(Linux + Apache+ MySQL+ PHP)lnmpa(Linux + Nginx+ MySQL+ PHP+ Apache):Nginx处理静态,Apache(mod_php)处理动态PHPlnmt(Linux + Nginx+ MySQL+ Tomcat):Nginx处理静态,Tomcat(JDK)处理JAVAlnmh(Linux + Nginx+ MySQL+ HHVM)OneinStack特性 持续不断更新 源码编译安装,大多数源码是最新stable版,并从官方网址下载 一些安全优化 提供多个数据库版本(MySQL-5.6, MySQL-5.5, MariaDB-10.0, MariaDB-5.5, Percona-5.6, Percona-5.5) 提供多个PHP版本(php-5.3, php-5.4, php-5.5,php-5.6,php-7/phpng(RC)) 提供Nginx、Tengine 提供多个Apache版本(Apache-2.4,Apache-2.2) 提供多个Tomcat版本(Tomcat-8,Tomcat-7) 提供多个JDK版本(JDK-1.8,JDK-1.7,JDK-1.6) 根据自己需求安装PHP缓存加速器,...
ڵȨ鿴־
CentOS 6安装lnmp+pptp+freeradius+daloradius   在CentOS 6系统上安装lnmp + pptp + freeradius + daloradius的过程,已在原生CentOS 6、Linode、digitalocen等VPS上测试过均无问题。一,安装LNMP地址见http://lnmp.org/install.html,发布本文时,博主本人安装的是lnmp1.0版安装完成需要作一些简单的优化,DaloRADIUS需要PEAR的DB插件,原生的LNMP并未安装pear,故这里也需要安装编辑/usr/local/php/etc/php.ini,找到disable_functions,去掉scandir、fsockopen函数ln -s /usr/local/php/etc/php.ini /etc/php.iniwget http://pear.php.net/go-pear.pharphp -f go-pear.phar按1(修改Installation base),输入/usr/local/pear按5(修改PHP code directory),输入/usr/local/php/share/pear按9(修改Public Web Files directory),输入/home/wwwroot然后回车,提示alter php.ini,选择Y,一路回车 检查一下/usr/local/php/etc/php.ini,检查如下一行,如果没有就加上include_path=".:/usr/local/php/share/pear" ln -s /usr/local/pear/bin/pear /usr/bin/pearpear install DB/etc/init.d/php-fpm reload二,安装pptp vpnwget http:/...
    总共268页,当前第102页 | 页数:
  1. 92
  2. 93
  3. 94
  4. 95
  5. 96
  6. 97
  7. 98
  8. 99
  9. 100
  10. 101
  11. 102
  12. 103
  13. 104
  14. 105
  15. 106
  16. 107
  17. 108
  18. 109
  19. 110
  20. 111
  21. 112