1、系统环境 freebsd6.2,pthon2.4 1、apache的安装 # cd /usr/ports/www/apache22/ # make install clean 2、mod_python的安装 # cd /usr/ports/www/mod_python3 # make install clean 3、django的安装 # cd /usr/ports/www/py-django # make install clean //选择适当的数据库,这里我选择了mysql和cgi 4、建立django项目gr # mkdir /django # cd /django # django-admin.py startproject gr 5、配置apache # vim /usr/l...
by mageguoshi - Python文档中心 - 2008-02-22 19:09:21 阅读(1837) 回复(0)
Both Debian and Ubuntu make it really simple to get a server up and running. I was trying a few different Machine Images on Amazon and I found myself repeating a lot of things so I wanted to put them here for reference for those who might find it useful. With a fresh image, the first thing to do is update apt-get. apt-get update && apt-get upgrade -y Then grab all of the software to use. apt-get ...
freebsd+apache+mysql+SQUID+ZEND 1.安装系统 系统名称:freebsd 版本号:4.9 安装步骤: l 插入光盘,自动引导进入安装程序启动画面,选择BOOT freebsd(DEFAULT)。 l 进入sysinstall配置页面。选择CUSTOM,依次配置Partition,Label,Distributions,Media,Commit。Patition是将硬盘fdisk,直接选择A自动创建然后Q退出,然后系统提示确认关于是否起用多重引导。Label创建分区并挂载。Distributions选择资源包...
/*一直很想搞个PHP + mysql +apache freebsd的做虚拟主机,这里先转载个别人的,以后自己要用的时候可以参考一下。*/ 系统: freebsd6.1-p3 apache22 pure-ftp mysql jdk15 resin3.0.19 防火墙ipfw 开了若干虚拟主机,也一并实现了 JSP 功能 步骤如下: 系统安装和apache22的安装和配置就不用说了,这里有很多也很简单,大家自己搜一下吧。我都是用PORTS安装的 (BSD我已经升级过源码,PORTS也已经升级过) 一、安装...
ERROR 2002: Can't connect to local mysql server through socket '/tmp/mysql.sock' (61) 我的mysql起不来了 情况具体: 环境:freebsd5.2+apache2.0.48+mysql4.0.20+php4.3.6 安装完成后,启动运行一切正常。 但当我提供一个站点流量统计服务后,我的mysql并发数会超过100。 会经常出现too many connections的错误提示。 当我将my-huge.cnf 拷到 path-to-mysql/var/my.cnf,并在my.cnf中添加一项max_connections=1000...
apache+python+mod_python+django 编译安装指南(2007-05-29 10:41:53) 分类: Linux 摘要 1、本文将知道你在 linux 下使用源码包安装 apache 2.2.4python 2.5.1mod_python 3.3.1django svn trunk version 但是,因为无法得知编译过程中得到的出错信息,故本文默认编译过程全部顺利通过,任何疑问请在文后讨论区中进行。 2、本文中介绍的命令前面的“#”仅代表命令提示符,请不要将其连同命令一起输入。 一、安装 apache 2.2...
1.准备: $ sudo apt-get install python-psycopg2 python-psycopg postgresql-8.2 postgresql-client-8.2 apache2 libapache2-mod-python subversion pgadmin3 pgadmin3-data [color="#990000"]django: —————— $ mkdir Web;cd WebWeb$ svn co http://code.djangoproject.com/svn/django/trunk/ django_src Web$ sudo ln -s `pwd`/django_src/django /usr/lib/python2.5/site-packages/djang...
针对提交数据到数据库乱码及出错的问题:
sudo vi /etc/my.cnf
add :
[mysqld]
default-character-set=utf8
init_connect='SET NAMES utf8'
[client]
default-character-set=utf8
mysql -u root
drop database {your_database}
restart mysqld
mysql -u root
create database {your_database}
cd {your_web_path}
./manager.py syncdb
./m...
转自: 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/93926/showart_1873030.html
FAPM 豪华手册 F reeBSD Handbook The freebsd Documentation Project freebsd 使用手册 张纪青 freebsd使用大全 王波 A pache2.0 Documentation apache HTTP Server Documentation Project. apache2.0版本文档 kajaa apache 1.3 Documentation apache HTTP Server Documentation Project. apache 1.3 用户指南 apache 1.3用户参考文档翻译计划 P HP Manual PHP Documentation Group PHP 手册 ...
今天我把我学习freebsd 5个月的心得发布出来,中间因为工作调动原因中断学习2个月,虽然都是些针对初学者的文章,但是是我的心得体会,特发布出来给大家共享,希望我的文章能起抛砖引玉的作用,能看到 CU 网友更多、更佳的文章。 freebsd下安装apache: http://bbs.chinaunix.net/thread-1288154-1-1.html freebsd下安装php: http://bbs.chinaunix.net/thread-1288366-1-1.html freebsd下安装mysql: http://bbs.chinaunix.ne...