从其站点(http://lucee.org/downloads.html)下载适当的文件并执行其安装程序
wget http://cdn.lucee.org/downloader.cfm/id/155/file/lucee-5.0.0.252-pl0-linux-x64-installer.run sudo chmod +x lucee-5.0.0.252-pl0-linux-x64-installer.run sudo ./lucee-5.0.0.252-pl0-linux-x64-installer.run
逐步完成安装程序。
在服务器上安装Nginx
sudo apt-get install nginx
编辑您的/ etc / nginx / sites-available / default
server {
listen 80;
server_name _;
root /opt/lucee/tomcat/webapps/ROOT;
indexindex.cfmindex.html index.htm;
#Lucee Admin should always proxy to Lucee
location /lucee {
include lucee.conf;
}
#Pretty URLs
location / {
try_files $uri /index.cfm$uri?$is_args$args;
include lucee.conf;
}
location ~ \.cfm {
include lucee.conf;
}
location ~ \.cfc {
include lucee.conf;
}
}编辑/etc/nginx/lucee.conf
proxy_pass http://127.0.0.1:8888; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;
重新加载nginx
sudo service nginx reload
在此处访问Lucee Server管理员:
127.0.0.1/lucee/admin/server.cfm
要么
127.0.0.1:8888/lucee/admin/server.cfm
您的根Web目录位于此处:
/opt/lucee/tomcat/webapps/ROOT
从他们的网站(https://www.adobe.com/products/coldfusion/download-trial/try.html)下载适当的文件并执行其安装程序
wget <URL>/ColdFusion_2016_WWEJ_linux64.bin sudo chmod +x ColdFusion_2016_WWEJ_linux64.bin sudo ./ColdFusion_2016_WWEJ_linux64.bin
逐步完成安装程序。确保选择内部Web服务器(端口8500)
在服务器上安装Nginx
sudo apt-get install nginx
编辑您的/ etc / nginx / sites-available / default
server {
listen 80;
server_name _;
root /opt/coldfusion2016/cfusion/wwwroot;
indexindex.cfmindex.html index.htm;
location / {
try_files $uri $uri/ =404;
}
location ^~ /CFIDE/administrator {
deny all;
}
location ~* \.(cfm|cfml|cfc|html)$ {
include /etc/nginx/conf/dc_tomcat_connector.conf;
}
location ^~ /rest {
include tomcatconf;
}
}编辑/etc/nginx/tomcat.conf
proxy_pass http://127.0.0.1:8500; proxy_set_header Host $host; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $http_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr;
重新加载nginx
sudo service nginx reload
在此处访问Adobe ColdFusion Server管理员:
127.0.0.1:8500/CFIDE/administrator/index.cfm
您的根Web目录位于此处:
/opt/coldfusion2016/cfusion/wwwroot