centos7 centos php7 php
Centos7.9 扩展逻辑卷
1、Centos7.9 扩展逻辑卷 1.1、查看 df -h fdisk -l pvdisplay vgdisplay cat /etc/fstab [root@tcentos79 ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmp ......
CentOS 磁盘分区超过2T解决方法
yum install -y parted fdisk -l parted -s /dev/sdb mklabel gpt parted -s /dev/sdb mkpart primary 2048s 100% mkfs.xfs -f /dev/sdb1 mount /dev/sdb1 /mnt ......
centos:subprocess.CalledProcessError: Command ‘[‘ninja‘, ‘-v‘]‘ returned non-zero exit status 1
一、原因 pytorch版本大于1.5 二、解决 1、降低pytorch版本 将pytorch版本降到1.5以下 2、禁用ninjia pytorch默认使用ninjia作为backend,将其禁用。替换为以下代码 setup( ..., cmdclass={ # 'build_ext': Buil ......
13.centos8 关闭防火墙和selinux或者防火墙开启指定端口
1.firewalld 查看防火墙状态 systemctl status firewalld 关闭防火墙 systemctl stop firewalld 开机自启关闭 systemctl disable firewalld 开启防火墙 systemctl start firewalld 开放指定端 ......
centos7安装Kafka
参考:https://blog.csdn.net/yang1393214887/article/details/123425715 1. 官网下载https://kafka.apache.org/downloads https://dlcdn.apache.org/kafka/3.1.0/kafka ......
centos7安装zookeeper-3.7.2版本
1、文件下载 本文档演示安装zookeeper-3.7.2版本。 进入官网下载:https://downloads.apache.org/zookeeper/zookeeper-3.7.2/ 使用wget命令下载: su root mkdir /data/zookeeper cd /data/zoo ......
php提前返回数据,后面代码继续执行封装函数
/* 中断并返回数据,后面程序继续执行,避免用户等待(immediate) * 可用于返回值后,继续执行程序,但程序占得所以自由没有释放,一致占用,务必注意,最好给单独脚本执行 * @param string|array $data 字符串或数组,数组将被转换成json字符串 * @param in ......
12.centos8更改yum源为阿里
https://help.aliyun.com/zh/ecs/user-guide/change-centos-8-repository-addresses?spm=a2c4g.11186623.0.0.a65cad75ZzQ9Zw 1.运行以下命令备份之前的repo文件 rename '.repo ......
CentOS 7 修改 dns
一般在 linux 下修改 dns 都是修改 /etc/resolv.conf 文件,但是打开后发现有句注释 Generated by NetworkManager 所以查了一下资料,可以使用 NetworkManager 来修改 dns # 查看网络链接 nmcli connection show ......
Centos7编译安装Python
Centos 7 编译安装Python 环境准备 操作系统:Centos 7 版本:Python 3.12 下载 wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz 编译安装 # 安装依赖 yum -y install gc ......
Centos7安装Mongodb社区版
Centos 7 安装Mongodb社区版 准备环境 操作系统:Centos 7 安装包:https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-7.0.3.tgz windows 可视化工具:Studio 3T(原robot 3t) ......
阿里云centos+Docker+hadoop
在阿里云上搭建hadoop 镜像:centos 容器:docker 软件:hadoop 阿里云centos+Docker+hadoop Docker 在Centos7下面安装docker (1)移除旧版: yum remove docker \ docker-client \ docker-clie ......
CentOS 7 安装Node环境
1. 下载Node 进入Node最新版下载:https://nodejs.org/en/download/current/ 下载指定版本地址:https://nodejs.org/dist/ 本次安装v13版本地址:https://nodejs.org/dist/latest-v13.x/node- ......
CentOS7使用Docker-compose管理容器
1.容器化的概念 容器化是将应用程序代码和依赖项捆绑到一个单一的虚拟包中。 容器化应用程序通常与其他应用程序并排放置,并通过计算机、服务器或云上的共享操作系统运行。 2.容器化使用的场景 1.简化不同环境配置差异 虚拟机的最大好处是能在你的硬件设施上运行各种配置不一样的平台(软件, 系统), Doc ......
centos7上安装tkinter
报错:You must install tkinter on Linux to use MouseInfo. Run the following: sudo apt-get install python3-dev 1 # yum install -y tk tk-devel tcl tcl-deve ......
11.centos8 静态ip快速
vim /etc/sysconfig/network-scripts/ifcfg-网卡名称BOOTPROTO=staticONBOOT=yes# 设置ip地址DEVICE=网卡名称BOOTPROTO=staticIPADDR=静态IP地址NETMASK=子网掩码GATEWAY=网关地址DNS1=DN ......
Docker安装及使用(简明流程,centos7下安装)
docker三要素:镜像(image)、容器(container)、仓库(repository) centos7安装docker 安装步骤: 1:确定自己当前使用的系统版本号: 系统必须是centos7及以上版本 cat/etc/redhat-release。如上图 2:卸载旧版本(如果之前没有安装 ......
Centos8 安装GDAL
安装GDAL 下载:sqlite,proj,gdal 安装gdal前,要安装proj,安装proj时,报错,提示安装sqlite 安装sqlite 官网:https://www.sqlite.org/download.html 下载 wget -c -P /gdal https://www.sqli ......
docker于centos7下的安装配置
docker于centos7下的安装配置 导航 目录docker于centos7下的安装配置导航一、安装前的环境配置检查自己版本,必须是centos7以及以上版本 cat/etc/redhat-release卸载旧版本(如果之前没有安装过,这步可以忽略)yum 安装gcc相关安装需要的软件包设置镜像 ......
Laravel中的php artisan命令必知必会
如果您想使用 Laravel 的 Artisan 命令一次性创建控制器、模型、Seeder 和迁移文件,可以使用 --all 参数。以下是创建包含控制器、模型、Seeder 和迁移文件的示例命令: php artisan make:model Post --all 运行上述命令后,Laravel 将 ......
Centos 安装nginx
一、添加Nginx到YUM源 sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 二、安装nginx # sudo yum install - ......
阿里云 ecs绑定辅助网卡,一个ECS服务器绑定多个IP ,用于centos,其他系统可以参考
1、进入实例详情,选择网络与安全 -> 弹性网卡 2、创建网卡 3、然后创建好之后,绑定实例,我图1的是已经绑定好了的 4、进入弹性公网IP : https://vpc.console.aliyun.com/eip/ap-southeast-1/eips 5、购买ip,建议选择按量付费,没有带宽限制 ......
Centos7 使用yum从第三方仓库安装Python3.8
环境: CentOS Linux release 7.9.2009 起因: Centos 7 自带Python2.7.5版本。而默认的 YUM 安装的python3是 3.6版本,遂升级到3.8版本。 install Python3.8 yum install -y centos-release-s ......
Centos7 安装MySQL详细步骤
1.1 MySQL安装 1.1.1 下载wget命令 yum -y install wget 1.1.2 在线下载mysql安装包 wget https://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm 1.1.3 安装My ......
PHP调用java的jar包方法
制作创建测试的 jar 包 打开 idea ,文件->新建项目->java模块->选择SDK->项目名称为 calcutil 在src中新建名为Calc.java,内容如下 public class Calc { public static int add(int a,int b){ return ......
Linux: /dev/mapper/centos-root 100%
背景 在VSCode 调试程序过程中,保存文件,发现报错:[FileSystemError]no space left on device, write。 立马到ssh连接Linux,查询磁盘使用情况。 发现:/dev/mapper/centos-root 100%,磁盘使用率100%。 解决 通过 ......
Centos 中在使用 yum install 时候报错解决
1.错误:在"/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d"中没有被启用的仓库 报错如下图 查资料得知为Centos 的原件源仓库配置文件错误 https://wenku.csdn.net/answer/eb4a07cfcd4 ......
Centos7安装Redis(超详细)
Redis是一个开源的使用ANSI C语言编写、支持网络、可基于内存亦可持久化的日志型、Key-Value数据库,并提供多种语言的API。从2010年3月15日起,Redis的开发工作由VMware主持。从2013年5月开始,Redis的开发由Pivotal赞助。 下载地址:https:// ......
PHP 国密SM2 私钥公钥计算公式
1.私钥可查询出公钥;公钥无法计算私钥,注意保护私钥安全; 2.分割字符串:PHP函数substr($str,36|76); 3.HEX转base64:PHP函数base64_encode(hex2bin()); 4.base64转HEX:PHP函数bin2hex(base64_decode()); ......