随笔分类 -  Linux

摘要:一、生成免密登录公钥 ssh-keygen -t rsa 如下: [root@VM-0-9-centos /]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key 阅读全文
posted @ 2021-12-29 16:45 aaronthon 阅读(3011) 评论(0) 推荐(0) 编辑
摘要:一、安装 获取redis资源 wget http://download.redis.io/releases/redis-4.0.8.tar.gz 解压 tar xzvf redis-4.0.8.tar.gz 安装 cd redis-4.0.8 make cd src make install PRE 阅读全文
posted @ 2021-02-08 08:22 aaronthon 阅读(61) 评论(0) 推荐(0) 编辑
摘要:根据端口号查看进程PID: netstat -nlp | grep 端口号lsof -i :端口号 根据进程PID查对应的程序路径: ll /proc/进程PID/pwd 结束! 阅读全文
posted @ 2020-08-13 09:23 aaronthon 阅读(1020) 评论(0) 推荐(0) 编辑
摘要:mysql -h 10.130.**.** -u username -p 输入密码. 阅读全文
posted @ 2020-04-21 15:47 aaronthon 阅读(1859) 评论(0) 推荐(0) 编辑
摘要:下载 下载地址:https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.29-linux-glibc2.12-x86_64.tar.gz 下载完成之后将文件传输到/opt目录里面。 1,直接拖拽文件到/opt 2,rz命令 没装lrzsz安装包,则无 阅读全文
posted @ 2020-03-19 23:35 aaronthon 阅读(261) 评论(0) 推荐(0) 编辑
摘要:1 /bin bin是Binary的缩写, 这个目录存放着最经常使用的命令。 2 /boot 这里存放的是启动Linux时使用的一些核心文件,包括一些连接文件以及镜像文件。 3 /dev dev是Device(设备)的缩写, 该目录下存放的是Linux的外部设备,在Linux中访问设备的方式和访问文 阅读全文
posted @ 2020-03-17 00:42 aaronthon 阅读(1681) 评论(0) 推荐(0) 编辑
摘要:# zip zip -r ldapdevelop.zip ldapdevelop 压缩文件夹ldapdevelopa为ldapdevelop.zip unzip ldapdevelop.zip 解压ldapdevelopzip文件到当前目录内 unzip ldapdevelop.zip -d myz 阅读全文
posted @ 2020-03-04 17:43 aaronthon 阅读(130) 评论(0) 推荐(0) 编辑
摘要:linux环境输入top命令即可。 阅读全文
posted @ 2020-02-14 18:13 aaronthon 阅读(344) 评论(0) 推荐(0) 编辑
摘要:为了优化ubuntu软件安装/更新速度,我测试了国内几家apt源的速度,发现北京交大的apt源速度相对最快,然后可以通过以下步骤更新ubuntu源 1) 备份默认的apt源 1 cd/etc/apt2 sudo cp sources.list sources.list.backup 2) 阅读全文
posted @ 2018-11-22 16:54 aaronthon 阅读(1547) 评论(0) 推荐(0) 编辑
摘要:做法:ls -a,然后再删除掉.filename(你上次未保存的文件名).swp文件 阅读全文
posted @ 2018-11-19 14:13 aaronthon 阅读(301) 评论(0) 推荐(0) 编辑
摘要:1.下载百度api pip install baidu-aip 2.配置视频转码工具ffmpeg 3.更新并安装flask 阅读全文
posted @ 2018-11-19 13:02 aaronthon 阅读(860) 评论(0) 推荐(0) 编辑
摘要:环境: Python2.7 flask nginx linux的系统是Ubantu Python:我的是linux已经有的。 flask:pip install flask nginx:sudo apt-get install nginx 具体步骤请看前几篇博客。 以上过程结束后,进行如下操作: 进 阅读全文
posted @ 2018-11-12 17:09 aaronthon 阅读(378) 评论(0) 推荐(0) 编辑
摘要:在不同的linux系统中,安装nginx之后,要启动nginx,目录路径可能有一点不一样,如下是Ubuntu系统启动nginx,其他版本的linux系统可能不适用。 Ubuntu安装之后的文件结构大致为: 1)所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx 阅读全文
posted @ 2018-11-12 14:05 aaronthon 阅读(976) 评论(0) 推荐(0) 编辑
摘要:http://zkchang.blog.51cto.com/10574636/1706998 一.keepalived和其工作原理: keepalived是一个类似于Layer2,4,7交换机制的软件。是Linux集群管理中保证集群高可用的一个服务软件,其功能是用来防止单点故障。 keepalive 阅读全文
posted @ 2018-08-28 15:40 aaronthon 阅读(3949) 评论(0) 推荐(1) 编辑
摘要:一,先装mysql 服务端 客户端 从库 二,mysql主从复制配置 2.1 主库添加配置 2.2 主库添加从库账号,要通过一个账号同步 2.3 查询主库的状态 change master to master_host='10.0.0.200',master_user='xiaoming',mast 阅读全文
posted @ 2018-08-20 17:07 aaronthon 阅读(374) 评论(0) 推荐(0) 编辑
摘要:常用命令 ip a 查看ip#mkdir make directorymkdir /data 创建目录,Linux默认一次只能创建一层目录,如果一次性创建多层目录,加-pmkdir -p /data/test 一次性创建data目录和data目录里面的test目录,要加-p# ls listls / 阅读全文
posted @ 2018-08-14 11:48 aaronthon 阅读(247) 评论(0) 推荐(0) 编辑
摘要:环境准备 mac 用 vmware fusion 虚拟机 和 iterm2 远程连接工具,控制服务器的 windows 用 vmware workstation 12.0 虚拟机 和 xshell 远程连接工具,控制服务器的 Ubuntu 桌面做得比较好 CentOS 服务器用的多 开源的 Red 阅读全文
posted @ 2018-08-13 20:33 aaronthon 阅读(203) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示