1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-17 07:45:52 +01:00
verdaccio/website/translated_docs/vi/iis-server.md
verdacciobot 90ed2701fb New Crowdin translations (#994)
* New translations ci.md (Hindi)
docs(website): new translations

* New translations what-is-verdaccio.md (Hindi)
docs(website): new translations

* New translations node-api.md (Hindi)
docs(website): new translations

* New translations windows.md (Hindi)
docs(website): new translations

* New translations web.md (Hindi)
docs(website): new translations

* New translations use-cases.md (Hindi)
docs(website): new translations

* New translations uplinks.md (Hindi)
docs(website): new translations

* New translations test.md (Hindi)
docs(website): new translations

* New translations ssl.md (Hindi)
docs(website): new translations

* New translations server.md (Hindi)
docs(website): new translations

* New translations repositories.md (Hindi)
docs(website): new translations

* New translations auth.md (Hindi)
docs(website): new translations

* New translations protect-your-dependencies.md (Hindi)
docs(website): new translations

* New translations plugins.md (Hindi)
docs(website): new translations

* New translations packages.md (Hindi)
docs(website): new translations

* New translations notifications.md (Hindi)
docs(website): new translations

* New translations logger.md (Hindi)
docs(website): new translations

* New translations kubernetes.md (Hindi)
docs(website): new translations

* New translations install.md (Hindi)
docs(website): new translations

* New translations iis-server.md (Hindi)
docs(website): new translations

* New translations docker.md (Hindi)
docs(website): new translations

* New translations dev-plugins.md (Hindi)
docs(website): new translations

* New translations contributing.md (Hindi)
docs(website): new translations

* New translations config.md (Hindi)
docs(website): new translations

* New translations cli.md (Hindi)
docs(website): new translations

* New translations build.md (Hindi)
docs(website): new translations

* New translations en.json (Hindi)
docs(website): new translations

* New translations auth.md (Polish)
docs(website): new translations

* New translations auth.md (Polish)
docs(website): new translations

* New translations build.md (Polish)
docs(website): new translations

* New translations cli.md (Polish)
docs(website): new translations

* New translations ci.md (Polish)
docs(website): new translations

* New translations chef.md (Polish)
docs(website): new translations

* New translations config.md (Spanish)
docs(website): new translations

* New translations config.md (Spanish)
docs(website): new translations

* New translations config.md (Polish)
docs(website): new translations

* New translations config.md (Polish)
docs(website): new translations

* New translations config.md (Polish)
docs(website): new translations

* New translations config.md (Polish)
docs(website): new translations

* New translations contributing.md (Polish)
docs(website): new translations

* New translations contributing.md (Polish)
docs(website): new translations

* New translations dev-plugins.md (Polish)
docs(website): new translations

* New translations dev-plugins.md (Polish)
docs(website): new translations

* New translations dev-plugins.md (Polish)
docs(website): new translations

* New translations dev-plugins.md (Polish)
docs(website): new translations

* New translations iis-server.md (Polish)
docs(website): new translations

* New translations config.md (Spanish)
docs(website): new translations

* New translations config.md (Spanish)
docs(website): new translations

* New translations config.md (Spanish)
docs(website): new translations

* New translations logo.md (Spanish)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations web.md (Spanish)
docs(website): new translations

* New translations logo.md (Spanish)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations docker.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations dev-plugins.md (Spanish)
docs(website): new translations

* New translations en.json (Italian)
docs(website): new translations

* New translations en.json (Polish)
docs(website): new translations

* New translations en.json (Vietnamese)
docs(website): new translations

* New translations en.json (Russian)
docs(website): new translations

* New translations en.json (Korean)
docs(website): new translations

* New translations en.json (Portuguese)
docs(website): new translations

* New translations en.json (Spanish)
docs(website): new translations

* New translations en.json (Portuguese, Brazilian)
docs(website): new translations

* New translations en.json (Arabic)
docs(website): new translations

* New translations en.json (Chinese Simplified)
docs(website): new translations

* New translations en.json (Japanese)
docs(website): new translations

* New translations en.json (French)
docs(website): new translations

* New translations en.json (German)
docs(website): new translations

* New translations en.json (Hindi)
docs(website): new translations

* New translations en.json (Polish)
docs(website): new translations

* New translations iis-server.md (Polish)
docs(website): new translations

* New translations iis-server.md (Polish)
docs(website): new translations

* New translations iis-server.md (Polish)
docs(website): new translations

* New translations iis-server.md (Polish)
docs(website): new translations

* New translations install.md (Polish)
docs(website): new translations

* New translations kubernetes.md (Polish)
docs(website): new translations

* New translations kubernetes.md (Polish)
docs(website): new translations

* New translations logger.md (Polish)
docs(website): new translations

* New translations notifications.md (Polish)
docs(website): new translations

* New translations packages.md (Polish)
docs(website): new translations

* New translations node-api.md (Polish)
docs(website): new translations

* New translations logo.md (Polish)
docs(website): new translations

* New translations config.md (Polish)
docs(website): new translations

* New translations docker.md (Russian)
docs(website): new translations

* New translations docker.md (Russian)
docs(website): new translations

* New translations docker.md (Russian)
docs(website): new translations

* New translations docker.md (Russian)
docs(website): new translations

* New translations docker.md (Russian)
docs(website): new translations

* New translations docker.md (Russian)
docs(website): new translations

* New translations iis-server.md (Russian)
docs(website): new translations

* New translations iis-server.md (Russian)
docs(website): new translations

* New translations iis-server.md (Russian)
docs(website): new translations

* New translations en.json (Korean)
docs(website): new translations

* New translations en.json (Korean)
docs(website): new translations

* New translations en.json (Korean)
docs(website): new translations

* New translations en.json (Korean)
docs(website): new translations

* New translations iis-server.md (Russian)
docs(website): new translations

* New translations iis-server.md (Russian)
docs(website): new translations

* New translations iis-server.md (Russian)
docs(website): new translations

* New translations install.md (Russian)
docs(website): new translations

* New translations install.md (Russian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Korean)
docs(website): new translations

* New translations contributing.md (Vietnamese)
docs(website): new translations

* New translations contributing.md (Hindi)
docs(website): new translations

* New translations contributing.md (Portuguese)
docs(website): new translations

* New translations contributing.md (Russian)
docs(website): new translations

* New translations contributing.md (Spanish)
docs(website): new translations

* New translations contributing.md (Arabic)
docs(website): new translations

* New translations contributing.md (Chinese Simplified)
docs(website): new translations

* New translations contributing.md (Portuguese, Brazilian)
docs(website): new translations

* New translations contributing.md (Japanese)
docs(website): new translations

* New translations contributing.md (Polish)
docs(website): new translations

* New translations contributing.md (French)
docs(website): new translations

* New translations contributing.md (German)
docs(website): new translations

* New translations logger.md (Italian)
docs(website): new translations

* New translations logger.md (Korean)
docs(website): new translations

* New translations logger.md (Polish)
docs(website): new translations

* New translations logger.md (Vietnamese)
docs(website): new translations

* New translations logger.md (Hindi)
docs(website): new translations

* New translations logger.md (Portuguese)
docs(website): new translations

* New translations logger.md (Russian)
docs(website): new translations

* New translations logger.md (Spanish)
docs(website): new translations

* New translations logger.md (Arabic)
docs(website): new translations

* New translations logger.md (Chinese Simplified)
docs(website): new translations

* New translations logger.md (Portuguese, Brazilian)
docs(website): new translations

* New translations logger.md (Japanese)
docs(website): new translations

* New translations logger.md (French)
docs(website): new translations

* New translations logger.md (German)
docs(website): new translations

* New translations kubernetes.md (Russian)
docs(website): new translations

* New translations kubernetes.md (Russian)
docs(website): new translations

* New translations kubernetes.md (Russian)
docs(website): new translations

* New translations en.json (German)
docs(website): new translations

* New translations en.json (German)
docs(website): new translations

* New translations windows.md (German)
docs(website): new translations

* New translations en.json (German)
docs(website): new translations

* New translations ansible.md (Portuguese, Brazilian)
docs(website): new translations

* New translations auth.md (Portuguese, Brazilian)
docs(website): new translations

* New translations en.json (Portuguese, Brazilian)
docs(website): new translations

* New translations cli.md (Vietnamese)
docs(website): new translations

* New translations docker.md (Vietnamese)
docs(website): new translations

* New translations dev-plugins.md (Vietnamese)
docs(website): new translations

* New translations docker.md (Vietnamese)
docs(website): new translations

* New translations build.md (Portuguese, Brazilian)
docs(website): new translations

* New translations ci.md (Portuguese, Brazilian)
docs(website): new translations

* New translations chef.md (Portuguese, Brazilian)
docs(website): new translations

* New translations auth.md (Portuguese, Brazilian)
docs(website): new translations

* New translations config.md (Portuguese, Brazilian)
docs(website): new translations

* New translations ci.md (Portuguese, Brazilian)
docs(website): new translations

* New translations ansible.md (Italian)
docs(website): new translations

* New translations ansible.md (Italian)
docs(website): new translations

* New translations auth.md (Italian)
docs(website): new translations

* New translations auth.md (Italian)
docs(website): new translations

* New translations auth.md (Italian)
docs(website): new translations

* New translations auth.md (Italian)
docs(website): new translations

* New translations auth.md (Italian)
docs(website): new translations

* New translations auth.md (Italian)
docs(website): new translations

* New translations auth.md (Italian)
docs(website): new translations

* New translations auth.md (Italian)
docs(website): new translations

* New translations build.md (Italian)
docs(website): new translations

* New translations auth.md (Italian)
docs(website): new translations

* New translations build.md (Italian)
docs(website): new translations

* New translations build.md (Italian)
docs(website): new translations

* New translations chef.md (Italian)
docs(website): new translations

* New translations ci.md (Italian)
docs(website): new translations

* New translations chef.md (Italian)
docs(website): new translations

* New translations protect-your-dependencies.md (Spanish)
docs(website): new translations

* New translations ci.md (Italian)
docs(website): new translations

* New translations ci.md (Italian)
docs(website): new translations

* New translations cli.md (Italian)
docs(website): new translations

* New translations ci.md (Italian)
docs(website): new translations

* New translations build.md (Italian)
docs(website): new translations

* New translations cli.md (Italian)
docs(website): new translations

* New translations cli.md (Italian)
docs(website): new translations

* New translations cli.md (Italian)
docs(website): new translations

* New translations cli.md (Italian)
docs(website): new translations

* New translations cli.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Korean)
docs(website): new translations

