码迷,mamicode.com
首页 > 系统相关 > 详细

Linux命令

时间:2017-10-31 10:56:58      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:ctr   git reset   gre   --   bin   lan   tom   kconfig   install   

创建一个php文件
  touch test.php 
  haproxy 
撤销
  Ctrl+U
 
打开文件夹
   cd /usr/loca
打开文件
   vim a.txt
查看开放的端口
   iptables -L -n
   sudo vim  /etc/sysconfig/iptables
   service iptables restart
查看安装路径
   whereis jdk
查找所有的安装软件
   rmp -qa
访问网站
   curl 127.0.0.1:80
kill进程
   sudo kill -9 pid #pid
查端口
   netstat -anp|grep 80
   netstat -tulnp | grep ‘:80 ‘
   netstat -ntlp
查看tomcat运行状态
   ps -ef|grep tomcat
--回滚本地的改动
   sudo -u nobody git reset --hard
--测试端口
   telnet 127.0.0.1 8080
安装telnet
   sudo yum install -y telnet
解压:tar -zxvf xx.tar.gz
 
防火墙
开启: chkconfig iptables on
关闭: chkconfig iptables off 或者 /sbin/chkconfig --level 2345 iptables of
开启: service iptables star
关闭: service iptables stopiptables方式查看防火墙状态
/etc/init.d/iptables status暂时关闭防火墙
/etc/init.d/iptables stop重启iptables
/etc/init.d/iptables restart

Linux命令

标签:ctr   git reset   gre   --   bin   lan   tom   kconfig   install   

原文地址:http://www.cnblogs.com/mawenzhu/p/7760163.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!