linux安装相关软件

时间:2023-03-10 07:05:34
linux安装相关软件

XShell上传jdk文件到Linux并安装配置
1、yum -y install lrzsz
2、sudo rz选文件
3、sudo tar -zxvf jdk-8u131-linux-x64.tar.gz
4、sudo vim /etc/profile
5、 export JAVA_HOME=/usr/java/jdk1.8.0_131
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export PATH=$PATH:${JAVA_PATH}
6、source /etc/profile

linux安装maven
1、wget https://mirrors.tuna.tsinghua.edu.cn/apache/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz
2、tar -zxvf
3、vi /etc/profile
4、 export MAVEN_HOME=/var/local/apache-maven-3.5.2
export MAVEN_HOME
export PATH=$PATH:$MAVEN_HOME/bin
5、source /etc/profile

linux安装eclipse
1/wget http://ftp.jaist.ac.jp/pub/eclipse/technology/epp/downloads/release/oxygen/3a/eclipse-jee-oxygen-3a-linux-gtk-x86_64.tar.gz
2/

linux安装zookepper:
linux文件中的bin中的可执行文件必须使用目录方式运行
下载zookepper到linux解压,重命名zookepper/conf/zoo_sample.cfg为zoo.cfg
打开发现端口是2181
在zookepper建立date目录 并zoo.cfg中的dataDir等于data的目录
在bin所在目录 启动服务bin/zkServer.sh start
停止服务bin/zkServer.sh stop

linux安装Memcache

Memcache分布式缓存
仅支持key/value存储

服务端安装:yum install memcached 、apt-get进行安装

运行:/uer/bin/memcached -d -l 127.0.0.1 -p 11211 -m 150 -u
-d 守护进程模式
-m 为memcached分配150M内存
-u 以root身份启动

客户端安装:libmemcached.gz解压(扩展包)

安装目录中:.configure --prefix=/uer/lib/libmemcached
make && make install

windows安装redis

https://jingyan.baidu.com/article/7e4409533f32092fc0e2ef24.html 如何win安装pip
pip install pygame 安装pygame
https://blog.csdn.net/heshushun/article/details/77776706 连接mongodb
net start MongoDb 启动
windows下安装redis第一次启动报错:

[2368] 21 Apr 02:57:05.611 # Creating Server TCP listening socket 127.0.0.1:6379: bind: No error

解决方法:在命令行中运行

redis-cli.exe

127.0.0.1:6379>shutdown

not connected>exit

然后重新运行redis-server.exe redis.windows.conf,启动成功后打开redis-cli。exeredis使用方法