* New translations config.md (Vietnamese)
docs(website): new translations

* New translations config.md (Hindi)
docs(website): new translations

* New translations config.md (Portuguese)
docs(website): new translations

* New translations config.md (Russian)
docs(website): new translations

* New translations config.md (Spanish)
docs(website): new translations

* New translations config.md (Arabic)
docs(website): new translations

* New translations config.md (Chinese Simplified)
docs(website): new translations

* New translations config.md (Portuguese, Brazilian)
docs(website): new translations

* New translations config.md (Japanese)
docs(website): new translations

* New translations config.md (Polish)
docs(website): new translations

* New translations config.md (French)
docs(website): new translations

* New translations config.md (German)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations contributing.md (Italian)
docs(website): new translations

* New translations config.md (Italian)
docs(website): new translations

* New translations ci.md (Italian)
docs(website): new translations

* New translations chef.md (Italian)
docs(website): new translations

* New translations what-is-verdaccio.md (Italian)
docs(website): new translations

* New translations what-is-verdaccio.md (Italian)
docs(website): new translations

* New translations what-is-verdaccio.md (Italian)
docs(website): new translations

* New translations what-is-verdaccio.md (Italian)
docs(website): new translations

* New translations what-is-verdaccio.md (Italian)
docs(website): new translations

