1. Trang chủ
  2. » Công Nghệ Thông Tin

tao du an voi dotnetnuke

5 211 2
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề DotNetNuke Web Application Framework
Trường học Not Available
Chuyên ngành Web Development
Thể loại Tài liệu hướng dẫn
Năm xuất bản Not Available
Thành phố Not Available
Định dạng
Số trang 5
Dung lượng 81 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Khi bạn chọn các tùy chọn mặc định cho việc tạo ra một dự án web trong Visual Studio 2005 chọn "File System" như các điểm: cho trang web của bạn và muốn sử dụng mặc định SQL Server 2005

Trang 1

DotNetNuke® Web Application Framework

(DotNetNukeWebsiteTest)

DotNetNuke ® Web

Application Framework

(DotNetNukeWebsiteTest)

Introduction Giới thiệu

Congratulations! Lời chúc mừng!

You have created your own DotNetNuke project Please take a few minutes to read this document, as it will help you install and configure your new website Bạn đã tạo ra dự án riêng của DotNetNuke của bạn Vui lòng mất một vài phút để đọc tài liệu này, Vì nó sẽ giúp bạn cài đặt và cấu hình trang web mới của bạn

Quick Installation Cài đặt nhanh

In order to make your experience with DotNetNuke as productive as possible, we have optimized the number of installation steps required for web developers

Để làm cho kinh nghiệm của bạn với DotNetNuke như là năng suất nhất có thể, chúng tôi đã được tối ưu hóa số lượng các bước cài đặt cần thiết cho các nhà phát triển web

As long as you selected the default options for creating a web project in Visual Studio 2005 ( selected "File System" as the Location: for your website ) and want

to use the default SQL Server 2005 Express database included with the

application, you simpy need to press Ctrl-F5 (ie hold the Ctrl key down while

clicking on the F5 function key) in order to complete your installation

Khi bạn chọn các tùy chọn mặc định cho việc tạo ra một dự án web trong Visual Studio 2005 (chọn "File System" như các điểm: cho trang web của bạn) và muốn

sử dụng mặc định SQL Server 2005 Express bao gồm trong cơ sở dữ liệu ứng

dụng, bạn cần simpy để nhấn Ctrl-F5 (ie giữ phím Ctrl xuống trong khi nhấn

vào phím chức năng F5) để hoàn tất cài đặt của bạn

The application may take a few minutes to build and you may find it useful to monitor the build progress output ( select View / Output or CTRL-ALT-O within Visual Studio 2005 )

Trang 2

Các ứng dụng có thể mất vài phút để xây dựng và bạn có thể tìm thấy nó hữu ích

để theo dõi tiến độ xây dựng đầu ra (chọn View / Output hoặc Ctrl-Alt-O trong Visual Studio 2005)

When your web browser loads the initial Installation screen, you must choose

the Auto Installation option to successfully complete the process.

Khi trang web tải màn hình cài đặt ban đầu trình duyệt của bạn, bạn phải chọn

tùy chọn cài đặt tự động để hoàn thành quá trình.

Advanced Installation

For those developers are not satisfied with the default options used in the Quick Installation option above or perhaps want a little more control over the

installation process, we have included Advanced Installation instrustions to cover the most common customizations

Đối với những nhà phát triển không hài lòng với các tùy chọn mặc định được sử dụng trong các tùy chọn cài đặt nhanh trên hoặc có lẽ muốn có một chút quyền kiểm soát nhiều hơn đối với quá trình cài đặt, chúng tôi đã bao gồm instrustions cài đặt nâng cao để trang trải các tuỳ chỉnh phổ biến nhất

o Create/Configure a SQL Server Database Tạo / Cấu hình một cơ sở

dữ liệu SQL Server

o Edit the SQL Server Connection String in web.config Chỉnh sửa các SQL Server Connection String trong web.config

o Configure your WebServer Cấu hình của bạn WebServer

o Configure NTFS File Permissions Cấu hình NTFS File Permissions

o Choose a site template Chọn một trang mẫu

o Install DotNetNuke Cài đặt DotNetNuke

1 Create/Configure Database - Tạo / Định cấu hình Cơ

sở dữ liệu

DotNetNuke is a dynamic web application; therefore, you must create/configure a Database The default connection string provided assumes that you will be using

