Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 15-10-2015, 03:15 PM   #1
hoctinhoc
Guest
 
Trả Lời: n/a
AlwaysUp – Tự động kích hoạt ứng dụng và start ứng dụng khi windows reboot...
AlwaysUp – Tự động kích hoạt ứng dụng và start ứng dụng khi windows reboot...







AlwaysUp là dịch vụ hữu ích cho phép bạn tự động kích hoạt ứng dụng và chạy chương trình mỗi khi Windows khởi động. Bên cạnh đó, nó còn hỗ trợ khởi động lại ứng dụng nếu chẳng may bị hỏng, treo hoặc tiêu thụ quá nhiều bộ nhớ và thực hiện mọi việc để đảm bảo rằng ứng dụng của bạn luôn có sẵn 24/7. Ngoài ra, các cảnh báo email chi tiết và thường xuyên từ AlwaysUp sẽ giúp người dùng kịp thời nắm bắt được những vấn đề liên quan đến hiệu suất, treo máy, khởi động lại hay các sự kiện liên quan khác.


Hướng dẫn sử dụng AlwaysUp


How to Run Any Node.js Application as a Windows Service with AlwaysUp

Start your Node.js script when your PC boots and keep it running 24/7 in the background. No need to log in!

Node.js is a platform for building scalable, server-side Javascript applications.

To configure your Node.js script as a Windows Service with AlwaysUp 8.0 and later:
  1. Download and install and configure Node.js, if necessary.
  2. Download and install AlwaysUp, if necessary.
  3. Start AlwaysUp.
  4. Select Application > Add to open the Add Application window:
  5. On the General tab:
    • In the Application field, enter the full path to the Node.js executable, node.exe. By default, this will be:
      C:\Program Files\nodejs\node.exe
    • In the Arguments field, enter the full path to your Node.js script, enclosing the entire thing in quotes if it has a space. We have specified our slightly modified version of the sample web server script mentioned on the Node.js home page, saved as C:\Scripts\web-server.js.
    • In the Name field, enter the name that you will call the application in AlwaysUp. We have specified Node.js Server but you can specify another name if you like.

  6. Click over to the Startup tab and check the Ensure that the Windows Networking components have started box. This informs AlwaysUp that Node.js needs TCP/IP networking support to do its work.
  7. Click the Save >> button. In a couple of seconds, an application called Node.js Server will show up in the AlwaysUp window. It is not yet running though.
  8. To start your application from AlwaysUp, choose Application > Start "Node.js Server":

    Note that Node.js will be running in Session 0. If you are on Windows 2012/8/7/2008/Vista, you can select Tools > Switch to Session 0... to see the usual console window running in the isolated Session 0:
  9. That's it! Next time your computer boots, your Node.js application will start up immediately, before anyone logs on. We encourage you to edit your application in AlwaysUp and check out the many other settings that may be appropriate for your environment. For example, send email alerts if the application stops, boost its priority, etc.


Node.js not working properly as a Windows Service?

  • From AlwaysUp, select Application > Report Activity > Today... to bring up a HTML report detailing the interaction between AlwaysUp and your application. The AlwaysUp Event Log Messages page explains the more obscure messages.
  • Consult the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.
  • Contact us and we will be happy to help!
  Trả lời ngay kèm theo trích dẫn này
Gửi trả lời


Công Cụ
Xếp Bài

Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 04:50 PM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.