future

future


项目启动以及其他基本linux命令

<h2>curl调用格式</h2> <p>下单接口</p> <p>curl --location --request POST '<a href="http://localhost:8080/future/api/v1/private/order/submit"><a href="http://localhost:8080/future/api/v1/private/order/submit">http://localhost:8080/future/api/v1/private/order/submit</a></a>' --header 'Content-Type: application/json' --header 'Authorization: 123456' --data-raw '{&quot;symbol&quot;:&quot;BTC_USDT&quot;,&quot;price&quot;:&quot;20000&quot;,&quot;vol&quot;:&quot;10&quot;,&quot;lvg&quot;:2,&quot;side&quot;:3,&quot;type&quot;:1,&quot;openType&quot;:1}'</p> <h2>启动redis集群</h2> <p>/www/server/rediscluster/6379/redis</p> <p>redis-server ./redis.conf</p> <p>redis-server ../../7001/redis/redis.conf</p> <p>redis-server ../../7002/redis/redis.conf</p> <p>redis-server ../../7003/redis/redis.conf</p> <p>redis-server ../../7004/redis/redis.conf</p> <p>redis-server ../../7005/redis/redis.conf</p> <h2>创建redis集群</h2> <p>redis-cli -a 123456 --cluster create --cluster-replicas 1 172.24.182.253:6379 172.24.182.253:7001 172.24.182.253:7002 172.24.182.253:7003 172.24.182.253:7004 172.24.182.253:7005</p> <p>6379是主节点,其他的都是分节点</p> <h2>启动kafka</h2> <p>/root/kafka/kafka_2.13-3.6.1</p> <p>./start_zookeeper.sh</p> <p>./start_kafka.sh</p> <h2>查看kafka topic</h2> <p>./kafka-topics.sh --list --bootstrap-server 47.245.15.229:9092</p> <h2>部署jar包</h2> <p>1, 以futuer-openapi 项目为例 先maven package 打包 futuer-openapi-release.tar.gz 文件</p> <p>2, tar -zxvf future-openapi-release.tar.gz 解压出bin和conf目录</p> <p>3, 替换测试环境的 /www/future/future-openapi 目录下的 bin和conf</p> <p>4, kill掉原来的jar包进程,运行 nohup sh run.sh &gt;/www/future/log.txt 2&gt;&amp;1 &amp; 就行了</p>

页面列表

ITEM_HTML