a SQL Server 2005 Express database file called Database.mdf

DotNetNuke là một ứng dụng web động, do vậy, bạn phải tạo / cấu hình một cơ

sở dữ liệu Kết nối mặc định chuỗi cung cấp giả định rằng bạn sẽ sử dụng một SQL Server 2005 Express cơ sở dữ liệu tập tin tên Database.mdf

Data Source=.\SQLExpress; Data Source = \ SQLExpress;

Integrated Security=True; Integrated Security = True;

User Instance=True; Người sử dụng sơ thẩm = True;

AttachDBFilename=|DataDirectory|Database.mdf; Database = | DataDirectory | Database.mdf;

If you would like instructions on creating a SQL Server Express 2005 Database file with a different name then see SQL Server 2005 Express Configuration Nếu bạn muốn hướng dẫn về việc tạo một SQL Server Express 2005 Cơ sở dữ liệu tập tin với một tên khác nhau sau đó xem SQL Server 2005 Express Configuration

Trang 3

If you would like to use a standard SQL Server 2000 or SQL Server 2005

Database then you will need to create and configure one before proceeding You will also need to decide on the credentials used to access the Database you

created You can use Integrated Security (credentials based on your Windows User Account), or you can use SQL Server's own security Again, the default connection string assumes the latter For more information, on setting up a SQL Server Database see SQL Server 2000 Configuration or SQL Server 2005

Configuration

Nếu bạn muốn sử dụng một chuẩn SQL Server 2000 hoặc SQL Server 2005 Cơ sở

dữ liệu thì bạn sẽ cần phải tạo và một cấu hình trước khi tiếp tục Bạn cũng cần phải quyết định việc trọng được sử dụng để truy cập vào cơ sở dữ liệu bạn tạo ra Bạn có thể sử dụng Integrated Security (chứng chỉ dựa trên Windows của người dùng tài khoản của bạn), hoặc bạn có thể sử dụng an ninh của chính SQL

Server's Một lần nữa, chuỗi kết nối mặc định các giả định sau này Để biết thêm thông tin, vào xây dựng cơ sở dữ liệu SQL Server xem SQL Server 2000 Cấu hình hoặc SQL Server 2005 Cấu hình

2 Edit the Connection String in web.config

Chỉnh sửa String kết nối trong web.config

Once you have created your database you will need to hook up the connection string in web.config

Một khi bạn đã tạo ra cơ sở dữ liệu của bạn, bạn sẽ cần phải treo lên chuỗi kết nối trong web.config

There are TWO places in web.config where you need to verify the connection

string In the <connectionStrings> node:

Có HAI nơi trong web.config nơi bạn cần phải xác minh các chuỗi kết nối Trong

nút <connectionStrings> và dưới nút <appSettings>

(Note that the connection string attributes includes line-breaks to make them more readable - the actual string must be on one line.)

(Lưu ý rằng các chuỗi kết nối các thuộc tính bao gồm các dòng-vỡ để làm cho chúng dễ đọc hơn - chuỗi thực tế phải được trên một dòng.)

The examples shown above are for the default SQL Server 2005 Express

database file "Database.mdf" If you used a different filename for the database

file, you need to change the AttachDBFilename=|DataDirectory|Database.mdf;

section

Các ví dụ được hiển thị bên trên là dành cho các máy chủ mặc định tập tin cơ sở

dữ liệu SQL 2005 Express "Database.mdf" Nếu bạn Được sử dụng một tên tập tin

khác nhau cho các tập tin cơ sở dữ liệu, bạn cần phải thay đổi Database = |

DataDirectory | Database.mdf; phần.

To use a SQL Server 2000 or 2005 database replace the whole connection string

by something similar to

Trang 4

Để sử dụng một cơ sở dữ liệu SQL Server 2000 hay 2005 thay thế các chuỗi kết nối toàn bộ bằng một cái gì đó tương tự như

Server=(local);Database=DatabaseName;uid=LoginName;pwd=LoginPassword; Server = (địa phương); Cơ sở dữ liệu = DatabaseName; uid = LOGINNAME; pwd

= LoginPassword;

3 Configure the Web Server - Cấu hình máy chủ web

For the most part, you should not need to configure your web server It does not matter whether you selected the File System (default) or HTTP (IIS) as the

