首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    On the Rise of Kotlin

    It’s rare when a highly structured language with fairly strict syntax sparks emotions of joy and delight. But Kotlin, which is statically typed and compiled like other less friendly languages, delivers a developer experience that thousands of mobile and web programmers are falling in love with. The designers of Kotlin, who have years of experience with developer tooling (IntelliJ and other IDEs), created a language with very specific developer-oriented requirements. They wanted a modern syntax, fast compile times, and advanced concurrency constructs while taking advantage of the robust performance and reliability of the JVM. The result, Kotlin 1.0, was released in February 2016 and its trajectory since then has been remarkable. Google recently announced official support for Kotlin on Android, and many server-side technologies have introduced Kotlin as a feature.

    02

    CentOS下停止Tomcat运行脚本

    #!/bin/sh # # Firstly find the process of the tomcat.... TOMCAT_PROCESS_STR=`ps aux | grep 'Java.*tomcat' | grep -v grep` PROCESS_ARRAY=(${TOMCAT_PROCESS_STR// / }) TOMCAT_PROCESS_ID=${PROCESS_ARRAY[1]} echo $TOMCAT_PROCESS_ID # # Secondly send stop tomcat to see if we can kill it stoptomcat sleep 12 # # Last we'll use kill tomcat process in a looking up loop for ((a=1;a<=10;a++)) do   CHECK_STR_LENGTH=0   TOMCAT_PROCESS_CHECK_STR=`ps aux | grep 'java.*tomcat' | grep -v grep`   CHECK_STR_LENGTH=${#TOMCAT_PROCESS_CHECK_STR} # 传递到脚本的参数个数;   if [ $CHECK_STR_LENGTH != 0 ]   then     kill $TOMCAT_PROCESS_ID     sleep 5     echo Try to kill tomcat once more...   else     echo Tomcat is already killed     break   fi done #使用两次grep来去除grep自身进程对于查找结果的干扰是非常有技巧的

    02
    领券