Nginx和Tomcat安装记录
来源:互联网 发布:网络回合制游戏 编辑:程序博客网 时间:2024/06/05 01:57
Nginx安装:
1. 下载 Nginx: http://nginx.org/en/download.html
2. 解压缩Nginx,执行如下命令:
cd nginx-1.7.7/
./configure
3. configure出错,需要安装PCRE
4. 下载PCRE:http://sourceforge.net/projects/pcre/files/
5. 在/usr/local下解压缩并编译安装:
./configure--prefix=/usr/local/pcre
make
make install
6. 重新尝试安装 Nginx:
(./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/[ pcre源代码目录 ])
./configure--prefix=/usr/local/nginx --with-pcre=/usr/local/pcre-8.36--with-http_ssl_module --with-openssl=/usr/local/openssl-1.0.1j
提示没有openssl支持
make
make install
7. 下载openssl: http://www.openssl.org/source/
8. 安装openssl, 命令如下:
./config shared zlib
make
make test
make install
ls -alt /usr/bin/openssl
mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/include/openssl /usr/include/openssl.old
find / -name libssl.so -print
mv /usr/lib64/libssl.so /usr/lib64/libssl.so.old
ln -s/usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s/usr/local/ssl/include/openssl /usr/include/openssl
ln -sv/usr/local/ssl/lib/libssl.so.1.0.0 /usr/lib64/libssl.so
9. 再次重新配置编译nginx, 命令如上步骤【6】所示。
10.启动nqinx:
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
11. 访问机器的80端口,如果网页提示“Welcometo nginx”, 则安装部署nginx成功。
Tomcat安装 :
1. 下载tomcat: http://tomcat.apache.org/download-80.cgi
2. 解压缩并放在/usr/local目录下
mv/home/tucson/Downloads/apache-tomcat-8.0.14 /usr/local/apache-tomcat
cd /usr/local/apache-tomcat/bin
3. 启动: ./catalina.sh start
4. 在浏览器中输入http://192.168.112.128:8080, 能看到tomcat主页即为成功。
IT人的微信自媒体--- 杰天空, 走在寻找创意的路上
发掘创意,点缀生活,品味人生。
请搜索微信订阅号: jksy_studio ,或者微信扫描下图二维码添加关注
杰天空静候您的光临。
- Nginx和Tomcat安装记录
- nginx学习记录--安装和转发到tomcat
- nginx安装和nginx、tomcat集群配置
- windows下的nginx安装和配置及与tomcat关联配置记录
- Linux nginx安装和对tomcat配置
- Tomcat 5.0 安装和配置记录
- CentOS7安装MySQL、Tomcat和GitBlit记录
- nginx + tomcat + redis问题记录
- Nginx 安装记录
- nginx+memcache安装记录
- nginx服务器安装记录
- nginx服务器安装记录
- nginx安装配置记录
- nginx安装配置记录
- nginx 安装记录
- nginx安装记录
- nginx tomcat集群安装
- nginx安装&tomcat集群
- Java I/O读取键盘输入/编码格式
- scp
- eclipse使用国内镜像站点安装插件
- Testing the CATCHER
- 采用链地址法处理冲突构造哈希表
- Nginx和Tomcat安装记录
- JQuery基础核心
- hdu 4790 Just Random
- The things need to be done after installed Ubuntu
- Android 使用Intent 在Activity 间跳转
- POJ2251Dungeon Master&&nyoj523亡命逃窜
- 谷歌分析大数据怎么它就这么快?
- 如何使用st官网的库文件开发项目详细教程
- 調用webservice時出現HTTP狀態417:Expectation Failed的解決方法