【如何在CentOS 7中禁止IPv6】教程文章相关的互联网学习教程文章

虚拟机中CentOS指定ip

1.修改vm上网方式为 host only2.启动虚拟机3.rm -rf /etc/udev/rules.d/70-persistent-net.rules4.修改虚拟机的网络配置:  (1)vi /etc/sysconfig/network-scripts/ifcfg-eth0  (2)修改DEVICE的值为eth0  (3)删掉 HWADDR行  (4)注释掉 BOOTPROTO=dhcp   (5)添加:IPADDR=192.168.0.10X       NETMASK=255.255.255.0       GATEWAY=192.168.0.17.vi /etc/resolv.conf ,将nameserver 192.168.0....

hadoop实操之vmware虚拟机中centos配置【代码】

一、Hadoop部署方式本地模式伪分布模式集群模式二、伪分布模式安装步骤关闭防火墙修改ip修改hostname设置ssh自动登录安装JDK安装Hadoop三、配置初级环境   1.配置centos环境下的ip    首先打开终端,输入脚本命令查看虚拟机的地址1 ifconfig     然后可以通过两种方式给虚拟机配置ip,一种是通过界面操作,这里主要介绍第二种,通过使用vim编辑器修改centos的配置文件的方法1 vim /etc/sysconfig/network-scriprts...

Centos安装webbench

webbench最多可以模拟3万个并发连接去测试网站的负载能力,个人感觉要比Apache自带的ab压力测试工具好,安装使用也特别方便。  1、适用系统:Linux  2、编译安装:引用wget http://blog.zyan.cc/soft/linux/webbench/webbench-1.5.tar.gztar zxvf webbench-1.5.tar.gzcd webbench-1.5make && make install  3、使用:引用webbench -c 500 -t 30 http://127.0.0.1/test.jpg参数说明:-c表示并发数,-t表示时间(秒)  4、测试...

如何选择CentOS 7.6系统组件安装包【代码】【图】

