链接:https://blog.csdn.net/pang_ping/article/details/80570011
注意:STEP 4:
export JAVA_HOME=/usr/java/jdk1.8.0_152
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
复制代码时小心每行末尾的空格;网上还有一些写法是加 {},例如:
export JAVA_HOME=/usr/java/jdk1.8.0_201
export CLASSPATH=.:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar
export PATH=$PATH:${JAVA_HOME}/bin
https://blog.csdn.net/a_18397219871/article/details/79466392
https://www.cnblogs.com/diantong/p/10962705.html
参考2: https://blog.csdn.net/qq_37598011/article/details/93489404
参考3(推荐):https://blog.csdn.net/lettuce_/article/details/105380583
启动: systemctl start mysqld启动命令
用户名/密码 root/root1234ABCD!@#$
[root@localhost /]# wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
[root@localhost /]# yum -y install apache-maven
如果提示没有wget命令,则用下面的命令来安装该命令:
[root@localhost /]# yum install wget –y
[root@localhost /]# yum install git -y
[root@localhost /]# wget http://download.redis.io/releases/redis-2.8.17.tar.gz
[root@localhost /]# $ tar xzf redis-2.8.17.tar.gz
[root@localhost /]# $ cd redis-2.8.17
[root@localhost /]# $ make
启动: 把redis.conf文件中的daemonize属性改为yes(表明需要在后台运行)
[root@localhost redis-2.8.17]# cd src
[root@localhost src]# ./redis-server
//指定配置文件方式启动
[root@localhost src]# ./redis-server ../redis.conf
网上:redis 相关配置及启动
https://blog.csdn.net/qq_39135287/article/details/83474865
https://www.jianshu.com/p/5245fda2e253
启动 [root@localhost zookeeper]# zkServer.sh start
查看状态 [root@localhost zookeeper]# zkServer.sh status
//显示 Mode: standalone 说明启动成功
https://blog.csdn.net/t8116189520/article/details/81909574
执行完 make install 后,nginx配置文件和启动文件在 /usr/local/nginx
启动方式:
[root@localhost /]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
其他:
检查配置文件
# ./nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
重启nginx
# nginx -s reload
关于防火墙命令无法使用的问题,可参考下面博客的命令
https://blog.csdn.net/qq_42859864/article/details/89361077
查看防火墙状态:sudo systemctl status firewalld
启动防火墙:sudo systemctl start firewalld
关闭防火墙:sudo systemctl stop firewalld
关于Selinux 启动和关闭,详情查看下面博文
https://blog.csdn.net/qq_42859864/article/details/92797578
[root@localhost logs]# getenforce
Enforcing
[root@localhost logs]# setenforce 0
[root@localhost logs]# getenforce
Permissive
[root@localhost logs]#
https://blog.csdn.net/qq_34412985/article/details/84188493
mongo.conf
dbpath=/myPrograms/easymock/mongodb/mongodb/data
logpath=/myPrograms/easymock/mongodb/mongodb/logs/mongo.log
logappend=true
journal=true
quiet=true
port=27017
fork=true
bind_ip=0.0.0.0
auth=false
启动方式
[root@localhost bin]# ./mongod --dbpath=/myPrograms/easymock/mongodb/mongodb/data
遇到过的情况:
使用 mongo 命令连接数据库时,出现如下:
-bash: mongo: command not found
原因:/etc/profile 文件里 export路径编辑不对
更改后重启系统配置: # source /etc/profile
再重启mongodb
https://blog.csdn.net/lettuce_/article/details/100935028
启动方式:
[root@localhost bin]# sh startup.sh -m standalone
访问路径:
http://127.0.0.1:8848/nacos/
(初始)用户名:nacos
(初始)密码:nacos
https://blog.csdn.net/lettuce_/article/details/102501342
关于RabbitMQ的一些基本操作
$ sudo chkconfig rabbitmq-server on # 添加开机启动RabbitMQ服务
$ sudo /sbin/service rabbitmq-server start # 启动服务
$ sudo /sbin/service rabbitmq-server status # 查看服务状态
$ sudo /sbin/service rabbitmq-server stop # 停止服务
https://www.cnblogs.com/mao2080/p/9346018.html
1. 下载地址
http://nodejs.cn/download/
选择 Linux 二进制文件 (x64)
下载的是 .tar.xz 文件
2.解压
[root@i nodejs]# tar -xvf node-v12.16.0-linux-x64.tar.xz
3. 建立软连接,变为全局
[root@i nodejs]# cd node-v12.16.0-linux-x64
[root@i node-v12.16.0-linux-x64]# cd bin/
[root@i bin]# pwd
复制绝对路径后
[root@i bin]# ln -s /usr/local/nodejs/node-v12.16.0-linux-x64/bin/npm /usr/local/bin/
[root@i bin]# ln -s /usr/local/nodejs/node-v12.16.0-linux-x64/bin/node /usr/local/bin/
4. 测试
[root@i /]# node -v
v12.16.0