各服务器一键shell

为什么80%的码农都做不了架构师?>>>各服务器一键shell
文章图片

这个是电商服务器shell
cd /usr/local/redis/redis-4.0.10/src/
nohup ./redis-server ../redis.conf &
rm -rf /usr/local/tomcat/work/Catalina
mkdir /usr/local/tomcat/work/Catalina
rm -rf /usr/local/tomcat/logs
mkdir /usr/local/tomcat/logs
/usr/local/tomcat/bin/startup.sh
exit
=======================================================
这个是区块链服务器shell,服务器重启后apache需要几秒启动之后,才能执行此shell
/usr/sbin/apachectl stop
sheep 3
nohup /usr/local/ethereum/go-ethereum-1.8.3/build/bin/geth --identity "itari" --gcmode archive --datadir /usr/local/ethereum/private/data0 --networkid 898 --port 30303 --rpc --rpcaddr 0.0.0.0 --rpcport 8545 --rpcapi "db,web3,eth,personal,miner,net,txpool" --rpccorsdomain "*" &
nohup /usr/local/bin/ipfs daemon &
rm -rf /usr/local/tomcat/apache-tomcat-9.0.0.M22/work/Catalina
mkdir /usr/local/tomcat/apache-tomcat-9.0.0.M22/work/Catalina
rm -rf /usr/local/tomcat/apache-tomcat-9.0.0.M22/logs
mkdir /usr/local/tomcat/apache-tomcat-9.0.0.M22/logs
/usr/local/tomcat/apache-tomcat-9.0.0.M22/bin/startup.sh
exit
【各服务器一键shell】转载于:https://my.oschina.net/duojin/blog/1935807

    推荐阅读