linux 常用命令大全
2017-11-09 21:52
295 查看
1、查看版本
lsb_release -a
2、常用端口
21端口用于ftp连接,20端口用于ftp传输数据 ,23是Telnet(远程登录)端口, 22端口就是ssh端口
3、查看端口状态
/etc/init.d/iptables status
4、开启启动
chkconfig vsftpd on
5、开启redis端口,修改防火墙配置文件
vi /etc/sysconfig/iptables
1、进入yum配置文件目录
cd /etc/yum.repos.d/
2、备份配置文件
mv CentOS-Base.repo CentOS-Base.repo.bak
3、下载163的配置
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo,下载下来的文件名为 CentOS6-Base-163.repo
4、改名
mv CentOS6-Base-163.repo CentOS-Base.repo
5、更新数据库
yum update
6、查看所有端口使用情况
netstat -ntlp
7、查看进程id
ps -ef | grep svn (pid)
8、查看系统多少位
getconf LONG_BIT
9、查看软件安装目录
rpm -ql vsftpd
lsb_release -a
2、常用端口
21端口用于ftp连接,20端口用于ftp传输数据 ,23是Telnet(远程登录)端口, 22端口就是ssh端口
3、查看端口状态
/etc/init.d/iptables status
4、开启启动
chkconfig vsftpd on
5、开启redis端口,修改防火墙配置文件
vi /etc/sysconfig/iptables
1、进入yum配置文件目录
cd /etc/yum.repos.d/
2、备份配置文件
mv CentOS-Base.repo CentOS-Base.repo.bak
3、下载163的配置
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo,下载下来的文件名为 CentOS6-Base-163.repo
4、改名
mv CentOS6-Base-163.repo CentOS-Base.repo
5、更新数据库
yum update
6、查看所有端口使用情况
netstat -ntlp
7、查看进程id
ps -ef | grep svn (pid)
8、查看系统多少位
getconf LONG_BIT
9、查看软件安装目录
rpm -ql vsftpd