自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

原创 2021-08-17

gomod 模式,解决引入pkg下第三方包飘红gomod包管理方式,第三方包是下载到pkg/mod 目录下,go 1.12 之后安装完不用再配置环境变量了使用gomod1、Gopath=/user/gospace/prjpath # 项目路径2、cd ~/prjpath/src/ go mod init (go mod init github/com) 这一步会产生go.mod文件,其下还有go.sum。3、环境配置 GO111MODULE=“on”这个时候可以在终端例如 go get -u

2021-08-17 17:26:11 70

原创 Centos8下yum/dnf安装php

1、安装Remi存储库dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm2、更新系统默认的php模块dnf module reset php #重置php模块dnf module enable php:remi-7.3 #默认设置为remi-7.3版本3、安装php7.3及一些常用模块yum -y install php php-mysqlnd php-gd php-xml php-mb

2021-03-22 13:16:24 786

原创 记一次贼干净的服务器搭建步骤

nginx1. 安装Nginx运行所需要的插件。a. 安装gcc。gcc是Linux下的编译器,它可以编译C、C++、Ada、Object C和Java等语言yum -y install gccb. 安装pcre。pcre是一个perl库,Nginx的HTTP模块使用pcre来解析正则表达式。yum install -y pcre pcre-develc. 安装zlib。zlib是一个文件压缩和解压缩的库,Nginx使用zlib对HTTP数据包进行gzip压缩和解压。yum ins

2021-03-18 13:38:33 260 2

原创 nginx 服务部署,映射本地目录到nginx容器 遇到的问题

win10的虚拟机上docker安装官方镜像,首先虚拟机挂载了本地d:vagrant目录。挂载本地nginx配置文件时报错:docker run --rm -d -p 8081:80 --name nginx-test \ -v /vagrant/my-test/nginx/www:/usr/share/nginx/html \ -v /vagrant/my-t est/nginx/conf/nginx.conf:/etc/nginx/nginx.conf \ -v /vagrant/my-test

2021-01-19 14:20:14 1447

转载 主机访问不了 vagrant 的 nginx

主机访问不了 vagrant 的 nginx在虚拟机安装完nginx后,此时虚拟机能够访问nginx的80端口,但是主机无法访问虚拟机的nginx,可能是端口没有开放。此时需要关闭防火墙firewalld#systemctl stop firewalld.service#停止firewall#systemctl disable firewalld.service#禁止firewall开机启动如果同时配置了iptables,也需要关闭停止防火墙 : [root@localhost ~]

2021-01-19 11:12:58 317

原创 build dockerfile的采坑日记

错误1 域名解析失败 - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org]Error: Failed to download metadata for repo 'AppStre

2020-11-07 15:32:59 546

原创 CentOS8找不到python-pip 解决方案

安装epel :yum install -y epel-release;启用epel :yum install -y yum-utils && yum-config-manager --enable epel;安装pip :yum install -y python-pip;更新pip:pip install --upgrade pip;

2020-11-05 10:29:59 2139

转载 2020-09-26

vagrant+centos 配置共享文件件

2020-09-26 13:44:41 58

原创 centos下php源码安装

下载源码包 gz/bz2解压 tar -xjvf(gz文件)/-xjvf(bz2文件)进入解压后目录 安装必须工具 yum -y install libxml2 yum -y install libxml2-devel yum install sqlite-devel配置 ./configure --prefix=自定义安装目录如果遇到configure: error: cannot run C compiled programs. 运行uname -m查看系统 在重复命令加上--ho.

2020-09-18 11:52:08 165

原创 nginx ssh证书配置问题

nginx: [emerg] the “ssl” parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:开启ssk模块找到你安装的源码包(不是/usr/local/nginx)是那个带有版本号的位置。也就是你安装解压之后的文件 执行命令./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_s

2020-08-23 16:30:58 567

转载 homestead更改nginx配置,解决413 Request Entity Too Large

homestead更改nginx配置,解决413 Request Entity Too Largehttps://blog.csdn.net/noobman/article/details/106220955

2020-08-15 15:15:39 635

原创 mysql-8.0.20-winx64安装时 MySQL 服务正在启动 MySQL 服务无法启动

服务没有报告任何错误。 请键入 NET HELPMSG 3534 以获得更多的帮助不需要手动创建data,我下载的压缩包解压后既没有data文件夹也没有.ini配置文件。这些不用我们自己创建查看错误 :mysqld --console2020-07-01T02:50:02.526594Z 0 [System] [MY-010116] [Server] D:\soft\mysql\bin\mysqld.exe (mysqld 8.0.20) starting as process 18804202

2020-07-01 11:02:16 2228 4

原创 vagrant安装homestead 遇到的bug

vagrant安装homestead 遇到的bugwin10开发环境:homestead虚拟机不加载.ymal配置文件,导致挂载目录不生效等问题 删除虚拟机vagrant destroy删除homestead文件夹重新git clone https://github.com/laravel/homestead.git Homestead不要 bash init.sh,该命令将初始化Vagrantfile文件;初始化后Vangrantfile将不再引用homestead.yaml文件

2020-06-30 16:24:07 125

转载 docker构建golang分布式带依赖库项目镜像

docker构建golang分布式带依赖库项目镜像(https://blog.csdn.net/u012740992/article/details/91841021)

2020-06-17 15:08:58 138

原创 centos下docker安装及使用

centos下docker安装及使用1.卸载老版本$ sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ ...

2020-04-09 16:09:35 69

原创 elasticsearchan安装

1. yum方式下载安装java 服务器系统:centos7 64bit jdk版本:jdk1.7 64bit命令:# yum install java-java-1.8.0-openjdk.x86_64成功后显示:Dependency Installed: pcsc-lite-libs.x86_64 0:1.8.8-8.el7 ...

2019-10-28 12:32:53 2904

转载 PHP算法总结

php算法总结,方便自己查阅转载https://blog.csdn.net/qq_36045946/article/details/80751831

2019-10-09 11:00:11 108

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除