Location: for your web server

Đối với hầu hết các phần, bạn không nên cần phải cấu hình máy chủ web của bạn Nó không quan trọng cho dù bạn chọn hệ thống tập tin (mặc định) hoặc HTTP (IIS) như là điểm: cho máy chủ web của bạn

In either case the default configurations should work In fact the File System web server has no configuration options However, if you would like further

information on configuring IIS please see Configuring Internet Information Server (IIS)

Trong cả hai trường hợp các cấu hình mặc định nên làm việc Trong thực tế, các tập tin hệ thống máy chủ web không có tùy chọn cấu hình Tuy nhiên, nếu bạn muốn biết thêm thông tin về cách cấu hình IIS xin vui lòng xem cấu hình Internet Information Server (IIS)

4 Configure NTFS File Permissions - Cấu hình NTFS File Permissions

If you created your new project using the HTTP option (IIS) then you need to set the permissions for the System Account used by ASP.NET This step is not

neccessary if you used the File System (default) option to create your new site Nếu bạn đã tạo dự án mới của bạn bằng cách sử dụng tùy chọn HTTP (IIS) thì bạn cần phải thiết lập cho phép cho các tài khoản hệ thống được sử dụng bởi ASP.NET Bước này là không cần thiết nếu bạn sử dụng các hệ thống file (mặc định) tùy chọn để tạo ra trang web mới của bạn

The NETWORK SERVICE account (Windows 2003) or the ASPNET account

(Windows 2000) must be given Full Control on the Virtual Directory you are using For more information see NTFS Permissions Configuration Các DỊCH VỤ MẠNG tài khoản (Windows 2003) hoặc tài khoản ASPNET (Windows 2000) phải được kiểm soát đầy đủ về mục ảo mà bạn đang sử dụng Để biết thêm thông tin xem NTFS Permissions Configuration

5 Choose a Site Template - Chọn một Tiêu bản trang web

DotNetNuke installations use a template to determine what content gets loaded when the site is first created There are 4 templates available

Trang 5

DotNetNuke cài đặt sử dụng một khuôn mẫu để xác định những nội dung được tải khi các trang web được tạo ra lần đầu tiên có 4 Mẫu có sẵn

o DotNetNuke (default) DotNetNuke (mặc định)

o PersonalCá nhân

o Club Câu lạc bộ

o Small Business Doanh nghiệp nhỏ

Under normal circumstances you do not need to do anything ( the site will install using the default template ), but if you would like to install based on one of the alternate templates, or would like more information on templates see Configuring the Install Template

Trong những trường hợp bình thường bạn không cần phải làm bất cứ điều gì (các trang web sẽ cài đặt bằng cách sử dụng mặc định mẫu), nhưng nếu bạn muốn cài đặt dựa trên một trong những mẫu thay thế, hoặc muốn biết thêm thông tin về mẫu xem Cấu hình Tiêu bản cài đặt

6 Install DotNetNuke - Cài đặt DotNetNuke

If you have completed the steps above, you are now ready to install your new DotNetNuke site To install the site press Ctrl-F5 (ie hold the Ctrl key down while clicking on the F5 function key)

Nếu bạn đã hoàn thành các bước trên, bạn đã sẵn sàng để cài đặt trang web mới của bạn DotNetNuke Để cài đặt các trang web bấm Ctrl-F5 (tức là Giữ phím Ctrl xuống trong khi nhấn vào phím chức năng F5)

The application may take a few minutes to build if this is your first installation Các ứng dụng có thể mất vài phút để xây dựng nếu đây là lần đầu tiên cài đặt của bạn

In order to view the build progress you should select View / Output ( CTRL- ALT-O) from Visual Studio 2005

Để xem tiến độ xây dựng, bạn nên chọn View /

Output (Ctrl-Alt-O) từ Visual Studio 2005

Further Resources Hơn nữa nguyên

The information in this page is only an overview of the DotNetNuke® Web

Application Framework Thông tin trong trang này chỉ là một tổng quan về

DotNetNuke ® Web Application Framework For more information, visit

www.dotnetnuke.com Để biết thêm thông tin, hãy truy cập

www.dotnetnuke.com

Ngày đăng: 16/03/2014, 22:38

TỪ KHÓA LIÊN QUAN

w