博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Basic Skill
阅读量:4606 次
发布时间:2019-06-09

本文共 412 字,大约阅读时间需要 1 分钟。

Get current script path

script=$(readlink -f $0)

Check for root user

if [ "$(id -u)" -ne 0 ] ; then  echo "current user is not root "  exit 1fi

 

Read the configured Port

read -p "please set the app port for this instance [$_APP_PORT] " APP_PORTif ! echo $APP_PORT | egrep -q '^[0-9]+$' ; then  echo "setted default port: $_APP_PORT"   APP_PORT=$_APP_PORTfi

 

转载于:https://www.cnblogs.com/zhengwenqiang/p/6927942.html

你可能感兴趣的文章
gui编程实践(3)--记事本界面 JMenuBar JMenu
查看>>
黑马程序员--抽象类与接口
查看>>
IaaS,PaaS,SaaS 的区别
查看>>
Python复习基础篇
查看>>
关于Cocos2d-x中背景音乐和音效的添加
查看>>
checkbox和文字对齐
查看>>
%s的用法
查看>>
java中==和equals
查看>>
CCActionPageTurn3D
查看>>
python random
查看>>
esp32-智能语音-cli(调试交互命令)
查看>>
netty与MQ使用心得
查看>>
关于dl dt dd 文字过长换行在移动端显示对齐的探讨总结
查看>>
swoolefy PHP的异步、并行、高性能网络通信引擎内置了Http/WebSocket服务器端/客户端...
查看>>
Python学习笔记
查看>>
unshift()与shift()
查看>>
使用 NPOI 、aspose实现execl模板公式计算
查看>>
行为型模式:中介者模式
查看>>
How to Notify Command to evaluate in mvvmlight
查看>>
33. Search in Rotated Sorted Array
查看>>