根据经验,选择安装包时应该按最小化原则,即不需要的或者不确定是否需要的就不安装,这样可以最大程度上确保系统安全。如果安装过程落了部分包组或者其他伙伴安装时没选,再安装后可以按如下方式补上安装时未安装的包组: yum groupinstall "Compatibility libraries" "Base" "Development tools" yum groupinstall "debugging Tools" "Dial-up Networking Support"可以通过yum groupinfo 包组查看具体安装的组件。[root@19216808...

Centos新服务器需要安装的必备软件包【代码】

yuminstall -y gccgcc-c++ kernel-devel yuminstall -y pcre pcre-devel yuminstall -y zlib zlib-devel yuminstall -y openssl openssl-devel yuminstall -y vim* wget curl yuminstall -y openssl* 持续更新……原文:https://www.cnblogs.com/zhzhang/p/12034292.html

Centos6.5 qt 安装

1,centos linux系统必须预先以安装x Server(KDE or GNOME)2,wget http://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-linux-x64-5.4.0.run (软件包下载链接)http://download.qt.io/official_releases/qt/5.4/5.4.0/ (软件介质参考链接)3,问题解决Error during installation process (qt.54.gcc_64):Execution failed(Unexpected exit code: 1): "/opt/Qt5.4.0//Tools/QtCreator/bin/sdktool addQ...

Centos7安装gitlab【代码】【图】

GitLab是一个利用Ruby on Rails开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目.安装参考https://about.gitlab.com安装相关的依赖和软件包yum -y install policycoreutils openssh-server openssh-clients postfix curl policycoreutils-python openssh-serversystemctl enable postfix && systemctl start postfix systemctl enable sshd systemctl start sshd添加GitLab仓库,并安装到...

CentOS系统时间同步(NTP)【代码】

CentOS系统时间同步的步骤如下:新装的CentOS系统服务器可能设置了错误的,需要调整时区并调整时间.如下是CentOS系统使用NTP来从一个时间服务器同步把当前时区调整为上海就是+8区,想改其他时区也可以去看看/usr/share/zoneinfo目录:cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime用ntpdate同步标准时间:ntpdate us.pool.ntp.org备注:没有安装ntpdate的可以yum一下:yum install -y ntpdate加入定时计划任务,每隔10分钟同步一...

CentOS 7 配置IP【图】

开机后正常出现下图在localhost login后面输入root,然后回车。Password后面输入密码,Linux密码是不显示的,所以不能输错,不然只能重新输入 localhost login 登录` Password 口令:密码进入系统后为方便以后远程连接,首先需要先给服务器配置IPdhclient 自动获取IPip addr 查看当前ip、网卡这个就是刚才自动获取到的IP在VM上配置系统用的IP段是在VM左上角的“编辑--虚拟网络编辑器”里修改的由于需要远程连接服务...

centos7 开放3306端口并可以远程访问

开启远程访问: GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘root‘ WITH GRANT OPTION; 允许任何ip以root用户登录flush privileges;立即生效 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。1、关闭firewall:systemctl stop firewalld.servicesystemctl disable firewalld.servicesystemctl mask firewalld.service2、安装iptables防火墙yum install iptables-services -y3.启动设置防...

Linux centos 下在线安装mysql【图】

首次安装Mysql,通过在线安装方便快捷。 1,查看是否有安装过mysql: #rpm -qa | grep mysql 如果无结果返回,说明没有安装Mysql,可以全新安装。 2,查看在线服务器提供的Mysql相关的安装包有哪些: #yum list | grep mysql 650) this.width=650;" src="/upload/getfiles/default/2022/11/11/20221111012724223.jpg" title="mysql-yum list.jpg" /> 3,安装这几个就可以: #yum install mysql mysql-serve...

Centos 6.6 创建桌面图标【代码】

#!/usr/bin/env xdg-open [Desktop Entry] Version=1.0 Type=Application Name=PhpStorm Icon=/root/Downloads/PhpStorm/bin/webide.png Exec="/root/Downloads/PhpStorm/bin/phpstorm.sh" %f Comment=Develop with pleasure! Categories=Development;IDE; Terminal=false StartupWMClass=jetbrains-phpstorm #!/usr/bin/env xdg-open 这句话一定要有 参考http://blog.chinaunix.net/uid-26495963-id-3409921.htmlhttp://blog.1...

centos7安装显示中文【代码】

系统通过环境变量LANG设置语言格式编码查看当前语言环境echo $LANG查看是否安装中文语言,Linux中通过locale来设置程序运行的不同语言环境locale -a | grep ‘zh‘如果没有中文,安装中文yum install kde-l10n-Chinese安装glibc-common检查是否安装yum list installed | grep glibc 或 rpm -qa | grep glibc重装yum reinstall glibc-common临时设置中文,reboot重启后失效export LANG="zh_CN.utf8"  //export设置或显示系统环境变...

centos7安装zabbix5.0+postgresql(TSDB)【代码】【图】

基础环境: centos7(关闭防火墙、selinux)PHP 7.2postgresql 12.4时间同步1、yum源准备rpm -ivh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm #zabbix5.0的yum源 sed -i "s#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#g" /etc/yum.repos.d/zabbix.repo #换为阿里的源,下载速度会快一点 useradd zabbix #添加zabbix用户2、zabbix安装yum install zabbix-server-pgsq...

centos7 安装docker-ce ,最新版本docker,docker阿里云加速【代码】

直接用yum install docker -y安装的docker版本为1.12,但是docker发展很快,现在都17.06.2了。docker-ce是指docker的社区版卸载老版本的 docker 及其相关依赖sudo yum remove docker docker-common container-selinux docker-selinux docker-engine安装 yum-utils,它提供了 yum-config-manager,可用来管理yum源sudo yum install -y yum-utils添加yum源sudo yum-config-manager --add-repo https://download.docker.com/linux/cen...