coldfusion 튜토리얼
coldfusion 시작하기
수색…
비고
이 섹션에서는 coldfusion이 무엇인지, 그리고 개발자가 왜 그것을 사용하고 싶어하는지에 대한 개요를 제공합니다.
또한 coldfusion 내에서 큰 주제를 언급하고 관련 주제에 링크해야합니다. coldfusion에 대한 문서는 새로운 것이므로 관련 주제의 초기 버전을 만들어야 할 수도 있습니다.
버전
| 번역 | 출시일 |
|---|---|
| 콜드 퓨전 버전 1.0 | 1995-07-02 |
| Cold Fusion 버전 1.5 | 1996-01-01 |
| 콜드 퓨전 버전 2.0 | 1996-10-01 |
| 콜드 퓨전 버전 3.0 | 1997-06-01 |
| 콜드 퓨전 버전 3.1 | 1998-01-01 |
| ColdFusion 버전 4.0 | 1998-11-01 |
| ColdFusion 버전 4.5.1 | 1999-11-01 |
| ColdFusion 버전 5.0 | 2001-06-01 |
| ColdFusion MX 버전 6.0 | 2002-05-01 |
| ColdFusion MX 버전 6.1 | 2003-07-01 |
| ColdFusion MX 7 | 2005-02-07 |
| ColdFusion 8 | 2007-07-30 |
| ColdFusion 9 | 2009-10-05 |
| ColdFusion 10 | 2012-05-15 |
| ColdFusion 11 | 2014-04-29 |
| ColdFusion 2016 | 2016-02-16 |
설치 또는 설정
Linux (Ubuntu) 설치
Lucee (오픈 소스)
ColdFusion / CFML 인터프리터
해당 사이트 ( 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
서버에 Nginx를 설치하십시오.
sudo apt-get install nginx
/ etc / nginx / sites-available / default를 편집하십시오.
server {
listen 80;
server_name _;
root /opt/lucee/tomcat/webapps/ROOT;
index index.cfm index.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
루트 웹 디렉토리는 여기에 있습니다.
/opt/lucee/tomcat/webapps/ROOT
Adobe (폐쇄 소스)
ColdFusion / CFML 인터프리터
해당 사이트 ( 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
설치 프로그램을 통해 단계를 수행하십시오. 내부 웹 서버 (포트 8500)를 선택했는지 확인하십시오.
Nginx
서버에 Nginx를 설치하십시오.
sudo apt-get install nginx
/ etc / nginx / sites-available / default를 편집하십시오.
server {
listen 80;
server_name _;
root /opt/coldfusion2016/cfusion/wwwroot;
index index.cfm index.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 서버 관리자에 액세스하십시오.
127.0.0.1:8500/CFIDE/administrator/index.cfm
루트 웹 디렉토리는 여기에 있습니다.
/opt/coldfusion2016/cfusion/wwwroot
안녕하세요 세계
파일 : test.cfm
태그 구현
<cfoutput>Hello World!</cfoutput> CFScript 구현
<cfscript>
writeOutput("Hello World!");
</cfscript>