# 查询程序进程号
ps -ef | grep “程序名”
# 干掉进程
kill -9 进程号
# 一键安装nginx到/etc
yum install nginx
# 启动nginx
service nginx start
# 重启nginx
service nginx restart
# 一键安装tomcat到/etc
yum -y install tomcat tomcat-webapps tomcat-admin-webapps tomcat-docs-webapp tomcat-javadoc
-
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
-
yum -y install?yum-priorities #这个是jpackage依赖的包要先装
-
rpm -Uvh?http://mirrors.dotsrc.org/jpackage/6.0/generic/free/RPMS/jpackage-release-6-3.jpp6.noarch.rpm
-
yum -y install tomcat7 tomcat7-webapps tomcat7-admin-webapps tomcat-native
# 启动tomcat
service tomcat start
# 重启tomcat
service tomcat restart
# CentOS6.x图形界面安装
yum groupinstall “X Window System” “Desktop”
yum install tigervnc-server tigervnc
vncserver
# 开机自启
/etc/rc.local
# Ghost博客安装
http://docs.ghostchina.com/zh/installation/linux
本文链接地址: Linux命令整理