Chủ Nhật, 18 tháng 3, 2012

config Wamp server and IIS run in port 80 in the same time

Setting Both Wamp & IIS on 80 Port (no need of 81 now)

Yes, Finally we are able to use both Wamp and IIS both on 80 port, but you need two Different IP Address on same server, one will server Wamp Server and other will serve IIS.

Old Style and the easy way. Assign different port numbers in IIS and WAMP. They will work without any problem like for IIS Site http://localhost and for Wamp Site http://localhost:81 but what if we don't want to show :81 to customer ? :)

So this is better to use a proper Trick for this.

Step By Step Different IPs and same port:

There are some changes in your registry, which will allow us to use IP address for Wamp server. Many guys try to use this scenario but unfortunately IIS occupy all IP address pointing to 80 port, so even if we will try this we are not able to get wamp page.

In My Case

10.10.10.31 is for http://domain0.com on IIS

10.10.10.32 is for http://domain1.com on IIS

10.10.10.33 is for http://domain2.com on Wamp

Now Adding IP Address to server:

1.Open Network Connection and open Internet Protocol TCP/IP Properties & add manual IP, gateway, and DNS.

image

2. Click Advance.

3. In IP Setting tree and IP Address Click Add

image

4. add all other IP Addresses one by one

image

image

5. Now Click Ok, 3 times :) and then close.

Now when you IP Addresses are added, you need to trick with IIS (using registry). I am not describing here how to assigning different IP Addresses to different website in IIS.

Registry Setting:

Step1. Stop the HTTP service

net stop http in command prompt.

If this command prompts any question about stopping some services, say yes.

Step2. Edit the registry. (You better backup the registry before playing around with it ;))

i. Click Start, click Run, type regedit, and then click OK.

ii. In Registry Editor, locate the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\ListenOnlyList

If you don’t find this, no harm. Create one multi-string value in the same name.

iii. Make sure it has only the IP addresses that you want your IIS to listen. In my case, 10.10.10.31 & 10.10.10.32.

One IP address per line.

image

image

Guess what? IIS doesn’t know about 10.10.10.33 anymore. :)

Step3. Start the HTTP Service.

net start http in command prompt.

You have to start couple of services in MMC as well. (HTTP SSL and World Wide Web Publishing Service)

Now, you can run both the web servers together on same port number. Of course, different IP addresses.

10.10.10.31:80 is IIS Website

10.10.10.32:80 is also IIS Website

10.10.10.33:80 is WAMP website.

In fact, 10.10.10.33 is sole property of WAMP now. IIS can’t use this IP address with any port number.

That's All, Good Luck!

Thứ Ba, 8 tháng 11, 2011

1 HP = bao nhiêu BTU

1 HP = 2545 BTU/hour

1 kW = 3412 BTU/hour

1 kW = 1.34 HP

Không có chuyện 9000BTU/h = 1HP!
Đây là sai lầm mà nhiều người mắc phải!
Đúng đơn vị vật lý thì 9000BTU/h = 3,5HP lận!
Để giải thích điều này bạn phải hiểu là :
- Công suất lạnh là 9000BTU/h thì công suất điện máy lạnh là "khoảng" 1HP!
- Theo chu trình lạnh thì công suất lạnh Qo = Qk + Ne
Trong đó Qk là công suất giải nhiệt còn Ne là công nén! Với Ne này bạn có thể chọn máy nén!
Còn về lựa chọn dàn lạnh ở xưởng thì bạn xem thử công suất máy nén theo đơn vị HP của hệ thống lạnh cấp cho dàn lạnh đó là được.

HP(sức ngựa) là đại lượng đặc trưng cho công suất nói chung. Ở đây cần phân biệt rõ 2 loại công suất : công suất điện và công suất lạnh.Công suất lạnh (thường có đơn vị là Btu/h) là khả năng làm lạnh của máy lạnh. Công suất điện (thường có đơn vị là KW,1HP=750W) là mức độ tiêu hao điện của máy lạnh. Khi nói đến Btu/h, ta biết ngay là đang nói đến công suất lạnh, nhưng khi nói đến KW thì phải hỏi rõ là loại công suất nào vì đôi khi cũng có hãng biểu điễn công suất lạnh bằng KW, khi đó 1KW =0.0034 Btu/h.


1HP = 756 W đối với nghành điện lạnh, khác với CS trong điện, có nghĩa là phải tốn 1 công là 756w để đạt được một lượng nhiệt khoảng : 9000-9500 Btu/h, do vậy người ta thường tính: 1HP = 9000 Btu/h.

Tinh chuyen doi tu HP sang BTu/h co 2 loai

1. Doi voi may nen thong thuong ( standard block) : 1HP = 9.000 BTU/h

2. Doi voi may nen cua su dung cong nghe bien tan( Inverter block) : 1HP = 9.900 BTU/h.

- Thông thường máy điều hoà có công suất máy nén 1HP sẽ sinh ra công suất lạnh 9000Btu/h ( Daikin : 8900btu/h, Carrier : 9200btu/h.... Vấn đề này phụ thuộc vào công nghệ của hãng sản xuất , nếu hãng nào cao có nghĩa là hệ số COP cao --------> công nghệ tốt, một vài hãng xạo ở điểm này.

Tính 1HP có thể cung cấp cho bao nhiêu m2 phòng bạn nào có công thức tính toán khoản này không?

Tính công suất lạnh là một bài toán rất phức tạp. Tuy nhiên để tính sơ bộ công suất lạnh cho một phòng ở bình thường, bạn có thể tính 1HP cho 1 phòng 60m3. Tuy nhiên nếu phòng có nhiều cửa kính thì phải tăng công suất lên.

Tham khảo thêm tại:

http://www.weights-and-measures.com/xcomworkenergy.html