以下是在工作当中积累下来的linux常用命令,以做不时之需。
-------------------------------------------------------------- Tomcat -------------------------------------------------------
Tomcat 常用命令
netstat -ap |grep 8080 //查找tomcat端口是否被占用
tail -f catalina.out 查看日志
jar -xvf project.war 解压war包
first off, i check maven central via search.maven.org. recall that maven central is defined in the super pom and, if i find it in here, i won't need to add any extra repository information to my pom or settings file. i enter flexunit into the search box and it yields the three items shown in figure 2:。 xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">。 xsi:schemalocation="http://maven.apache.org/pom/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">。
maven环境变量配置:打开/etc/profile,在文件最后添加
export MAVEN_HOME=/usr/local/java/maven3.5
export MAVEN_HOME
export PATH=$PATH:$MAVEN_HOME/bin
---------------------------------------------------------------- nginx -------------------------------------------------------
Nginx常用命令:
启动:
/usr/local/nginx/sbin
./nginx
重启:
/usr/local/nginx/sbin
./nginx -s reload
判断配置文件是否正确:
cd /usr/local/nginx/sbin
./nginx -t
看到如下显示 说明配置文件正确!
nginx.conf syntax is ok
nginx.conf test is successful
查询nginx主进程号
ps -ef | grep nginx
at org.apache.storm.kafka.kafkaspout.open(kafkaspout.java:77) ~[storm-kafka-1.0.1.jar:1.0.1]。at org.apache.storm.kafka.trident.zkbrokerreader.(zkbrokerreader.java:44) ~[storm-kafka-1.0.1.jar:1.0.1]。at org.apache.storm.kafka.kafkautils.makebrokerreader(kafkautils.java:58) ~[storm-kafka-1.0.1.jar:1.0.1]。