随笔分类 -  linux

centos 磁盘扩容
摘要:lvextend -l +100%FREE /dev/centos/root #扩展逻辑分区至分区组最大可用空间 xfs_growfs #逻辑分区文件系统扩容至最大可用 resize2fs #逻辑分区文件系统扩容至最大可用 partprobe #fdisk分区建完 lsblk不显示 lsblk #查 阅读全文

posted @ 2024-01-10 16:25 jonney_wang 阅读(26) 评论(0) 推荐(0)

centos MongoDB
摘要:从官网下载tgz格式包,解压后创建data目录和logs目录,然后建立mongod.conf 配置和服务单元 mongo.service mongod.conf #数据库数据存放目录 dbpath=/usr/local/mongodb-5.0.10/data #数据库日志存放目录 logpath=/ 阅读全文

posted @ 2022-08-03 18:00 jonney_wang 阅读(60) 评论(0) 推荐(0)

netcore centos unit服务文件
摘要:[Unit] Description=coreApiService [Service] Type=simple WorkingDirectory=/usr/local/app/netcore ExecStart=/usr/bin/dotnet CoreApi.dll #Restart=on-fail 阅读全文

posted @ 2022-04-19 09:16 jonney_wang 阅读(37) 评论(0) 推荐(0)

Nginx 1.8 单元控制文件
摘要:[Unit] Description=The NGINX HTTP and reverse proxy server After=syslog.target network-online.target remote-fs.target nss-lookup.target Wants=network- 阅读全文

posted @ 2020-11-11 11:12 jonney_wang 阅读(158) 评论(0) 推荐(0)

mysql 单元控制文件
摘要:[Unit] Description=MySQL Server 5.7.27 Documentation= After=network-online.target remote-fs.target nss-lookup.target Wants=network-online.target [Serv 阅读全文

posted @ 2020-11-10 10:26 jonney_wang 阅读(160) 评论(0) 推荐(0)

redis 单元控制文件
摘要:[Unit] Description=Redis 6.0.9 After=network-online.target remote-fs.target nss-lookup.target Wants=network-online.target [Service] Type=forking ExecS 阅读全文

posted @ 2020-11-10 09:56 jonney_wang 阅读(133) 评论(0) 推荐(0)

devtoolset对应gcc的版本
摘要:devtoolset对应gcc的版本 devtoolset-3对应gcc4.x.x版本devtoolset-4对应gcc5.x.x版本devtoolset-6对应gcc6.x.x版本devtoolset-7对应gcc7.x.x版本 安装devtoolset包yum install centos-re 阅读全文

posted @ 2020-11-09 21:25 jonney_wang 阅读(1550) 评论(0) 推荐(1)

centos防火墙与docker的关系
摘要:之前也折腾过在win10里hyperv虚拟过centos,然后在centos里装docker,因为总觉得在win0 里直接玩docker别扭。 今天要说的是如标题,centos防火墙与docker的关系。 1、如果 systemctl restart docker 之前是关闭防火墙状态,那么dock 阅读全文

posted @ 2020-11-03 21:38 jonney_wang 阅读(1725) 评论(0) 推荐(0)

MySQL CentOS7 手动安装
摘要:手动安装MySQL的目的: 1、一个服务器上可以同时装多个版本,甚至相同版本MySQL的多个实例,这种需求很常见; 2、一次初始化和配置后,可以快速复制到本服务器或其他服务器,及封装为初始MySQL的绿色版; 3、调查问题时,只要找到MySQL的Home,所有资源都在里面。 手动安装要达到的目标: 阅读全文

posted @ 2019-07-31 21:32 jonney_wang 阅读(4058) 评论(0) 推荐(0)

centos7 SELinux
摘要:1、查看SELinux的状态 2、临时关闭SELinux 3、开启SELinux 4、查看具体项的状态,如关键字 ftp 5、修改某项的值,例如 ftpd_full_access 阅读全文

posted @ 2019-07-28 18:07 jonney_wang 阅读(669) 评论(0) 推荐(0)

centos7 install mysql5.7.27
摘要:1、yum 安装 wget 2、下载MySQL 的yum repo 3、安装 mysql57-community-release-el7-11.noarch.rpm 4、查看是否安装成功 5、修改yum仓库源 6、正式安装 7、查看安装结果 8、查看MySQL服务状态 9、启动MySQL服务 10、 阅读全文

posted @ 2019-07-28 00:23 jonney_wang 阅读(242) 评论(0) 推荐(0)

centos7 防火墙
摘要:# 查询端口是否开放firewall-cmd --query-port=8080/tcp # 开放80端口firewall-cmd --permanent --add-port=80/tcpfirewall-cmd --permanent --add-port=8080-8085/tcp # 移除端 阅读全文

posted @ 2019-07-27 13:41 jonney_wang 阅读(272) 评论(0) 推荐(0)

导航