将FME服务器安装为系统服务(Linux)
You can install FME Server as a system service that starts when you start your system. You should do this only if you have set up system services before and understand the different run levels on your system.
WARNING:Configuring scripts to run at start-up on Linux is an advanced task. The steps for doing so vary, depending on your configuration. Use the steps listed in this section as a guide only.
FME Server is composed of a series of components, and each component has its own script. There are a few scripts that must be modified, depending on the choices you made during installation. If you performed an express installation or installed the built-in Database and Web Application Server, ensure that all scripts are moved.
要将fmeserver作为系统服务,必须对此进行一些更改init.d和rc * .d.files:
- 制作FME服务器启动脚本的副本:
/ server / startup / fmeserverappserver /Server/startup/FMEServerDatabase /Server/startup/FMEServerCore / server / startup / fmeserverengines / server / startup / fmeservercleanup / server / startup / fmeserverwebsocket - /etc/init.d/FMEServerAppServer
- /etc/init.d/FMEServerDatabase
- /etc/init.d/fmeserversmtprelay.
- /etc/init.d/FMEServerCore
- /etc/init.d/fmeserverengines.
- /etc/init.d/FMEServerCleanup
- /etc/init.d/FMEServerWebSocket
Create links from the scripts you just copied to a script in the correct run level, depending on your distribution and configuration.
For Debian, this is typically 2 (rc2.d), and for Red Hat and Fedora, this is typically 5 (rc5.d). If you are unsure what run level you should use, we recommend that you contact your system administrator before proceeding.
If you are on a Debian based distribution such as Ubuntu, you can run the following commands:
update-rc.d FMEServerCore start 99 2 . stop 98 6 .
更新-rc.d fmeserverengines start 99 2。停止98 6。
update-rc.d FMEServerAppServer start 99 2 . stop 99 6 .
更新-rc.d fmeserverdatabase start 98 2。停止99 6。
更新-rc.d fmeserversmtprelay start 98 2。停止99 6。
更新-rc.d fmeservercleanup start 99 2。停止99 6。
更新-rc.d fmeserverwebsocket start 99 2。停止99 6。
Create the Web Application Server startup link:
sudo ln - s /etc/init.d/FMEServerAppServer /etc/rc2.d/S99fmeserverappserver
Create the Database Server startup link:
sudo ln - s /etc/init.d/FMEServerDatabase /etc/rc2.d/S98fmeserverdatabase
Note:重要的是,这是S98,而不是S99。
Create the SMTP Relay startup link:
sudo ln - s /etc/init.d/FMEServerSMTPRelay /etc/rc2.d/S98fmeserversmtprelay
Note:重要的是,这是S98,而不是S99。
Create the FME Server Cleanup service link:
sudo ln - s /etc/init.d/FMEServerCleanup /etc/rc2.d/S99fmeservercleanup
Create the FME Server WebSocket service link:
sudo ln - s /etc/init.d/FMEServerWebSocket /etc/rc2.d/S99fmeserverwebsocket
创建FME服务器核心启动链接:
sudo ln -s /etc/init.d/fmeservercore /etc/rc2.d/s99feservercore
创建FME Server引擎启动链接:
sudo ln -s /etc/init.d/fmeserverengines /etc/rc2.d/s99feserverengines
创建Web Application Server Shutdown链接:
sudo ln - s /etc/init.d/FMEServerAppServer /etc/rc6.d/K99fmeserverappserver
Create the Database Server shutdown link:
sudo ln -s /etc/init.d/fmeserverdatabase /etc/rc6.d/k99feserverdatabase
Create the SMTP Relay shutdown link:
sudo ln -s /etc/init.d/fmeserversmtprelay /etc/rc2.d/k99feserversmtprelay
创建FME Server Cleanup Service Shutdown链接:
sudo ln -s /etc/init.d/fmeservercleanup /etc/rc6.d/k98fmeservercleanup
Note:It is important that this one is K98, not K99.
Create the FME Server WebSocket service shutdown link:
sudo ln -s /etc/init.d/fmeserverwebsocket /etc/rc6.d/k98feserverwebsocket
Note:It is important that this one is K98, not K99.
创建FME服务器核心关闭链接:
sudo ln - s /etc/init.d / FMEServerCore /等c/rc6.d/K98fmeservercore
Note:It is important that this one is K98, not K99.
Create the FME Server Engines shutdown link:
sudo ln - s /etc/init.d/FMEServerEngines /etc/rc6.d/K98fmeserverengines
Note:It is important that this one is K98, not K99.
placing the scripts here:
在红色帽子上,你可以使用chkconfig命令。这会自动将它们添加到runlevel 3.如果需要使用不同的运行级别,则需要修改chkconfig这些脚本的标题,或手动:
chkconfig--add FMEServerCore
chkconfig --add fmeserverengines
chkconfig--add FMEServerAppServer
chkconfig --add fmeserverdatabase.
chkconfig --add fmeserversmtprelay
chkconfig--add FMEServerCleanup
chkconfig--add FMEServerWebSocket
On other distributions, or to manually set up the startup scripts, create the proper links in the appropriate run level directory.
以下步骤使用运行级别2。