【CentOS7安装MongoDB-4.0】教程文章相关的互联网学习教程文章

【Linux笔记(001) 】-- centos7 系统目录结构与文件【图】

一、目录结构与用途:  /boot:系统引导文件、内核  /bin:用户的基本命令  /dev:设备文件  /etc:配置文件  /home:用户目录  /root:root用户目录  /sbin:管理类的基本命令  /tmp:临时文件存放地  /usr:共享的只读数据  /mnt:临时文件系统挂载点  /media:移动设备挂载点  /opt:第三方应用程序的安装位置  /srv:系统运行的服务用到的数据  /var:变化的数据文件  /proc:用于输出内核与进程...

centos7安装nagios【代码】【图】

一、服务端配置: 安装软件: yum -y install nagios nagios-plugins nagios-plugins-all nagios-plugins-nrpe nrpe修改nagios主配置文件:vim /etc/nagios/nagios.cfg cfg_dir=/etc/nagios/conf.d #确保其中有这行代码修改cgi配置文件,添加用户:vim /etc/nagios/cgi.cfg authorized_for_system_information=nagiosadmin,lee authorized_for_configuration_information=nagiosadmin,lee authorized_for_system_command...

linux-centos7中lnmp服务器编译安装含systemctl启动service(转)

centos7 nginx mysql php 可以分开安装 然后在配置nginx互php的先安装一些必要的库-------------------------------------------------------------------------------------------------------------默认的旧启动脚本NGINX:nginx-1.7.12http://bbs.qcloud.com/thread-10359-1-1.htmlPHP:php-5.5.23http://bbs.qcloud.com/thread-10359-1-1.html数据库: mysql5.7http://bbs.qcloud.com/thread-42985-1-1.html(数据库:mariad...

centos7 快速安装 mariadb(mysql)

nbsp; centos7 快速安装 mariadb(mysql) 默认安装 mariadb 5.5。如果安装 mariadb 10.0 需要修改源Centos 使用YUM安装MariaDB出于安全考虑,不应该使用 root安装。所以应该新建一个用户 CentOS 7中MARIADB安装配置步骤详解 原文:http://www.cnblogs.com/diylab/p/4232429.html

centos7下 LAMP环境搭建--mysql安装

安装MySQLMySQL的几个常用安装包:rpm、源码、二进制免编译 cd /usr/local/srcwget http://mirrors.sohu.com/mysql/MySQL-5.6/mysql-5.6.35-linux-glibc2.5-x86_64.tar.gztar zxvf mysql-5.6.35-linux-glibc2.5-x86_64.tar.gzmv mysql-5.6.35-linux-glibc2.5-x86_64 /usr/local/mysqlcd /usr/local/mysqluseradd mysqlmkdir /data/./scripts/mysql_install_db --user=mysql --datadir=/data/mysqlcp support-files/my-default.cnf ...

centos7 jexus在vmware下能访问,主机访问不了解决方案

能PING通,访问不了web,先在CMD测试telnet ip 80看看是否是防火墙的问题. 修改防火墙,打开指定端口1 安装iptables[root@centos ~]# yum install iptables-services设置防火墙规则 (增加80端口)[root@centos ~]# vim /etc/sysconfig/iptables打开文件,增加80端口那一行*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [0:0]-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT-A INPUT -p icmp -j ACCEPT...

centos7 Firewalld操作集合【代码】

=============================================== 2019/4/15_第1次修改 ccb_warlock ===============================================由于一直使用centos7的环境,所以接触的防火墙比较多的是firewalld而不是iptable,之前一直没有好好总结过firewalld的用法,这次做个整理。我将firewall-cmd命令的操作分成了2部分:常用和其他。其中常用是我在最近几年使用centos7时用的次数较多的操作。 一、常用操作1)...

CentOS7 yum方式安装MySQL5.7 + 远程连接【代码】【图】

1 下载并安装MySQL官方的 Yum Repository[root@localhost ~]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm 使用上面的命令就直接下载了安装用的Yum Repository,大概25KB的样子,然后就可以直接yum安装了。[root@localhost ~]# yum -y install mysql57-community-release-el7-10.noarch.rpm 之后就开始安装MySQL服务器。[root@localhost ~]# yum -y install mysql-community-server 这步...

