linux增删用户http://blog.youkuaiyun.com/sunxx1986/article/details/6854307
更改目录用户权限 chown -R root:root 文件夹名 将文件夹权限改为root用户
chown与chowd区别
http://www.cnblogs.com/weiwuxu/p/6707752.html
chmod用法
用来修改某个目录或文件的访问权限。
chown用法
用来更改某个目录或文件的用户名和用户组的
linux的history命令:http://blog.youkuaiyun.com/yonggang7/article/details/40710623
查找:http://www.cnblogs.com/sunleecn/archive/2011/11/01/2232210.html
whereis <程序名称> 查找软件的安装路径
find [路径] <表达式>
系统查找到httpd.conf文件后即时在屏幕上显示httpd.conf文件信息。
find/-name"httpd.conf"-ls
cat命令详解http://www.cnblogs.com/fabulousyoung/p/4079759.html
linux端口占用情况:netstat -tunlp|grep 端口号 lsof -i:端口号
netstat -lan | grep 443 443端口占用情况
netstat -lan | grep
netstat -ntlp
端口netstat命令 https://www.cnblogs.com/ggjucheng/archive/2012/01/08/2316661.html
防火墙命令
netstat -anp查看防火墙开的端口
进入防火墙配置文件vim /etc/sysconfig/iptables,
开放端口一定要在 -A INPUT -j REJECT –reject-with icmp-host-prohibited 这句的前面,的前面,的前面
重启防火墙 /etc/init.d/iptables restart
PS是LINUX下最常用的也是非常强大的进程查看命令
ps -ef 查看全部进程
ps -ef|grep redis 检查redis进程是否存在
-e 显示所有进程。
-f 全格式。
vi命令查看文档
/name+回车 向下查询某一字符串
?name + 回车 向上查询某一字符串
:q不保存退出
:wq 保存退出