Linux 配置服务器

在resin/conf 文件夹下  新建 my-my-cluster.xml

<resin xmlns="http://caucho.com/ns/resin"
       xmlns:resin="urn:java:com.caucho.resin">
  <log name="" level="info" path="stdout:"/>

	<cluster id="dmpweb">
		<root-directory>.</root-directory>
		<server-default>
		  <jvm-arg>-Xms512m</jvm-arg>
		  <jvm-arg>-Xmx512m</jvm-arg>
		   <thread-max>512</thread-max>
		  <jvm-arg>-Xss256k</jvm-arg>
		  <jvm-arg>-server</jvm-arg>
		   <jvm-arg>-XX:PermSize=256m</jvm-arg>
		 <jvm-arg>-XX:MaxPermSize=512m</jvm-arg>
		 <jvm-arg>-Xmn256m</jvm-arg>
		 <jvm-arg>-XX:+UseConcMarkSweepGC</jvm-arg>
		 <jvm-arg>-XX:+UseParNewGC</jvm-arg>
		  <!-- The http port -->
		  <http address="*" port="8081"/>
		</server-default>
		<!-- define the servers in the cluster -->
		<server id="dmpweb" address="127.0.0.1" port="6801"></server>
		<!-- the default host, matching any host name -->
		<host id="" root-directory=".">
		  <web-app id="/" root-directory="${resin.root}/webapps/dmpweb/WebRoot/"/>
		</host>
	  </cluster>
	  
	  <cluster id="dmperp">
		<root-directory>.</root-directory>
		<server-default>
		  <jvm-arg>-Xms512m</jvm-arg>
		  <jvm-arg>-Xmx512m</jvm-arg>
		   <thread-max>512</thread-max>
		  <jvm-arg>-Xss256k</jvm-arg>
		  <jvm-arg>-server</jvm-arg>
		   <jvm-arg>-XX:PermSize=256m</jvm-arg>
		 <jvm-arg>-XX:MaxPermSize=512m</jvm-arg>
		 <jvm-arg>-Xmn256m</jvm-arg>
		 <jvm-arg>-XX:+UseConcMarkSweepGC</jvm-arg>
		 <jvm-arg>-XX:+UseParNewGC</jvm-arg>
		  <!-- The http port -->
		  <http address="*" port="8082"/>
		</server-default>
		<!-- define the servers in the cluster -->
		<server id="dmperp" address="127.0.0.1" port="6802"></server>
		<!-- the default host, matching any host name -->
		<host id="" root-directory=".">
		  <web-app id="/" root-directory="${resin.root}/webapps/dmperp/WebRoot/"/>
		</host>
	  </cluster>
	  
	  <cluster id="dmpcore">
		<root-directory>.</root-directory>
		<server-default>
		  <jvm-arg>-Xms512m</jvm-arg>
		  <jvm-arg>-Xmx512m</jvm-arg>
		   <thread-max>512</thread-max>
		  <jvm-arg>-Xss256k</jvm-arg>
		  <jvm-arg>-server</jvm-arg>
		   <jvm-arg>-XX:PermSize=256m</jvm-arg>
		 <jvm-arg>-XX:MaxPermSize=512m</jvm-arg>
		 <jvm-arg>-Xmn256m</jvm-arg>
		 <jvm-arg>-XX:+UseConcMarkSweepGC</jvm-arg>
		 <jvm-arg>-XX:+UseParNewGC</jvm-arg>
		  <!-- The http port -->
		  <http address="*" port="8083"/>
		</server-default>
		<!-- define the servers in the cluster -->
		<server id="dmpcore" address="127.0.0.1" port="6803"></server>
		<!-- the default host, matching any host name -->
		<host id="" root-directory=".">
		  <web-app id="/" root-directory="${resin.root}/webapps/dmpcore/WebRoot/"/>
		</host>
	  </cluster>

</resin>

在resin.xml 文件中 末尾 新增

<resin:import path="${__DIR__}/my-cluster.xml"/>


启动 方式


/usr/local/resin/resin-pro-4.0.47/bin/resin.sh  start -server dmp


你可能感兴趣的:(Linux 配置服务器)