随笔分类 -  Linux

摘要:Linux 安装ftp 组件1 安装vsftpd 组件安装完后,有/etc/vsftpd/vsftpd.conf 文件,是vsftp 的配置文件。[root@bogon ~]# yum -y install vsftpd2 添加一个ftp 用户此用户就是用来登录ftp 服务器用的。[root@bog 阅读全文
posted @ 2018-12-04 14:40 stitchGoGo 阅读(260) 评论(0) 推荐(0)
摘要:Nginx 安装手册1 nginx 安装环境nginx 是C 语言开发,建议在linux 上运行,本教程使用Centos6.5 作为安装环境。gcc安装nginx 需要先将官网下载的源码进行编译,编译依赖gcc 环境,如果没有gcc 环境,需要安装gcc:yum install gcc-c++ -y 阅读全文
posted @ 2018-12-04 14:34 stitchGoGo 阅读(206) 评论(0) 推荐(0)
摘要:Zookeeper集群搭建 由于公司缓存方案改进,准备采用codis集群作为主要的缓存解决方案(codis:国内豌豆荚开发的redis集群解决方案,已开源,github地址:https://github.com/CodisLabs/codis),codis集群依赖于zookeeper集群,本文介绍z 阅读全文
posted @ 2018-12-03 14:41 stitchGoGo 阅读(597) 评论(0) 推荐(0)
摘要:查看状态 iptables -L -n 下面添加对特定端口开放的方法: 使用iptables开放如下端口/sbin/iptables -I INPUT -p tcp --dport 8000 -j ACCEPT保存/etc/rc.d/init.d/iptables save重启服务service i 阅读全文
posted @ 2018-12-03 14:31 stitchGoGo 阅读(227) 评论(0) 推荐(0)
摘要:前提:已经配置好JDK环境变量(https://www.cnblogs.com/stitchZsx/p/9861175.html) 1. 上传zookeeper 安装包到linux中/usr/local/temp 中(目录随意,对安装无影响) 2. 解压zookeeper压缩包 # tar zxvf 阅读全文
posted @ 2018-10-27 16:28 stitchGoGo 阅读(267) 评论(0) 推荐(0)
摘要:1.建议把mysql放到/usr/local下,因为这个目录也是解压版的默认目录。可以减少很多配置 1.1 进入/usr/local中 命令:cd /usr/local 1.2 解压压缩包 命令:tar zxvf 压缩包名 1.3 复制到/usr/local/mysql 命令:cp -r 原名称 / 阅读全文
posted @ 2018-10-27 16:16 stitchGoGo 阅读(1996) 评论(0) 推荐(0)
摘要:1. 把tomcat压缩包上传到服务器 2. 解压tomcat # tar zxvf 压缩包名 3. 解压后的文件夹复制到/usr/local/tomcat # cp -r apache-tomcat-7.0.68 /usr/local/tomcat 4. 配置环境变量 4.1 # vim /etc 阅读全文
posted @ 2018-10-27 14:53 stitchGoGo 阅读(177) 评论(0) 推荐(0)
摘要:1. 把压缩包上传到服务器/usr/local/tmp 2. 解压压缩包 # tar zxvf 文件名 3. 把解压后文件复制到/usr/local/jdk7 # cp -r 文件名 /usr/local/jdk7 4. 配置环境变量,执行命令 # vim /etc/profile 5. 修改文件中 阅读全文
posted @ 2018-10-27 14:52 stitchGoGo 阅读(133) 评论(0) 推荐(0)
摘要:一.XShell 1. linux客户端工具. 2. CentOS中默认只开启22端口.其他端口都被防火墙拦截. 二.Filezilla工具使用(和Xftp功能一样) 1. FTP协议 1.1 英文名称(File Transfer Protocol) 1.2 作用:互联网中,计算机之间传输文件需要遵 阅读全文
posted @ 2018-10-27 14:50 stitchGoGo 阅读(458) 评论(0) 推荐(0)
摘要:1. 在公司中linux都是没有界面. 2. 系统路径 2.1 / 表示根目录 2.2 ~ 表示/root 2.3 etc 存放系统配置目录. 2.4 home 除了root以为所有用户默认在home下新建一个以用户名做为文件夹名称的文件夹 2.4.1 用户xxx对/home/xxx具有完全操作权限 阅读全文
posted @ 2018-10-27 14:47 stitchGoGo 阅读(200) 评论(0) 推荐(0)
摘要:Vim常用命令总结: 在命令状态下对当前行用== (连按=两次), 或对多行用n==(n是自然数)表示自动缩进从当前行起的下面n行。你可以试试把代码缩进任意打乱再用n==排版,相当于一般IDE里的code format。使用gg=G可对整篇代码进行排版。 vim 选择文本,删除,复制,粘贴 文本的选 阅读全文
posted @ 2018-08-16 11:00 stitchGoGo 阅读(140) 评论(0) 推荐(0)