centos7安装mysql-5.5.60【代码】

1.安装之前的准备 卸载centos7自带的mariadbrpm -qa|grep mariadb #查看一下是否有mariadb相关的包 rpm -e --nodeps mariadb-libs-5.5.52-1.el7.x86_64 #把查询到的包卸载下载mysql安装包 wget https://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.60.tar.gz下载cmake安装包 wget https://cmake.org/files/v3.10/cmake-3.10.2.tar.gz添加mysql用户和组 groupadd mysql useradd mysql -s /sbin/nologin -M -g mysql ...

CentOS7修复MBR和GRUB【图】

CentOs7修复MBR和GRUB一、修复MBR: MBR(Master Boot Record主引导记录): 硬盘的0柱面、0磁头、1扇区称为主引导扇区。其中446Byte是bootloader,64Byte为Partition table,剩下的2Byte为magic number。 备份MBR: #dd if=/dev/sda of=/root/mbr.bak count=1 bs=512 破坏bootloader: #dd if=/dev/zero of=/dev/sda count=1 bs=512 修复方式: 1、借助其他系统挂载磁盘修复。 ...

CentOS7.2 安装iptables【图】

1 先检查是否安装了iptables:service iptables statusiptables -L ls /etc/sysconfig/ 综上:命令报错,且 iptables不存在,那就说明没有安装2、禁用/停止自带的firewalld服务 查看firewalld状态systemctl status firewalld停止firewalld服务systemctl stop firewalld 禁用firewalld服务systemctl mask firewalld 禁用firewalld开机启动systemctl disable firewalld.service 3、安装iptables yum install -y iptables 原文:h...

初识centos7与centos6的区别

centos6和centos7的区别命令centos6centos7备注ifconfig有有 yum insall -y net-toolsrouet有有 yum insall -y net-toolsntpd服务和ntpdate命令有有 yum install ntp ntpdatecat /etc/issue有版本号无信息,只能查看cat /etc/redhat-release setup 能更改网络配置setup去除了防火墙和网路配置 通过安装 yum install NetworkManager-tui -ynmtui 命令取代了 setup中的网络配置时区和时间设置/etc/sysconfig/clock等文件timedatectl...

CentOS7 使用ntp设置系统时间,开机自动设置时间,【代码】

首先如果没有安装ntp自己装一下:yuminstall -y ntp 然后,如果开了防火墙,记得打开自己的123端口,该端口是ntp用来同步时间的firewall-cmd --zone=public --add-port=123/udp --permanent firewall-cmd --reload 然后配置ntp:vi /etc/ntp.conf将原来的server都注掉:如果自己是时间服务器服务端,那么添加内容如下:server 127.127.1.0 fudge 127.127.1.0 stratum 11如果自己是时间服务器的客户端,那么添加内容如下:server [时...

centos7 禁用每次sudo 需要输入密码

安装完centos7后,默认没有启用sudo,首先应该是对sudo进行设置。sudo的作用就是使当前非root用户在使用没有权限的命令 时,直接在命令前加入sudo,在输入自己当前用户的密码就可以完成root用户的功能,而不必在每次使用su -来回切换用户了。sudo的配置文件位于/etc/sudoers,需要root权限才可以读写。找到root ALL=(ALL) ALL这一行,在后面再加上一行就可以了(不用引号):“username ALL=(ALL) ALL” 其中username为指定的使用s...

centos7 crontab 计划任务【代码】

yum install vixie-cronyum install crontabs/bin/systemctl restart crond.service #启动服务/bin/systemctl reload crond.service #重新载入配置/bin/systemctl status crond.service #查看crontab服务状态1、crontab相关命令功能说明:设置计时器。语  法:crontab [-u <用户名称>][配置文件] 或 crontab [-u <用户名称>][-elr]补充说明:cron是一个常驻服务,它提供计时器的功能,让用户在特定的时间得以执行预设的指令...