随笔分类 -  Centos

摘要:# 先备份网卡配置文件 [root@xiaojing ~]# cd /etc/sysconfig/network-scripts/ [root@xiaojing network-scripts]# cp ifcfg-ens33 ifcfg-ens33.bak #生成新的UUID,并追加到网卡配置文件 阅读全文
posted @ 2023-11-05 22:48 Hexrui 阅读(1005) 评论(0) 推荐(0) 编辑
摘要:1、查看当前mysql安装状况 rpm -qa | grep mysql # 或 yum list install | grep mysql 2、查看mysql的服务是否启动 systemctl status mysqld 2.1、如果启动则关闭mysql服务 systemctl stop mysq 阅读全文
posted @ 2023-04-13 14:04 Hexrui 阅读(809) 评论(0) 推荐(0) 编辑
摘要:有关于centos7获取IP地址的方法主要有两种,1:动态获取ip;2:设置静态IP地址 在配置网络之前我们先要知道centos的网卡名称是什么,centos7不再使用ifconfig命令,可通过命令 IP addr查看,如图,网卡名为ens32,是没有IP地址的 1、动态获取ip(前提是你的路由器 阅读全文
posted @ 2022-08-05 13:15 Hexrui 阅读(295) 评论(0) 推荐(0) 编辑
摘要:问题: 重启虚拟机后,再次重启nginx会报错: open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory) 解决方法: (1)进入 cd /usr/local/nginx/conf/ 目录,编辑配置文件nginx. 阅读全文
posted @ 2021-06-23 01:11 Hexrui 阅读(1081) 评论(0) 推荐(0) 编辑
摘要:mongodb官网:https://www.mongodb.com/ 1.配置mongodb(yum源) 创建一个/etc/yum.repos.d/mongodb-org-4.2.repo文件,以便您可以使用yum以下命令直接安装MongoDB [mongodb-org-4.2] name=Mong 阅读全文
posted @ 2021-06-15 15:45 Hexrui 阅读(2506) 评论(0) 推荐(0) 编辑
摘要:1、去官网https://redis.io/下载对应的nginx包,推荐使用稳定版,上传到centos系统 /home/software/ 解压 tar -zxvf redis-5.0.5.tar.gz 或 使用linux wget命令:wget http://download.redis.io/r 阅读全文
posted @ 2021-06-11 21:17 Hexrui 阅读(782) 评论(0) 推荐(1) 编辑
摘要:1、去官网http://nginx.ong下载对应的nginx包,推荐使用稳定版,上传到centos系统 /home/software/ 解压 tar -zxvf nginx-1.18.0.tar.gz 2、安装依赖环境 # (1)安装gcc环境 yum install -y gcc-c++ # ( 阅读全文
posted @ 2021-06-07 16:49 Hexrui 阅读(228) 评论(0) 推荐(0) 编辑
摘要:JDK下载 https://www.oracle.com/java/technologies/downloads/archive/ 使用sftp工具将下载的jdk、tomcat 文件上传到Linux服务器上 /home/software JDK1.8配置 1、将jdk文件移动到/usr/local/ 阅读全文
posted @ 2021-06-07 16:13 Hexrui 阅读(152) 评论(0) 推荐(0) 编辑
摘要:1、镜像仓库 yum仓库 1.阿里云的yum仓库 2.mysql官网,也会提供rpm包,源码包,以及yum源,供给下载 yum 安装文档 https://mariadb.com/kb/en/yum/ rpm 安装文档 https://mariadb.com/kb/en/mariadb-install 阅读全文
posted @ 2021-06-07 16:00 Hexrui 阅读(652) 评论(1) 推荐(0) 编辑
摘要:systemctl命令 # 开机运行服务: systemctl enable *.service # 取消开机运行 systemctl disable *.service # 启动服务 systemctl start *.service # 停止服务 systemctl stop *.service 阅读全文
posted @ 2021-03-26 13:50 Hexrui 阅读(77) 评论(0) 推荐(0) 编辑

返回顶部
点击右上角即可分享
微信分享提示