编译appche http server:
来源:互联网 发布:大数据 风险管理 编辑:程序博客网 时间:2024/05/01 10:08
一、编译appche http server:
1. 下载底层库 APR apr-1.5.0.tar.gz
http://apr.apache.org/download.cgi
1) ./configure /*报错 rm libtool找不到,没有理会它,继续往下走*/
2)make
3)sudo make install
2.下载 apr-util-1.5.3.tar.gz
./configure --with-apr=../apr-1.5.0
make
sudo make install
3.下载 pcre-8.34.zip from http://pcre.org/
./configure
make
sudo make install
4. 下载appache httpd-2.4.7.tar.gz
./configure
make
sudo make install
二、配置apache
三、运行apache
sudo su
export LD_LIBRARY_PATH=/usr/local/lib
/usr/local/apache2/bin/apachectl start
apachectl restart
apachectl stop
四、验证:
浏览器中打开
1. 下载底层库 APR apr-1.5.0.tar.gz
http://apr.apache.org/download.cgi
1) ./configure /*报错 rm libtool找不到,没有理会它,继续往下走*/
2)make
3)sudo make install
2.下载 apr-util-1.5.3.tar.gz
./configure --with-apr=../apr-1.5.0
make
sudo make install
3.下载 pcre-8.34.zip from http://pcre.org/
./configure
make
sudo make install
4. 下载appache httpd-2.4.7.tar.gz
./configure
make
sudo make install
二、配置apache
三、运行apache
sudo su
export LD_LIBRARY_PATH=/usr/local/lib
/usr/local/apache2/bin/apachectl start
apachectl restart
apachectl stop
四、验证:
浏览器中打开
http://localhost:80
五、下载http client curl-7.34.0.tar.gz
./configure
make
cd curl-7.34.0/docs/examples
make
make http-post
/*http-post 是一个http client 的测试程序*/
multi.c中的 multi_runsingle()函数会打印返回的文本
http-post.c 中添加http user-agent 字段,标示终端type
curl_easy_setopt(curl, CURLOPT_USERAGENT, "pad");
六、下载指定url 到文件中:
cd curl-7.34.0/docs/examples
url2file 会将指定url 下载到文件page.out 文件中
./url2file url
0 0
- 编译appche http server:
- web 服务器 appche
- 不用编译修改Tomcat 内置HTTP Server的默认Banner
- 在Linux上编译安装apache http server
- appche kudu 安装简单步骤
- 下载编译安装Apache HTTP Server 2.4.23以及配置HTTP/HTTPS反向代理
- HTTP SERVER
- http server
- http-server
- http-server
- centos7 配置 php mysql appche 环境
- go http client, http server
- HTTP Server和Application Server
- SVN+Apache HTTP Server
- Apache HTTP Server使用指南
- IBM HTTP Server
- About IBM HTTP Server
- 自己动手写 HTTP Server
- Nginx安装
- php中print_r、var_dump和var_export几个函数的用法区别
- UltraEdit 操作小技巧--一次性修改多列
- 如何让网站被百度快速收录
- onMeasure(int widthMeasureSpec, int heightMeasureSpec)
- 编译appche http server:
- 8、手机防盗--通过拨号进入手机防盗
- MFC中通过Tooltip类来实现悬浮鼠标显示提示信息
- jfinal拦截器
- 简单的WebService编写与调用
- android 屏幕截屏源码分享
- 10 款优秀的在线 JavaScript 工具推荐
- MATLAB内存管理
- MyEclipse6.5 @Override 时出错误 The method of type must override a superclass method