* New translations what-is-verdaccio.md (Italian)
docs(website): new translations

* New translations what-is-verdaccio.md (Italian)
docs(website): new translations

* New translations what-is-verdaccio.md (Italian)
docs(website): new translations

* New translations what-is-verdaccio.md (Italian)
docs(website): new translations

* New translations what-is-verdaccio.md (Italian)
docs(website): new translations

* New translations iis-server.md (Vietnamese)
docs(website): new translations
2018-09-11 06:52:32 +02:00

103 lines
5.1 KiB
Markdown

---
id: iss-server
title: "Cài đặt trên máy chủ IIS"
---
Những hướng dẫn này dành cho Windows Server 2012, IIS 8, [Node.js 0.12.3](https://nodejs.org/), [iisnode 0.2.16](https://github.com/tjanczuk/iisnode) và [verdaccio 2.1.0](https://github.com/verdaccio/verdaccio).
- Khi muốn cài đặt IIS bạn cần chạy [iisnode](https://github.com/tjanczuk/iisnode). Bạn cần chắc chắn mình tuân thủ các điều kiện cần thiết trong việc cài đặt (Mô-đun Rewrite Rewrite & node) như được mô tả trong các hướng dẫn iisnode.
- Bạn hãy tạo một thư mục mới trong Explorer để lưu trữ verdaccio. Ví dụ: `C:\verdaccio`. Lưu [package.json](#packagejson), [start.js](#startjs) và [web.config](#webconfig) vào thư mục này.
- Tạo một trang mới trong Trình quản lý dịch vụ thông tin Internet. Hãy đặt tên cho thư mục theo ý thích của bạn. Tôi sẽ gọi là verdaccio như trong [instructions](http://www.iis.net/learn/manage/configuring-security/application-pool-identities) này. Xác định đường dẫn để lưu tất cả các tệp và số cổng.
- Trở lại Explorer và cấp quyền cho người dùng sử dụng nhóm ứng dụng trong thư mục bạn vừa tạo. Trong trường hợp bạn đã đặt tên trang này là verdaccio và chưa sửa đổi nhóm ứng dụng, đồng thời trang đang chạy ứng dụng ApplicationPoolIdentity, bạn nên cấp cho người dùng quyền sửa đổi IIS AppPool\verdaccio. Nếu bạn cần trợ giúp, vui lòng tham khảo hướng dẫn. (Nếu cần, bạn có thể hạn chế quyền truy cập trong tương lai, chỉ cho phép quyền sửa đổi trong iisnode và verdaccio\storage)
- Bắt đầu dòng lệnh và thực hiện lệnh sau để tải verdaccio:
cd c:\verdaccio
npm install
- Hãy chắc chắn bạn có yêu cầu gửi đến rằng chấp nhận lưu lượng truy cập TCP vào cổng tường lửa của Windows
- Sau đấy bạn có thể điều hướng đến máy chủ và cổng mà bạn chỉ định
Tôi muốn trang web `verdaccio` trở thành trang mặc định trong IIS, vì vậy tôi đã làm như sau:
- Tôi chắc chắn sổ đăng ký cho tệp .npmrc trong `c:\users{yourname}` được đặt thành `"registry= http: // localhost /"`
- Tôi đã hủy bỏ "trang web mặc định" và chỉ bắt đầu trang "verdaccio" trong IIS
- Tôi cài đặt các binding thành "http" và địa chỉ Ip là "All Unassigned" ở cổng 80, nhấp vào ok cho bất kỳ cảnh báo hoặc lời nhắc nào
Những nguyên tắc này dựa trên [ Host Sinopia trong IIS trên Windows ](https://gist.github.com/HCanber/4dd8409f79991a09ac75). Tôi phải điều chỉnh cấu hình trang web của mình như sau, tuy nhiên bạn có thể nhận thấy cấu hình ban đầu trong liên kết được đề cập ở trên hoạt động tốt hơn
Tệp tin cấu hình mặc định `c:\verdaccio\verdaccio\config.yaml` sẽ được tạo
### package.json
```json
{
"name": "iisnode-verdaccio",
"version": "1.0.0",
"description": "Hosts verdaccio in iisnode",
"main": "start.js",
"dependencies": {
"verdaccio": "^2.1.0"
}
}
```
### start.js
```bash
process.argv.push('-l', 'unix:' + process.env.PORT);
require('./node_modules/verdaccio/src/lib/cli.js');
```
### web.config
```xml
<configuration>
<system.webServer>
<modules>
<remove name="WebDAVModule" />
</modules>
<!-- indicates that the start.js file is a node.js application
to be handled by the iisnode module -->
<handlers>
<remove name="WebDAV" />
<add name="iisnode" path="start.js" verb="*" modules="iisnode" resourceType="Unspecified" requireAccess="Execute" />
<add name="WebDAV" path="*" verb="*" modules="WebDAVModule" resourceType="Unspecified" requireAccess="Execute" />
</handlers>
<rewrite>
<rules>
<!-- iisnode folder is where iisnode stores it's logs. These should
never be rewritten -->
<rule name="iisnode" stopProcessing="true">
<match url="iisnode*" />
<action type="None" />
</rule>
<!-- Rewrite all other urls in order for verdaccio to handle these -->
<rule name="verdaccio">
<match url="/*" />
<action type="Rewrite" url="start.js" />
</rule>
</rules>
</rewrite>
<!-- exclude node_modules directory and subdirectories from serving
by IIS since these are implementation details of node.js applications -->
<security>
<requestFiltering>
<hiddenSegments>
<add segment="node_modules" />
</hiddenSegments>
</requestFiltering>
</security>
</system.webServer>
</configuration>
```
### Khắc phục sự cố
- **Không thể tải giao diện web được lưu trữ trên https vì web luôn tải tập lệnh từ http.**
Hãy đảm bảo việc bạn nhập `url_prefix` chính xác trong cấu hình verdaccio. Vui lòng vào [discussion](https://github.com/verdaccio/verdaccio/issues/622) để cùng thảo luận.