搜索接口服务部署

# 搜索接口服务部署

#### wangpanning

# 部署流程:

* 编译

* 打包上传jar

* 编辑.conf配置文件

* 修改jar权限

* 启动jar

# 详细部署:

* 打包上传:在编译器运行package之后,在target目录会生产两个jar。一个是pandora-search-xxx.jar,一个是pandora-search-xxx.jar.original。

将pandora-search-xxx.jar上传服务器../pandora-search目录。

* 编辑配置:在pandora-search-xxx.jar当前目录下新建同名.conf文件,pandora-search-xxx.conf

```

APP_NAME=pandora-search-music

MODE=service #后台运行

JAVA_OPTS="-server -mes1g -Xmx1g -Dfile.encoding=utf-8"

RUN_ARGS="--server.port=8060 --spring.profiles.active=dev"

PID_FOLDER=pids

LOG_FOLDER=./logs

LOG_NAME=pandora-search-music-app

```

* 修改权限:chmod 755 pandora-search-xxx.jar

* 启动:./pandora-search-xxx.jar start

```

[jadeite@BJ-DBL-A13-ZYC1Q-YGJH-HPDL360-SV005 music]$ ./pandora-search-music-1.0.0.jar

Usage: ./pandora-search-music-1.0.0.jar {start|stop|force-stop|restart|force-reload|status|run}

```

你可能感兴趣的:(搜索接口服务部署)