longxd

导航

 

2019年4月18日

摘要: centos 7以上是用Systemd进行系统初始化的 Systemd服务文件以.service结尾,比如现在要建立nginx为开机启动,如果用yum install命令安装的,yum命令会自动创建nginx.service文件,直接用命令 #systemcel enable nginx.servi 阅读全文
posted @ 2019-04-18 11:04 longxd 阅读(538) 评论(0) 推荐(0) 编辑
 
摘要: 使用chkconfig开机启动redis。 把redis初始脚本拷贝到/etc/init.d/下面。 #cd /usr/local/redis/redis-2.6.16/utils # cp redis_init_script /etc/init.d/redis 然后编辑/etc/init.d/re 阅读全文
posted @ 2019-04-18 11:02 longxd 阅读(143) 评论(0) 推荐(0) 编辑
 
摘要: 在/etc/profile文件后再追加一条TOMCAT的环境变量,CATALINA是Tomcat的启动程序,Tomcat的启动脚本都是使用CATALINA_HOME作为变量,所以这里我们要设置CATALINA_HOME。 编辑/etc/profile文件。 #vi /etc/profile 添加ex 阅读全文
posted @ 2019-04-18 11:01 longxd 阅读(252) 评论(0) 推荐(0) 编辑
 
摘要: 安装Tomcat7.0 1,下载Tomcat7.0。 #wget http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-7/v7.0.94/bin/apache-tomcat-7.0.94.tar.gz 2,解压tomcat压缩包。 # t 阅读全文
posted @ 2019-04-18 11:00 longxd 阅读(127) 评论(0) 推荐(0) 编辑
 
摘要: 安装Redis 1、首先上官网下载Redis 压缩包,地址:http://redis.io/download。 wget http://download.redis.io/releases/redis-2.6.16.tar.gz 2、执行解压操作。 tar -zxvf redis-2.6.16.ta 阅读全文
posted @ 2019-04-18 10:56 longxd 阅读(86) 评论(0) 推荐(0) 编辑
 
摘要: Linux安装nginx 1,安装依赖包。 # yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel 可以使用命令查看安装的包,如 # yum list installed | grep gcc 2,下载nginx的安 阅读全文
posted @ 2019-04-18 10:53 longxd 阅读(114) 评论(0) 推荐(0) 编辑
 
摘要: 二进制安装mysql 1,下载安装包,使用国内站点速度会比较快,如清华站点https://mirrors.tuna.tsinghua.edu.cn 登陆linux系统后,使用wget 进行下载mysql安装包。 #wget https://mirrors.tuna.tsinghua.edu.cn/m 阅读全文
posted @ 2019-04-18 10:50 longxd 阅读(171) 评论(0) 推荐(0) 编辑
 
摘要: 安装kafka 1,下载kafka. #cd /usr/local #wget wget https://mirrors.tuna.tsinghua.edu.cn/apache/kafka/2.1.1/kafka_2.11-2.1.1.tgz 解压安装包 #tar -zxvf kafka_2.11- 阅读全文
posted @ 2019-04-18 10:46 longxd 阅读(182) 评论(0) 推荐(0) 编辑
 

2019年4月12日

摘要: 1,创建一个目录,安装jkd。 # mkdir -pv /usr/local/jdk 2,按照需要下载jdk版本。 下载地址: https://www.oracle.com/technetwork/java/javase/downloads/index.html 选择历史版本: 以上页面的底部: 3 阅读全文
posted @ 2019-04-12 18:15 longxd 阅读(2488) 评论(0) 推荐(0) 编辑
 

2018年6月27日

摘要: 常用排错方法: 1,查看连接是否正常。 2,push数据有时会报错,这是由于远程repository和我本地的repository冲突造成。 解决方法: 1.使用强制push的方法: git push -u origin master -f 这样会使远程修改丢失,一般是不可取的 2.push前先将远 阅读全文
posted @ 2018-06-27 09:23 longxd 阅读(184) 评论(0) 推荐(0) 编辑