摘要: 新建用户,设置密码 useradd eason passwd eason 不允许root直接登陆 修改配置文件 vi /etc/ssh/sshd_config 禁止root登录 查找“#PermitRootLogin yes”,将前面的“#”去掉,短尾“yes”改为“no”,并保存文件。 修改默认端 阅读全文
posted @ 2017-09-18 10:02 Alex_Footprint 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 一、一般修改 路径: /opt/apache-tomcat/conf/server.xml 1、第一个tomcat使用默认配置 2、第二个tomcat一般配置 二、特殊修改 1、第二个tomcat特殊配置 2、启动tomcat ./apache-tomcat-8.0.22/bin/startup.s 阅读全文
posted @ 2017-09-18 10:01 Alex_Footprint 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Gitlab创建备份 使用Gitlab一键安装包安装Gitlab非常简单,同样的备份恢复与迁移也非常简单.使用一条命令即可创建完整的Gitlab备份: gitlab-rake gitlab:backup:create 使用以上命令会在/var/opt/gitlab/backups目录下创建一个名称类 阅读全文
posted @ 2017-09-18 10:00 Alex_Footprint 阅读(372) 评论(0) 推荐(0) 编辑
摘要: mysql中配置my.ini interactive_timeout = 120 wait_timeout = 120 max_allowed_packet = 32M 导入sql运行命令 source "路径名"+/mytest.sql 进入对应的数据库,example: test use tes 阅读全文
posted @ 2017-09-18 10:00 Alex_Footprint 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 镜像repo [gitlab-ce] name=gitlab-ce baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6 repo_gpgcheck=0 gpgcheck=0 enabled=1 gpgkey=https://pa 阅读全文
posted @ 2017-08-31 16:14 Alex_Footprint 阅读(231) 评论(0) 推荐(0) 编辑
摘要: J2EE开发环境--RAP J2EE开发环境分四步: 1、JDK环境 2、tomcat 3、redis环境 4、mysql环境 5、RAP包 线上环境,推荐使用源码,自建应用用户,设置对应规则,禁止关闭selinux和iptables、firewalld。 一、JDK环境: 直接点: yum -y 阅读全文
posted @ 2017-08-23 09:53 Alex_Footprint 阅读(229) 评论(0) 推荐(0) 编辑
摘要: start install: rpm -Uvh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm yum install ansiable -y vim /etc/ansible/hosts use ansible: a 阅读全文
posted @ 2017-07-10 16:40 Alex_Footprint 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 下载地址 start install: wget http://www.haproxy.org/download/1.7/src/haproxy-1.7.5.tar.gz tar -xf haproxy-1.7.5.tar.gz cd haproxy-1.7.5 mkdir -p /usr/loca 阅读全文
posted @ 2017-07-10 16:39 Alex_Footprint 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 下载地址 start install: yum -y install wget wget https://jaist.dl.sourceforge.net/project/sshpass/sshpass/1.06/sshpass-1.06.tar.gz tar -xf sshpass-1.06.ta 阅读全文
posted @ 2017-07-10 16:38 Alex_Footprint 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 本地实验(Centos7),WEBserver性能测试; 软件包地址 wget http://download.joedog.org/siege/siege-4.0.2.tar.gztar -xf siege-4.0.2.tar.gz cd siege-4.0.2./configure make & 阅读全文
posted @ 2017-07-06 14:57 Alex_Footprint 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 只需一下几步,堡垒机轻松搞定; yum -y install git git clone https://git.oschina.net/CheungSSH_OSC/CheungSSH.git cd cd CheungSSH/bin sh install-cheungssh.sh service c 阅读全文
posted @ 2017-07-06 14:23 Alex_Footprint 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 准备数据库(MySQL),若已有MySQL,可忽略. build MySQL table; 连接MySQL; mysql -u root -p 创建数据表; mysql> create database demo; mysql> use demo; mysql> create table pet(n 阅读全文
posted @ 2017-07-04 16:44 Alex_Footprint 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 两个内网之间的linux服务器需要互相登录,或需要互相访问内网某个端口,担忧没有公网IP,可以使用的方法有ngrok(https://ngrok.com/),但并不方便,我们只需两条 SSH 命令即可。 Two command: command description: use ssh: 需要让远程 阅读全文
posted @ 2017-07-03 18:13 Alex_Footprint 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 转自社区: 0X01 引言 想不想搞个WIFI干扰器?网上搜集了一下资料,发现用esp8266可以实现简单的干扰功能,包括断网、复制、欺骗等等。刚好手上有块Tpyboard V202(30元),也是esp8266芯片的,也是想换个固件是不是也可完成呢?周末动手试一下。 0X02 搭建开发环境 1、网 阅读全文
posted @ 2017-06-29 13:52 Alex_Footprint 阅读(13036) 评论(0) 推荐(0) 编辑
摘要: 本文来源社区: 1、修改启动时内存参数、并指定JVM时区 (在windows server 2008 下时间少了8个小时): 在Tomcat上运行j2ee项目代码时,经常会出现内存溢出的情况,解决办法是在系统参数中增加系统参数: window下, 在catalina.bat最前面:set JAVA_ 阅读全文
posted @ 2017-06-27 14:44 Alex_Footprint 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 部署前提: 配置好java环境和已有tomcat实例. 地址1:http://vdisk.weibo.com/s/dzUJr1vLcAWHl 地址2:http://code.taobao.org/p/myweb_project/src/trunk/MyWeb/WebContent/WEB-INF/l 阅读全文
posted @ 2017-06-26 16:07 Alex_Footprint 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 今天下午正好有外面的人要登录服务器,想了想,普通用户密码就是不想给,然后我就这样做了. useradd alex 创建账户和密码 passwd alex mkdir /home/alex/.sshtouch /home/alex/.ssh/authorized_keys cat /root/.ssh 阅读全文
posted @ 2017-06-23 17:45 Alex_Footprint 阅读(182) 评论(0) 推荐(0) 编辑
摘要: systemctl enable svnserve.service systemctl enable iptables.service systemctl enable firewalld.service nginx 人工亲测,好使 #Author:Alex.Wang #!/usr/bin/env  阅读全文
posted @ 2017-06-22 14:12 Alex_Footprint 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 希望你会涨姿势. First: vim /etc/ssh/sshd_config 在Port 22下面加一行,以端口1438为例,Port 1438 然后保存,重启ssh服务 systemctl restart sshd.service second: 在防火墙中加入新端口: firewall-cm 阅读全文
posted @ 2017-06-22 11:01 Alex_Footprint 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 也可以看看这篇:http://www.jianshu.com/p/610d9bf0ae8b 在Linux下搭建一个邮件服务器也是比较麻烦的,需要安装Postifx,Dovecot等等的组件,安装后又需要去对每个组件进行配置才能运行,对于新手来说,也是够折腾的。 使用EwoMail进行快速搭建邮件服务 阅读全文
posted @ 2017-06-21 16:39 Alex_Footprint 阅读(969) 评论(0) 推荐(0) 编辑