2020-03-25 14:18
@jounzhang 用idea 社区版 根本就不支持html js 当成文本处理就没事了,哈哈
2020-03-23 16:22
@jounzhang enjoy 和velocity 语法有点像 用velocity 插件试试
2020-03-10 20:14
centos7.x
vim /etc/systemd/system/DataPushApp.service
输入以下内容
[Unit]
Description=数据推送服务
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
ExecStart= /usr/local/apps/data-push/bin/app.sh start
ExecReload= /usr/local/apps/data-push/bin/app.sh restart
ExecStop= /usr/local/apps/data-push/bin/app.sh stop
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
设置服务开机自启动
systemctl enable DataPushApp
服务形式操作
systemctl start DataPushApp 启动
systemctl stop DataPushApp 关闭
systemctl status DataPushApp 状态
systemctl restart DataPushApp 重启
centos6.x
vim /etc/init.d/DataPushApp
输入
#!/bin/bash
#chkconfig: 345 99 99
#description:data push service
#processname:DataPushApp
export LANG="en_US.UTF-8"
case $1 in
start) sudo /usr/local/apps/data-push/app.sh start;;
stop) sudo /usr/local/apps/data-push/app.sh stop;;
*) echo "require start|stop" ;;
esac
设置服务自启动
chkconfig DathPushApp on
服务形式操作
service DataPushApp start
service DataPushApp stop