linux一些常用操作
2017-04-20 15:54
232 查看
1.开启ssh服务:
vim /etc/ssh/sshd_config
#port 22
把#去掉
2.关掉防火墙:
临时关闭,即时生效,重启失效
永久关闭,重启生效
编辑防火墙配置文件:
vim /etc/sysconfig/iptables
3.修改配置主机名:
vim /etc/hosts
4.添加开启启动:
vim /etc/rc.d/rc.local
5.配置环境变量:
vim /etc/profile
使环境变量生效:source /etc/profile
vim /etc/ssh/sshd_config
#port 22
把#去掉
2.关掉防火墙:
临时关闭,即时生效,重启失效
# 关闭防火墙 $ service iptables stop # 开启防火墙 $ service iptables start
永久关闭,重启生效
# 关闭防火墙 $ chkconfig iptables off # 开启防火墙 $ chkconfig iptables on
编辑防火墙配置文件:
vim /etc/sysconfig/iptables
3.修改配置主机名:
vim /etc/hosts
4.添加开启启动:
vim /etc/rc.d/rc.local
5.配置环境变量:
vim /etc/profile
使环境变量生效:source /etc/profile
相关文章推荐
- Centos版Linux 一些常用操作命令 收集
- linux邮件发送与一些不常用的修改密码操作
- linux下一些常用操作的命令及快捷键(持续更新中。。。。。。。。。。)
- Linux下的一些常用操作总结
- 一些常用的基础Linux操作指令
- linux一些常用操作归纳
- Linux配置JForum的一些常用命令及操作
- LINUX的一些常用操作
- linux上的一些常用操作
- Centos版Linux 一些常用操作命令
- 记录Linux一些常用操作命令
- linux的一些常用操作(随时更新)命令导入sql文件
- linux下一些常用操作命令
- Centos版Linux 一些常用操作命令
- linux常用的一些操作
- Centos版Linux 一些常用操作命令
- linux下ps命令的一些常用操作
- Linux下对oracle操作的一些常用命令
- linux下的一些常用操作(与mysql相关)
- Linux下一些常用介质的mount方法