Linux学习初步

centOS 6.5关闭防火墙步骤  


关闭命令:  service iptables stop 
        永久关闭防火墙:chkconfig iptables off


两个命令同时运行,运行完成后查看防火墙关闭状态 

        service iptables status

Apache在Linux系统中,其实叫“httpd”,它“无耻的”占据了官方名义!
CentOS可以使用yum命令,非常简单和容易的安装Apache,下面演示一下步骤:


1、安装Apache
yum install httpd


2、设置Apache服务的启动级别
pwd命令,该命令显示整个路径名


chkconfig --levels 235 httpd on
Apache是一个服务,所以,可以通过设置服务的启动级别来让它启动。2,3,5三个级别分别表示什么意思就不用我多说了吧。


3、现在就启动它
/etc/init.d/httpd start

启动sshd,可以通过secureCRT链接
service sshd start
或者
/etc/init.d/sshd start

调到root目录(备份sudo -i)
su root 
123456


查看IP
ifconfig

安装文件传输工具

yum install -y lrzsz

原文地址:https://www.cnblogs.com/shuangxinye/p/6038694.html