随笔分类 -  LAMP

摘要:1.安装前准备 1)要确保python的默认版本为2.7及以上版本。 2)需要配置的apache、nginx需要提前配置绑定域名。 2.安装ssl 在这个https://certbot.eff.org/,选择操作系统及web server就可以按提供的命令进行安装配置。 阅读全文

posted @ 2017-06-28 10:16 honsen 阅读(384) 评论(0) 推荐(0)

摘要:1.下载安装 Let’s Encrypt客户端 2.添加执行权限 3.配置apache并验证域名(example.com为验证的域名) 4.出现以下画面证明安装配置成功! 5.添加证书自动更新配置 阅读全文

posted @ 2017-01-16 14:58 honsen 阅读(356) 评论(0) 推荐(0)

摘要:InstallationStarting with a vanilla Lucid install, install pip and upgrade to the latest version:apt-get install python-pippip install -U pip Next, i... 阅读全文

posted @ 2015-03-31 16:33 honsen 阅读(271) 评论(0) 推荐(0)

摘要:1.添加自定义事件crontab -e2.选定编辑器3.添加执行代码00 * * * * /usr/bin/curl http://www.exmple.com/cron.phpcrontab 命令用于安装、删除或者列出用于驱动cron后台进程的表格。也就是说,用户把需要执行的命令序列放到cront... 阅读全文

posted @ 2014-07-18 09:10 honsen 阅读(633) 评论(0) 推荐(0)

摘要:1.当执行此命令的时候ntpdate us.pool.ntp.org 出现一下错误提示name server cannot be used: Temporary failure in name resolution2.解决办法(添加DNS服务器)vi /etc/resolv.conf添加: name... 阅读全文

posted @ 2014-07-14 15:07 honsen 阅读(690) 评论(0) 推荐(0)

摘要:一、安装yaf需要的扩展apt-get install perl-modulesapt-get install libpcrecpp0apt-get install libpcre3 libpcre3-dev二、安装yaf1. 下载yaf安装包(2.2.9稳定版)wgethttp://pecl.php.net/get/yaf-2.2.9.tgz2.解压缩tar zxvf yaf-2.2.9.tgz3. 进入目录cdyaf-2.2.94. phpize(如果无法执行此命令请先安装apt-get install php5-dev)5. ./configure6. make && m 阅读全文

posted @ 2013-12-20 12:27 honsen 阅读(741) 评论(0) 推荐(0)

摘要:配置环境:myslq5.5.3+ubuntuserver12.04一、配置MySQL主服务器(192.168.0.1)1.增加一个账号专门用于同步1mysql>grantreplicationslaveon*.*touser@192.168.0.2identifiedby'123456';2.接下来备份数据,首先执行如下SQL语句:123mysql>flushtableswithreadlock;mysql>mysqldump-uroot-pesmartgo>/home/esmartgo.sql3.然后将这些数据拷贝到mysql从服务器(192.168. 阅读全文

posted @ 2013-12-20 12:23 honsen 阅读(374) 评论(0) 推荐(0)

摘要:1.安装LAMP套件1tasksel2.安装FTP工具http://www.cnblogs.com/esin/p/3483646.html3.安装PHPMyAdmin1)安装1apt-getinstallphpmyadmin2)配置访问权限,建立.htaccess文件123cd/usr/share/phpmyadminvi.htaccess然后加入12OrderAllow,DenyAllowfrom221.13.130.1154.配置apache1)开通rewrite模块1a2enmodrewrite123a2enmodrewriteserviceapache2restart2)修改apach 阅读全文

posted @ 2013-12-20 12:22 honsen 阅读(412) 评论(0) 推荐(0)

摘要:1234567891011121314151617181920212223242526272829303132333435363738394041424344454647root@www:~#apt-getinstallawstatsroot@www:~#vi/etc/awstats/awstats.conf#line122:change#Ifyourconfigforlogformatinhttpd.confis'combined'Sethere'1'#Iflog-configis'common'sethere'4',butin 阅读全文

posted @ 2013-12-20 12:17 honsen 阅读(345) 评论(0) 推荐(0)

摘要:mod-bwisanApache2moduleprovidedtosolvetheproblemoflimitingusers’andvirtualhosts’bandwidthusage.Thecurrentversionscansetvirtualhosts’andusers’bandwidthquotas,maximaldownloadspeed,requests-per-secondspeedandthemaximalnumberofsimultaneousIPconnections.mod-bwFeatures:*Lightweightbandwidthlimitingmodulef 阅读全文

posted @ 2013-12-20 12:16 honsen 阅读(426) 评论(0) 推荐(0)

摘要:1.首先安装mod_pythonapt-get install libapache2-mod-python2.6(Ubuntu 9.10默认安装的是python 2.6版,如果是2.5可改为 libapache2-mod-python2.5)2.配置apache 1)1) vi /etc/apache2/httpd.conf2)添加如下代码LoadModule python_module /usr/lib/apache2/modules/mod_python.soPythonOption mod_python.mutex_directory "/var/lock/apache2/&q 阅读全文

posted @ 2013-12-20 12:03 honsen 阅读(218) 评论(0) 推荐(0)

导航