随笔分类 -  Linux学习笔记

摘要:centos6 配置samba服务 1、安装samba yum install samba -y 2、关闭selinux vim /etc/selinux/config 更改#SELINUX=enforcing 为SELINUX=disable 3、关闭iptables service iptabl 阅读全文
posted @ 2018-03-25 14:42 pathping 阅读(146) 评论(0) 推荐(0) 编辑
摘要:centos6 部署Apache服务的步骤 1、准备环境 查看防火墙有没有关:service iptables status 关闭防火墙:service iptables stop (chkconfig iptables off) 修改启动项:chkconfig iptables off 关闭sel 阅读全文
posted @ 2018-03-24 16:31 pathping 阅读(134) 评论(0) 推荐(0) 编辑
摘要:centos7 操作 第一步:修改ssh配置文件 vim /etc/ssh/sshd_config 找到“#Port 22”,复制或直接修改端口号,建议大于1024(系统使用的端口) 第二步:关闭selinux 先查看selinux开放给ssh使用的端口 semanage port -l |grep 阅读全文
posted @ 2018-03-24 16:14 pathping 阅读(1210) 评论(0) 推荐(0) 编辑
摘要:Linux软件包 软件包分类 源码包 修改源代码 编译 安装 运行效率更高更 加稳定 二进制包 优点 管理简单 缺点 不能修改源代码,依赖性问题 Redhat centOS rpm Debain Ubuntu deb RPM包命名 name-version-release.arch.rpm src. 阅读全文
posted @ 2017-08-13 12:21 pathping 阅读(567) 评论(0) 推荐(0) 编辑
摘要:文件管理类命令 命令和选项 command [options] [arguments] 命令 选项 参数 选项 短选项- 例(-h -l -a) 短选项可组合 例(-hla) 有些命令短选项可以不带-, 通常称作BSD风格的选项 例(ps aux ,tar xf) 有些选项需要带参数 tail -n 阅读全文
posted @ 2017-07-28 21:34 pathping 阅读(862) 评论(0) 推荐(0) 编辑
摘要:管理Linux网络 linux设备识别 以太网卡 eth# eth0 eth1 无线网卡 wifi# wifi0 wifi1 拨号连接 ppp# ppp0 ppp1 本地环回网卡 lo 临时更改IP地址设置 立即生效,重启系统、重启网络服务后失效 ifconfig 查看网络连接的设置 查看所有工作的 阅读全文
posted @ 2017-07-28 20:55 pathping 阅读(864) 评论(0) 推荐(0) 编辑
摘要:用户和组管理 多用户操作系统和单用户操作系统 单用户操作系统只能同时一个用户在线,而多用户操作系统可以同时多人在线。Linux中多用户之间的切换alt+F1到F7,alt+f7是图形模式,其它是命令行模式。 在windows中创建用户的命令 net user zhang 123 /add 将用户添加 阅读全文
posted @ 2017-07-28 20:40 pathping 阅读(859) 评论(0) 推荐(0) 编辑
摘要:linux终端和shell linux终端 虚拟终端由mingetty程序产生 切换终端 ctrl+alt+fn n=1-6 虚拟终端(输入tty显示当前是那个终端) [root@learn ~]# tty /dev/tty1 模拟终端 (使用ssh通过网络连接到linux) [root@learn 阅读全文
posted @ 2017-07-01 17:37 pathping 阅读(437) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示