一、目录操作命令 ls命令 — 功能说明:显示文件和目录列表。 — 命令格式:ls [参数] [<文件或目录> …] — 常用参数: -a : 不隐藏任何以“.”字符开始的条目。 -b : 用八进制形式显示非打印字符。 -R : 递归列出所有子目录。 -d : 当遇到目录时,列出目录本身而非目录内的文件,并且不跟随符号链接。 -F : 在条目后加上文件类型的指示符号(*, /, =...
问题:Terminal主机名显示bogon解决方案:一、使用hostname命令[root@bogon ~]# hostname localhost[root@bogon ~]# su这样只是临时更改主机名为localhost,重启后还是会恢复为bogon。二、修改linux主机的配置文件/etc/hostname 和 /etc/hosts,这种方式修改后系统重启依旧有效。(推荐)1.修改/etc/hostname里面的主机名字。(该步骤可省略)# vim /etc/hostname#localhost.localdomain//屏蔽这一行localhost//新增这行或者采用命...
配置环境变量进入环境变量配置目录,这里需要切换到root用户:cd /etc/profile.d创建配置文件:touch hive-1.1.0.sh打开配置文件:vi hive-1.1.0.sh配置环境变量:#set hive environmentHIVE_HOME=/home/hadoop/hive-1.1.0PATH=$HIVE_HOME/bin:$PATHCLASSPATH=$CLASSPATH:$HIVE_HOME/libexport HIVE_HOMEexport PATHexport CLASSPATH保存退出::wq!切换到hadoop用户立即生效:source /etc/profile原文:http://4002804.blog.51cto...
修改vi /etc/hosts127.0.0.1 Server_China localhost.localdomain localhost修改vi /etc/sysconfig/networkHOSTNAME=Server_China输入下面命令生效#hostname Server_China原文:http://www.cnblogs.com/Mrhuangrui/p/4666557.html
【Q1 升级的原因?】
CENTOS7.6默认安装的7.4版本存在一些安全漏洞,被第三方网络安全公司给扫描出来了,故而不得不升级到OpenSSH7.7及以上。
那么,为什么不升级到目前最新版的8.4呢?
主要是考虑到:1)服务器环境是客户的生产环境;2)担心8.x不兼容7.x;
综上,在OpenSSH的诸多发布版本中,选中了 7.x 版本中的最高版本————7.9【Q2 为什么要写这篇博文?】
升级OpenSSH,其实本身就是一项高危操作,不得不提高警惕,写得清清...
1、centos7-1908下载地址:[https://mirrors.aliyun.com/centos/7.7.1908/isos/x86_64/]2、选择下载的镜像:3、首先检查Windows的网络右击“以管理员身份运行 4、开始创建虚拟机: 选择两次 成功时区上海 最小化安装设置root密码 编写ip网卡vi /etc/sysconfig/network-scripts/ifcfg-ens33关闭防火墙和selinux:systemctl stop firewalld.servicesetenforce 0永久关闭防火墙和selinux...
前言一台服务器上有多个tomcat环境,重启服务器后,每次需要手动一个个启动服务,非常麻烦,于是可以设置tomcat开机自启动。
tomcat开机自启动非常慢,可以修改jvm下配置解决tomcat开机自启动慢的问题。
前面一篇【Linux学习10-CentOS搭建nginx负载均衡环境】已经搭建了多个tomcat环境开机自启动前面一篇https://www.cnblogs.com/yoyoketang/p/10186513.html 通过systemctl可以设置开机自启动systemctl enable tomcat本篇介绍修改/...
首先去curl 官方的Github,找curl的源码wget https://github.com/curl/curl/archive/refs/tags/curl-7_76_0.tar.gz || wget http://download.zhufunin.com/curl-7_76_0.tar.gz
因为curl源码,默认没有configure 文件,需要用buildconf生成./buildconf源码编译安装curl需要开启https访问的功能,需要用到openssl, 首先用源码编译安装最新的openssl, 安装步骤,见链接#请确保/usr/local/openssl/是openssl源码安装的目录
./configur...
此文档用于记录自己遇到的问题和解决办法! 1、CentOS执行ftp命令提示ftp:command not found解决方法centos7.3.1611 安装ftp 客户端工具[root@airocov ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
cat /etc/redhat-release
http://mirror.centos.org/centos/7/os/x86_64/Packages/ftp-0.17-67.el7.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/7/os/x86_64/Packages/ftp-0.17-67.el7.x86_64.rpm原...
1. 安装PostgreSQL源# yum install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-1.noarch.rpm在添加源的步骤中并没有太多的区别,主要是源的地址有一定的变化执行安装命令# yum install postgresql94-server postgresql94-contrib验证是否安装成功# rpm -aq| grep postgres执行结果如下postgresql94-libs-9.4.1-1PGDG.rhel7.x86_64
postgresql94-server-9.4.1-1PGDG.rhel7.x86_64
postgresql94-9.4.1-1...
一、安装前1、关闭linux的安全机制vim /etc/selinux/configSELINUX=enforcing 改为 SELINUX=disabled 2、关闭iptables防火墙 vim /etc/sysconfig/iptables #把里边的条例全部dd删除掉,wq保存退出 service iptables stop #关闭iptables chkconfig iptables off #开机不自启动iptables 3、配置yum源(本地,网络都可以)#如果能上网的话建议配置网络yum源详细如何配置yum请阅读 http://blog.csdn.ne...
1、下载安装pcre,nginx依赖于pcrewget https://sourceforge.net/projects/pcre/files/pcre/8.38/pcre-8.38.tar.gztar -zxvf pcre-8.38.tar.gzcd pcre-8.38./configuremakemake install 2、下载nginxwget http://nginx.org/download/nginx-1.9.12.tar.gztar -zxvf nginx-1.9.12.tar.gzcd nginx-1.9.12./configuremakemake install 3、创建nginx用户groupadd wwwuseradd -g www www 4、如果启动报错ln -s /usr/local/lib/libpcre.s...
vmware 虚拟机中的一台centos 7 机器根分区空间不足需要扩容一下。通过编辑虚拟机设置先对硬盘大小进行修改df -h 查看分区空间650) this.width=650;" src="/upload/getfiles/default/2022/11/10/20221110060319898.jpg" title="1.png" />fdisk -l 查看已分区数量650) this.width=650;" src="/upload/getfiles/default/2022/11/10/20221110060320539.jpg" />650) this.width=650;" src="/upload/getfiles/default/2022/11/10/2022...
LSI 9271
步骤1:准备升级工具和固件包
rpm -ivh MegaCli-8.07.14-1.noarch.rpm? [root@phegdata01 ~]# unzip 23-34-0-0005_SAS_2208_FW_IMAGE_APP_3-460-05-4565.zip
Archive: 23-34-0-0005_SAS_2208_FW_IMAGE_APP_3-460-05-4565.zipinflating: 240_VD_Feature_Limitations_Known_Issues_Addendum_v1.0.pdf inflating: Gas Gauge Update Procedure_RevD.pdf inflating: mr2208fw.rom inflating: TFM_70-25849-04.rom inf...
1、关闭firewall:systemctl stop firewalld.service #停止firewallsudo systemctl disable firewalld.service #禁止firewall开机启动2、安装iptables防火墙yum install iptables-services #安装vi /etc/sysconfig/iptables #编辑防火墙配置文件# Firewall configuration written by system-config-firewall# Manual customization of this file is not recommended.*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEP...