วันจันทร์ที่ 23 มิถุนายน พ.ศ. 2557

Auto start openfile as Service !!!!!!!!!!!!!!!

Running Openfire in Windows

If you used the Openfire installer, a shortcut for starting the a graphical launcher is provided in your Start Menu. Otherwise, run openfire.exe in the bin/ directory of your Openfire installation. A button on the on the launcher allows you to automatically open your web browser to the correct URL to finish setting up the server:
Openfire Launcher

Windows Service

If you're running Openfire on Windows, you will likely want to run Openfire as a standard Windows service after initial setup. If you used the Windows installer, a openfire-service.exe file will be in the bin directory of the installation. You can use this executable to install and control the Openfire service.
From a console window, you can run the following commands:
  • openfire-service /install -- installs the service.
  • openfire-service /uninstall -- uninstalls the service.
  • openfire-service /start -- starts the service
  • openfire-service /stop -- stops the service.
Windows Service
You can also use the Services tool in the Windows Control Panel to start and stop the service.
Note: the graphical launcher is not compatible with the Windows service at this time. If you install the service, you should use service controls as described above to control the server rather than the graphical launcher.

Custom Parameters

Advanced users may wish to pass in parameters to the Java virtual machine (VM) to customize the runtime environment of Openfire. You can do this by creating openfire.vmoptions files in the bin/ directory of your Openfire installation. For the Windows service, you'd create a new text file called openfire-service.vmoptions. Each parameter to the VM should be on a new line of the file. For example, to set the minimum heap size to 512 MB and max VM heap size to 1024 MB, you'd use:
-Xms512m
-Xmx1024m
To create parameters for the normal launcher, create a file called openfired.vmoptions (since the openfire.exe launcher invokes the openfired.exe executable to actually start the server).

Remote Desktop ได้ 2 เครื่อง 2008R2,2012

Windows Server2008 ตั้งค่า Remote Desktop ได้ 2 เครื่อง

สำหรับ Windows Server 2008 R2
ไปที่ Start > Administrative Tools > Remote Desktop Services > Remote Desktop Session Host Configuration

 Edit Settings > Restrict each user to a single session จะเปิด Dialog Properties ขึ้นมา

Restrict each user to a single session ให้ติ๊กเช็คถูกออก

Window Server 2012

You can disable “Restrict each user to a single session” on Windows Server 2008 by using “Remote Desktop Session Host Configuration”. But that tool is not available on Windows Server 2012. So we should disable it from local policy to enable 2 sessions at the same time.
Open run and type “gpedit.msc” for Local Group Policy. Go to:
Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Connections
RDP
Simply disable “Remote Desktop Services users to single remote desktop session” option.
After that you will be able to connect your server with 2 different session.

Credit. http://www.yusufozturk.info/windows-server/how-to-disable-restrict-each-user-to-a-single-session-on-windows-server-2012.html