随笔分类 -  linux

windows上使用VirtualBox 安装Ubuntu Server 搭建lnmp开发环境
摘要:1、使用VirtualBox 安装好 Ubuntu Server 2、在ubuntu上安装好lnmp环境 3、设置共享文件夹 4、在Ubuntu Server上安装VirtualBox 增强功能 设备 -> 安装增强功能 挂在镜像 sudo mount /dev/cdrom /mnt 安装 cd / 阅读全文
posted @ 2023-08-28 16:09 whlives 阅读(29) 评论(0) 推荐(0) 编辑
supervisor 使用
摘要:centos安装 yum install supervisor 主配置文件位置 /etc/supervisord.conf 子进程配置文件位置 /etc/supervisord.d/ 注:默认子进程配置文件为ini格式,可在supervisor主配置文件中修改。 使用supervisor进程管理命令 阅读全文
posted @ 2020-11-13 11:40 whlives 阅读(232) 评论(0) 推荐(0) 编辑
jenkins 相关
摘要:一、安装 centos 因为yum安装jenkins非常慢所以可以直接下载rmp文件进行安装,在yum安装的时候只安装java就可以(yum install java-1.8.0-openjdk-devel) https://mirrors.tuna.tsinghua.edu.cn/jenkins/ 阅读全文
posted @ 2020-07-15 15:06 whlives 阅读(182) 评论(0) 推荐(0) 编辑
docker 常用命令
摘要:查看正在运行的镜像 docker ps 重启镜像 docker restart 容器id 进入容器命令 docker exec -it 容器id /bin/bash 阅读全文
posted @ 2020-04-13 09:35 whlives 阅读(345) 评论(0) 推荐(0) 编辑
安装docker docker (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best 错误
摘要:安装docker时遇到 Error: Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed - c 阅读全文
posted @ 2020-04-11 15:07 whlives 阅读(5925) 评论(0) 推荐(0) 编辑
使用walle部署laravel的时候问题记录
摘要:1、使用walle部署laravel的时候检出后执行composer update提示 [RuntimeException]The HOME or COMPOSER_HOME environment variable must be set for composer torun correctly 阅读全文
posted @ 2019-04-12 21:33 whlives 阅读(492) 评论(0) 推荐(0) 编辑
linux 安装node.js 和npm
摘要:去https://nodejs.org/en/download/复制安装包地址 node -v npm -v 测试是否成功 由于官方镜像比较慢,直接执行以下命令,将镜像地址改为淘宝的npm镜像地址 npm config set registry https://registry.npm.taobao 阅读全文
posted @ 2019-02-19 10:18 whlives 阅读(547) 评论(0) 推荐(1) 编辑
阿里云服务器报 Liunx异常文件下载处理办法
摘要:阿里云服务器报 Liunx异常文件下载、挖矿进程、SSH远程非交互式一句话异常指令执行 清除办法 1、删除crontab里面的自启动脚本 2、删除authorized_keys 里面密匙 3、删除#/var/spool/cron下的自启动脚本,root和crontabs 4、删除/etc/cront 阅读全文
posted @ 2018-04-10 13:30 whlives 阅读(402) 评论(0) 推荐(0) 编辑
使用docker安装sentry
摘要:一.安装docker 更换docker镜像源为中科大的 在配置文件/etc/docker/daemon.json中加入 安装pip 安装docker-compose 启动docker服务 二.安装sentry 1.克隆onpremise然后进入onpremise文件夹 按照remind.md 一步步 阅读全文
posted @ 2018-03-01 16:16 whlives 阅读(462) 评论(0) 推荐(0) 编辑
Centos 7防火墙firewalld开放端口
摘要:出现success表明添加成功 命令含义:--zone #作用域--add-port=80/tcp #添加端口,格式为:端口/通讯协议--permanent #永久生效,没有此参数重启后失效 重启 阅读全文
posted @ 2018-03-01 15:35 whlives 阅读(149) 评论(0) 推荐(0) 编辑
Linux SSH登录服务器报ECDSA host key "ip地址" for has changed and you have requested strict checking错误
摘要:错误:ECDSA host key "ip地址" for has changed and you have requested strict checking. 解决方案:在终端上输入以下命令: 目的是清除你当前机器里关于你的远程服务器的缓存和公钥信息,注意是大写的字母“R”。 原因分析:云服务器重 阅读全文
posted @ 2018-02-08 21:08 whlives 阅读(437) 评论(0) 推荐(0) 编辑
centos6升级python
摘要:CentOS 6中,默认安装了Python 2.6。而pip,jupyter这样的常用工具是不支持Python 2.6的。为了使用这些工具,就必须将Python 2.6升级到Python 2.7以上的版本. 由于很多基本的命令、软件包都依赖旧版本,比如:yum。所以,在更新 Python 时,建议不 阅读全文
posted @ 2018-02-08 16:11 whlives 阅读(144) 评论(0) 推荐(0) 编辑
librdkafka安装和php扩展php-rdkafka安装
摘要:1.安装librdkafka mac下 brew install librdkafka linux下 git clone https://github.com/edenhill/librdkafka.gitcd librdkafka/./configure makesudo make install 阅读全文
posted @ 2018-01-04 15:36 whlives 阅读(5446) 评论(0) 推荐(0) 编辑
PHP_CodeSniffer 安装和phpstorm配置
摘要:安装 1.mac安装 sudo pear install PHP_CodeSniffer phpstorm配置 1. 点击菜单:File->Settings 或 按快捷键 Ctrl+Alt+S 2. 选择Project Settings下的:PHP->Code Sniffer 3. 设置PHP Co 阅读全文
posted @ 2017-10-18 17:43 whlives 阅读(490) 评论(0) 推荐(0) 编辑
SSH登录异常(someone is doing something nasty)
摘要:在平时工作中,有时候需要SSH登陆到别的Linux主机上去,但有时候SSH登陆会被禁止,并弹出如下类似提示: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: REMOTE HOST IDENTIFICATION H 阅读全文
posted @ 2017-10-09 15:32 whlives 阅读(327) 评论(0) 推荐(0) 编辑
Linux 云服务器中安装 rinetd 进行转发端口实现
摘要:centos安装 端口转发映射的程序叫rinetd,直接make编译安装即可。 wget https://github.com/boutell/rinetd/archive/master.zip && unzip master.zip && cd rinetd-master sed -i 's/65 阅读全文
posted @ 2017-09-29 10:51 whlives 阅读(477) 评论(0) 推荐(0) 编辑
mac以及centos下安装Elasticsearch 以及权限管理插件
摘要:Elasticsearch安装(提前系统需要安装java环境)mac安装 brew install elasticsearch centos安装 下载ElasticSearch安装包,https://www.elastic.co/downloads/elasticsearch运行下面命令将安装包移动 阅读全文
posted @ 2017-08-23 10:50 whlives 阅读(600) 评论(0) 推荐(0) 编辑
linux生成SSH key
摘要:1. 检查SSH keys是否存在 ls -al ~/.ssh2. 生成新的ssh key 输入 ssh-keygen -t rsa -C your_email@example.com 阅读全文
posted @ 2017-05-26 13:48 whlives 阅读(10905) 评论(0) 推荐(0) 编辑
linux 常用命令
摘要:查看系统cpu、内存使用情况 top, 按 m查看内存,P查看cpu使用排序,M查看内存使用排序 实时查看日志 tail -f test.log 清空日志 cat /dev/null > test.log 查看网络端口监听 netstat -tulnp 打包命令 tar zcvf saas.tar. 阅读全文
posted @ 2017-05-24 21:18 whlives 阅读(455) 评论(0) 推荐(0) 编辑
centos 安装git服务器,配置使用证书登录并你用hook实现代码自动部署
摘要:安装git服务器先安装依赖软件:yum -y install gcc zlib-devel openssl-devel perl cpio expat-devel gettext-devel openssl zlib curl autoconf tk1、下载最新的git文件:https://www. 阅读全文
posted @ 2017-05-22 21:04 whlives 阅读(3439) 评论(0) 推荐(0) 编辑