一 安装软件
1.1 linux
在VMware Ware中安装了unbuntu 16.04麒麟版本,安装了flash,开发用的pycharm
1.2 apache
编译安装httpd 2.4,网上各种教程一大把
1 下载httpd2.4
http://httpd.apache.org/download.cgi#apache24
2 官方编译安装文档
http://httpd.apache.org/docs/2.4/install.html
3 安装依赖apr and apr-util
下载apr apr-util
http://apr.apache.org/download.cgi
安装apr:
$ sudo ./configure
$ sudo make
$ sudo make install
安装apr-util:
$ sudo ./configure --with-apr=/usr/local/apr
$ sudo make
$ sudo make install
4 安装pcre
sudo apt-get install libpcre3 libpcre3-dev
5 编译安装apache,这里工作模式设为prefork模式
./configure -prefix=/usr/local/apache2
–enable-module=share
–with-mpm=prefork
6 使用apachectl启动apahce
注意使用apahcectl,apache配置文件在/usr/local/xxx/conf/httpd.conf
apachectl 的命令选项参考官网手册:
$ apachectl start
$ apachectl stop
$ apachectl restart
修改配置文件服务器名以及监听端口,按上述命令启动apache
1.3 mysql
在官网根据教程选择安装最新版本mysql
http://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
- 下载apt仓库 http://dev.mysql.com/downloads/repo/apt/.
- 选择正确的linux版本
- 安装源
shell