201910-11 铁威马网络存储TANS-30BB添加计划任务项 铁威马网络存储TANS-30BB用的是busybox系统。 crontab -l vi /etc/init.d/nas/crond.sh 手动复制一行,进行修改就可以。.... Read More >
201907-15 centos7/rhel7一个网卡添加多个ip地址 临时生效方式 [root@bogon network-scripts]# ifconfig ens192:0 192.168.21.130 netmask 255.255.255.0 up [root@bogon network-scripts]# ifconfig ens192:1 192.168.21.131 netmask 255.255.255.0 up [root@bogon .... Read More >
201905-21 rhel8.0制作本地光盘源 前提:rhel-8.0-x86_64-dvd.iso镜像已经在光驱里。 1、创建临时挂载目录 [root@laofuxi.com ~]# mkdir /mnt/cdrom 2、挂载光驱 [root@laofuxi.com ~]# mount /dev/cdrom /mnt/cdrom/ 3、安装autofs [root@laofuxi.com ~]# y.... Read More >
201905-21 centos7 Minimal 中文版安装图形界面 一、查看操作系统版本 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 二、查看组信息 [root@localhost ~]# yum groups list .... Read More >
201903-26 ubuntu16.04通过apt-get安装指定版本和查询指定软件有多少个版本 一、通过apt-get安装指定版本 apt-get install = 举例: apt-get install mysql-server=5.7.11-0ubuntu6 二、查询指定软件有多少个版本 说明:在Linux用这个查询并不能完全的把所有版本都列举出来,因为每个版本都与系统版本和CPU架构有关,比如一个软件支持Ubuntu系统的16.04的CPU架构为am.... Read More >
201903-20 centos7/rhel7安装vsftpd centos7/rhel7安装vsftpd 环境: [root@laofuxi.com ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) [root@laofuxi.com ~]# getenfor.... Read More >
201903-19 centos/rhel查看RPM包里的内容 查看rpm包文件列表 [root@bogon laofuxi.com]# rpm -qpl httpd-2.4.6-88.el7.centos.x86_64.rpm /etc/httpd /etc/httpd/conf /etc/httpd/conf.d /etc/httpd/conf.d/README /etc/httpd/conf.d/autoindex.conf /etc.... Read More >
201903-19 10分钟深入了解10大Nginx配置项优化 (1)nginx运行工作进程个数,一般设置cpu的核心或者核心数x2 如果不了解cpu的核数,可以top命令之后按1看出来,也可以查看/proc/cpuinfo文件 grep ^processor /proc/cpuinfo | wc -l [root@lx~]# vi/usr/local/nginx1.10/conf/nginx.conf worker_processes .... Read More >
201902-26 docker下的zabbix删除主机时提示Fatal error Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in usrlocalsrczabbixfrontendsphpincludeclassesdebugCProfiler.php on line 217 docker下的zabbix删除主机时提示 Fatal error Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in usrlocalsrczabbixfrontendsphpincludeclassesdebugCProfiler.php on line 217 解决方.... Read More >
201902-20 阿里云ECS ubuntu16.04配置lvm时 提示 /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. 解决方法 提示信息: root@iZ2ze28dczen7rjwkrna8gZ:~# pvcreate /dev/vdb1 /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal sca.... Read More >
201901-23 FTP传输一定要注意使用二进制模式 现象: ftp工具(FileZilla)上文件到vsftpd服务器,然后再下载到本地,比较上传前和下载后的相同文件,md5值不一样。 解决方法: ftp客户端(FileZilla)修改传输模式,把上传模式从“自动选择”改成“二进制模式”即可完美解决问题。 FT.... Read More >
201901-11 CentOS7.6升级openssh-7.9p1 CentOS7.6升级openssh-7.9p1,CentOS7.6源码安装openssh-7.9p1 操作系统版本 [root@localhost src]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core.... Read More >
201901-11 centos6.8改系统语言成中文简体 1、在root权限下 切换到root下: su -l root 查看当前语言环境:locale -a (注意中间有空格) 如果看到 zh_CN.UTF-8(这个是中文简体)说明你的系统支持中文语言。 2、编辑i18n配置文件: vi /etc/sysconfig/i18n 进行如下配置并保存退出: #LANG="en_US.UTF-8" LANG=.... Read More >
201901-10 安装linux 系统报错:No DEFAULT or UI configuration directive found 解决方法 在报错信息后面的boot命令行输入: /isolinux/vmlinuz initrd=/isolinux/initrd.img 如果不行 重新输入 /isolinux/vmlinuz initrd=/isolinux/initrd.img xdriver=vesa nomodeset boot: /isolinux/vmlinuz initrd=/isol.... Read More >
201901-05 linux下lvm操作详解 环境 操作系统:CentOS Linux release 7.6.1810 (Core) 硬盘设备:3块100G硬盘(/dev/sdb、/dev/sdc、/dev/sdd) 过程:/dev/sdb和/dev/sdb合成一块lvm挂载在/data/目录,之后加入/dev/sdd,扩容/data/目录大小。 操作过程 /dev/sdb分区 [root@laofuxi.c.... Read More >
201901-04 linux下查看磁盘分区的文件系统格式 df -T 只可以查看已经挂载的分区和文件系统类型。 Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/sda1 ext4 20642428 3698868 15894984 19% / tmpfs tmpfs 32947160 0 32947160 0% /dev/shm fdisk -l 可以显示.... Read More >
201812-20 centos7下编译安装cmake-3.13.2 安装wget [root@laofuxi.com src]# yum -y install wget 下载源码 [root@laofuxi.com src]# wget https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2.tar.gz 解压源码 [root@laofux.... Read More >
201811-28 Linux下如何批量修改文件名 对于在Linux中修改文件名的方式一般我们会用mv命令进行修改,但是mv命令是无法处理大量文件修改名称。 但是在处理大量文件的时候该如何进行批量修改呢? 方法一:mv配合for循环方式进行修改 [root@show day74]# for name in `ls *.txt`;do echo $name ${name%.txt}.jpg;done 100.txt 100.jpg.... Read More >
201811-23 RHEL/CentOS如何查看RPM包的依赖关系 RHEL/CentOS如何查看RPM包的依赖关系 通过rpm命令查看gcc包的依赖关系 [root@laofuxi.com rpms]# rpm -qpR gcc-4.8.5-28.el7_5.1.x86_64.rpm /bin/sh /bin/sh /bin/sh /sbin/install-info /sbin/install-info binutils.... Read More >
201811-22 linux如何让history命令显示具体时间 在文件末尾添加 [root@laofuxi.com ~]# vim /etc/profile HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S " export HISTTIMEFORMAT 然后执行下面命令立即生效 [root@laofuxi.com ~]# source /etc/profile 效果 [root@laofux.... Read More >