rpmrebuild重新打包 时间: 2022-03-24 | 分类: 笔记 | 阅读: 173 字 ~1分钟 rpmrebuild的使用 安装rpmrebuild yum install rpmrebuild 制作rpm包过程较为麻烦,此处使用rpmrebuild去将本机已安装好的nginx包 阅读全文 »
使用rpmbuild制作rpm包 时间: 2022-03-24 | 分类: 笔记 | 阅读: 327 字 ~1分钟 rpmbuild 安装rpmbuild yum install rpm-build 生成rpmbuild目录结构 使用非root账户 rpmbuild -ba nginx.spec //会报错,没有文件或目录 此时会生成rpmbuild工作目录 阅读全文 »
Ubuntu搭建LNMP环境 时间: 2021-11-10 | 分类: 技术 | 阅读: 337 字 ~1分钟 安装Nginx sudo apt install nginx 安装MySQL sudo apt install mysql-server-5.7 添加php源 sudo add-apt-repository ppa:ondrej/php sudo apt update 也可以使用ppa国内源 deb https://launchpad.proxy.ustclug.org/ondrej/php/ubuntu focal main 安装PHP sudo apt install php7.4 sudo apt install php7.4-fpm 安装PHP扩展 sudo 阅读全文 »
记一次Docker mysql容器在windows虚拟机无法启动问题 时间: 2021-09-11 | 分类: 技术 | 阅读: 308 字 ~1分钟 环境 使用的环境是Windows10+homestead(VirtualBox) 启动过程 运行sudo docker-compose up -d 容器可以正常启动 运行sudo docker exec -it db-mysql 阅读全文 »
Homestead环境搭建 时间: 2021-05-18 | 分类: 笔记 | 阅读: 720 字 ~2分钟 准备工作 环境 OS: Windows 10 安装所需软件 Git Vagrant VitrualBox xshell Navicat 生成SSH Key 在用户家目录运行: cd ~ ssh-keygen -t rsa -C "youemail@homestead.com" 此时,会生成以下的文件 安装Homestead (还可以直接 阅读全文 »
Ubuntu-安装PHP启动报错php: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory解决办法 时间: 2021-05-08 | 分类: 笔记 | 阅读: 177 字 ~1分钟 Ubuntu-使用宝塔面板安装PHP后启动报错:php: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory 解决办法 前往http://security.ubun 阅读全文 »
Ubuntu-Docker的安装与使用 时间: 2021-04-29 | 分类: 笔记 | 阅读: 503 字 ~2分钟 环境配置 删除旧版本 sudo apt-get remove docker docker-engine docker.io containerd runc 更新apt包索引 sudo apt-get update 安装包以允许apt通过HTTPS使用存储库 sudo apt-get install apt-transport-https sudo apt-get install ca-certificates sudo apt-get install curl sudo apt-get install gnupg-agent sudo apt-get install software-properties-common 添 阅读全文 »
Js数组操作 时间: 2021-04-08 | 分类: 笔记 | 阅读: 2786 字 ~6分钟 类型转换 字符串 大部分数据类型都可以使用toString()函数转换为字符串 console.log(([1,2,3]).toString()); //1,2,3 也可以使用函数String转换为字符串 console.log(String([1,2,3])); 或者使用join连接为 阅读全文 »