tomcat哪个版本比较好 和xam pp哪个好用

在工作台目录下找到&项目的文件夹&/.settings/org.mon.project.facet.core.xml
打开后,显示
&?xml version=&1.0& encoding=&UTF-8&?&
&faceted-project&
&runtime name=&Apache Tomcat v7.0&/&&
& &fixed facet=&jst.web&/&
& &fixed facet=&java&/&
& &fixed facet=&wst.jsdt.web&/&
& &installed facet=&java& version=&1.7&/&
& &installed facet=&jst.web& version=&2.5&/&
& &installed facet=&wst.jsdt.web& version=&1.0&/&
&/faceted-project&
删除&runtime name=&Apache Tomcat v7.0&/& ,即可
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:26次
排名:千里之外
(window.slotbydup = window.slotbydup || []).push({
id: '4740887',
container: s,
size: '250,250',
display: 'inlay-fix'Nginx和tomcat无缝整合 - 服务器技术 - 中国软件人论坛
我的图书馆
Nginx和tomcat无缝整合 - 服务器技术 - 中国软件人论坛
Nginx和tomcat无缝整合
Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器,也是一个
IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru
站点开发的,它已经在该站点运行超过两年半了。 Igor 将源代码以类 BSD 许可证的形式发布。尽管还是测试版,但是,Nginx
已经因为它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名了。
选择Nginx主要考虑到搞并发和负载均衡。
设置192.168.1.10的hosts
vi /etc/hosts
192.168.1.10& & test.
192.168.1.10& & test.
一、Nginx安装
设置Nginx监听和Nginx安装目录
http://sysoev.ru/nginx/nginx-0.6.36.tar.gz
# tar zxvf nginx-0.6.36.tar.gz
# cd nginx-0.6.36
# ./configure --with-http_stub_status_module
–prefix=/usr/local/nginx
# make install
二、Nginx设置
worker_processes&&2;
#error_log&&logs/error.
#error_log&&logs/error.log&&
error_log&&logs/error.log&&
#pid& && &&&logs/nginx.
& & worker_connections&&1024;
& & include& && & mime.
& & default_type&&application/octet-
& & #log_format&&main&&'$remote_addr - $remote_user
[$time_local] $request '
& & #& && && && && && &'"$status" $body_bytes_sent
"$http_referer" '
& & #& && && && && && &'"$http_user_agent"
"$http_x_forwarded_for"';
& & #access_log&&logs/access.log&&
& & sendfile& && &&&
& & #tcp_nopush& &&&
& & #keepalive_timeout&&0;
& & keepalive_timeout&&65;
& & #gzip&&
& & #upstream servers {
& & #& & & &&&server 192.168.1.10:8080 weight=10;
& & #& & & &&&server 192.168.1.101:8080 weight=1;
& & server {
& && &&&listen& && & 80;
& && &&&server_name test.;
& && &&&#charset koi8-r;
& & & & charset utf-8;
& && &&&#access_log&&logs/host.access.log&&
& && &&&location / {
& && && && &root& &
& && && && &index&&index.html index.htm index.
& & & && &&&proxy_pass& && &&&http://test.:8080;
& & & && &&&#proxy_pass& && &&&http://
& && &&&#error_page&&404& && && && &&&/404.
& && &&&# redirect server error pages to the static page
& && &&&error_page& &500 502 503 504&&/50x.
& && &&&location = /50x.html {
& && && && &root& &
& & & & location ~ ^/NginxStatus/ {
& & & && &&&stub_
& & & && &&&access_
& & & & #location ~
\.(htm|html|gif|jpg|jpeg|png|bmp|ico|rar|css|js|zip|java|jar|txt|flv|swf|mid|doc|ppt|xls|pdf|txt|mp3|wma)$
& && &&&#& & root /usr/local/tomcat/webapps/
& & & & #& & expires 24h;
& && &&&#}
& && &&&# proxy the PHP scripts to Apache listening on
127.0.0.1:80
& && &&&#location ~ \.jsp$ {
& && &&&#& & #proxy_pass& &http://test.:8080;
& & & & #& & proxy_pass& &http://
& && &&&#}
& && &&&# pass the PHP scripts to FastCGI server listening on
127.0.0.1:9000
& && &&&#location ~ \.php$ {
& && &&&#& & root& && && &&&
& && &&&#& & fastcgi_pass& &127.0.0.1:9000;
& && &&&#& & fastcgi_index&&index.
& && &&&#& &
fastcgi_param&&SCRIPT_FILENAME&&/scripts$fastcgi_script_
& && &&&#& & include& && &&&fastcgi_
& && &&&#}
& && &&&# deny access to .htaccess files, if Apache's document
& && &&&# concurs with nginx's one
& && &&&#location ~ /\.ht {
& && &&&#& & deny&&
& && &&&#}
& & # another virtual host using mix of IP-, name-, and
port-based configuration
& & server {
& && &&&listen& && & 80;
& && &&&server_name&&test.;
& && &&&location / {
& && && && &root& &
& && && && &index&&index.html index.
& & & && &&&proxy_pass& && & http://test.:8080;
& && &&&location ~
\.(htm|html|gif|jpg|jpeg|png|bmp|ico|rar|css|js|zip|java|jar|txt|flv|swf|mid|doc|ppt|xls|pdf|txt|mp3|wma)$
& && && && &root /usr/local/tomcat/webapps/
& && && && &expires 24h;
& & server {
& && &&&listen& && & 80;
& && &&&server_name&&ppsea.gicp.
& && &&&location / {
& && && && &root& &
& && && && &index&&index.html index.
& & & && &&&proxy_pass& && & http://192.168.1.10:82;
& & }& & & &
& & # HTTPS server
& & #server {
& & #& & listen& && & 443;
& & #& & server_name&&
& & #& & ssl& && && && && && &
& & #& & ssl_certificate& && &cert.
& & #& & ssl_certificate_key&&cert.
& & #& & ssl_session_timeout&&5m;
& & #& & ssl_protocols&&SSLv2 SSLv3 TLSv1;
ssl_ciphers&&ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
& & #& & ssl_prefer_server_ciphers& &
& & #& & location / {
& & #& && &&&root& &
& & #& && &&&index&&index.html index.
& & #& & }
使用8080端口,tomcat的server.xml的host中配置了2个域名test.和
test.分别对应2个项目.使用浏览器访问test.进行测试,成功访问到tomcat,Nginx做
TA的推荐TA的最新馆藏[转]&[转]&[转]&[转]&
喜欢该文的人也喜欢apache-tomcat11喜欢的音乐 - 歌单 - 网易云音乐
apache-tomcat11喜欢的音乐
播放:110次
网易云音乐多端下载
同步歌单,随时畅听320k好音乐
网易公司版权所有(C)杭州乐读科技有限公司运营:

我要回帖

更多关于 tomcat那个版本好用 的文章

 

随机推荐