摘要:
vim /usr/local/tomcat/conf/server.xml #编辑配置文件 增加虚拟主机,编辑server.xml,在</Host>下面增加如下内容 <Host name="www.test.com" appBase="" unpackWARs= "true" autoDeploy= 阅读全文
posted @ 2017-12-17 17:22
冉冉冉冉冉。
阅读(174)
评论(0)
推荐(0)
摘要:
vim /usr/local/tomcat/conf/server.xml #编辑TOMCAT的配置文件 搜索8080 如果发现80端口被其他web程序占用了, 关闭它 阅读全文
posted @ 2017-12-17 16:30
冉冉冉冉冉。
阅读(168)
评论(0)
推荐(0)
摘要:
一、安装JDK 到官网网站下载jdk包 http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 这里下载一个包 可以从windows 上上传文件到linux中 yum -y install 阅读全文
posted @ 2017-12-17 16:16
冉冉冉冉冉。
阅读(179)
评论(0)
推荐(0)
摘要:
一、配置test.com.conf配置文件 添加下面代码 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)${ expires 7d; access_log off; } location ~ .*\.(js|css)${ expires 12h; access_l 阅读全文
posted @ 2017-12-17 13:08
冉冉冉冉冉。
阅读(1447)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2017-12-17 12:14
冉冉冉冉冉。
阅读(185)
评论(0)
推荐(0)
摘要:
修改(二)的test.com.conf配置文件 server{ listen 80; server_name test.com test2.com test3.com; #多添加几个域名 index index.html index.htm index.php; root /data/wwwroot 阅读全文
posted @ 2017-12-17 11:55
冉冉冉冉冉。
阅读(501)
评论(0)
推荐(0)
摘要:
vim /usr/local/nginx/conf/vhost/test.com.conf #添加一个虚拟主机配置文件 添加下面内容 server {listen 80;server_name test.com;index index.html index.htm index.php;root /d 阅读全文
posted @ 2017-12-17 11:38
冉冉冉冉冉。
阅读(246)
评论(1)
推荐(0)
摘要:
一、修改nginx.conf配置文件 mkdir /usr/local/ngxin/conf/vhost #创建vhost 子目录 vim /usr/local/ngxin/conf/vhost/aaa.com.conf #编辑一个文件 添加下面内容 server{ listen 80 defaul 阅读全文
posted @ 2017-12-17 10:32
冉冉冉冉冉。
阅读(293)
评论(0)
推荐(0)

浙公网安备 33010602011771号