前言iptables在Linux发行版本如Centos、Debian、Ubuntu、Redhat等的配置内容基本一致,但是配置方式有所不同。由于工作日常用的是Centos 6.x,它的配置较简单。下面对Debian上配置iptables做一个说明。配置过程环境要求一台Debian 6.x/7.x及以上版本的机器登录用户名/密码配置步骤使用用户名/密码登录系统root@localhost:~#安装i
分类:
其他好文 时间:
2018-08-08 10:35:19
阅读次数:
196
1、删除centos7系统/etc/grub2.cfg文件中所有以空白开头的行行首的空白字符 2、删除/etc/fstab文件中所有以 开头,后面至少跟一个空白字符的行的行首的 和空白字符 3、在centos6系统/root/install.log每一行行首增加 号 4、在/etc/fstab文件中 ...
分类:
其他好文 时间:
2018-08-06 19:15:00
阅读次数:
127
服务器型号 操作系统 [root@txs ~]# cat /etc/redhat-release [root@txs ~]# cat /etc/redhat-release .CentOS release 6.5 (Final) 查看操作系统发行版详细信息 [root@txs ~] # lsb_re ...
分类:
系统相关 时间:
2018-07-26 16:38:07
阅读次数:
444
[root@localhost /]# useradd ce [root@localhost /]# echo "12345678" | passwd --stdin ce #创建密码 [root@localhost /]# vim /etc/ssh/sshd_config /PermitRootL ...
分类:
其他好文 时间:
2018-07-11 17:09:43
阅读次数:
122
实验环境:在centos7中创建一个LVM逻辑分区,并且对该分区进行磁盘配额。 -----操作步骤----- 1首先在虚拟机VM14软件选项中添加几个磁盘到centos7中用于实验。 关机状态下添加硬盘(至少两个) 直接点击下一步至完成即可添加。 2打开centos7并打开XSHEEL连接虚拟机,方便控制系统。 3 root用户下输入fdisk –l 命令查看到目前系统识别到的所有硬盘。
分类:
系统相关 时间:
2018-07-09 16:30:19
阅读次数:
374
QPST刷到qpst的1.9出厂版本,这个版本的BootLoader是锁定的: bootloader locked.其他版本不会重新锁定,只能relocked,不能恢复最初的locked,这样就不能升级. 一路升级到最新版.目前是3.5.388 稳定版 解锁bootloader(先获取解锁文件) 刷 ...
分类:
移动开发 时间:
2018-07-04 20:36:47
阅读次数:
416
一、环境准备操作系统:
[root@localhost?~]#?cat?/etc/redhat-release?
CentOS?Linux?release?7.3.1611?(Core)?
修改主机名:
[root@localhost?~]#?hostnamectl?set-h
分类:
其他好文 时间:
2018-06-29 17:27:03
阅读次数:
324
13.1 设置更改root密码13.2 连接mysql13.3 mysql常用命令13.1 设置更改root密码与系统root不是一个用户默认myqsl用户密码是空的未启动 /etc/init.d/mysqld start启动成功更改环境变量PATH,增加mysql绝对路径export PATH=$PATH:/usr/local/mysql/bin/mysql -uroot -p (-p
分类:
其他好文 时间:
2018-06-20 11:19:13
阅读次数:
249
root@magina-Inspiron-3847:~# docker pull 172.16.1.41:5000/ubuntuUsing default tag: latestError response from daemon: Get https://172.16.1.41:5000/v1/_ ...
分类:
系统相关 时间:
2018-05-29 18:53:18
阅读次数:
186
linux root密码找回方法一 第1步:在系统进入单用户状态,直接用passwd root去更改。 第2步:用安装光盘引导系统,进行linux rescue状态,将原来/分区挂接上来,作法如下: cd /mnt mkdir hd mount -t auto /dev/hdaX(原来/分区所在的分 ...
分类:
系统相关 时间:
2018-05-25 21:07:06
阅读次数:
230