linux常用命令
mkdir :创建文件夹
rm -f :删除文件
docker cp 文件名 20f:容器内地址 将文件从linux系统移动到docker地址
ln -s 将两个文件做链接
compgen -u 查看所有用户
groups 查看所在组
vim 编辑
quit 退出
sudo su - root 获得root权限
cp dir1/a.doc dir2 表示将dir1下的a.doc文件复制到dir2目录下
cp -a ke.conf ke.conf.bak 拷贝
find . -name “keepalived.conf” 全局搜索
ln -s 文件 文件 做软连接
rm -rf 文件 删除软连接
rm -rf MyDocuments/ 删除目录
useradd -c “root” -m qit 创建qit用户
ps -aux|grep mysql 查看进程
rz命令和sz命令 rz上传到lnux
pwd 打印文件夹当前的位置
curl www.daibu.com 连接百度
clear 清屏
passwd 查看用户所在的组
su -qit 切换用户
echo 打印的意思
useradd user08 创建用户
userdel -r user08 删除用户
groupadd 【】组名 创建组
ip addr 查看liunx状态
ls | grep sudo 查找文件
ps -ef |grep java
command>>将command的结果输出到文件中
chmod 755 权限赋值
查询指定端口通过grep过滤:netstat -tnlp | grep :80
ssh-keygen -t rsa
ssh-copy-id -p 端口 地址:ssh免密登录的命令
ssh 地址 :直接可以登录
修改虚拟机的静态IP:vi /etc/sysconfig/network-scripts/ifcfg-ens33
重启网络: systemctl restart network
重启liunx:reboot
修改文件的权限:chown -R -v root:mail test6
查看redis:ps -aux|grep redis
查看端口:ss -naltp | grep 9104
查看内存:du -h
rar -xvf mysql-5.7.36-linux-glibc2.12-x86_64.tar.gz
解压
wechat
XdOIUEXU6BWpoA0_fSNqTgvQgUjDRhstLP9H5uiZk1s
wwa492d7c30186ab77
alertmanager
set un 查看行数
添加探针的方式启动:java -javaagent:/opt/module/apache-skywalking-apm-bin-es7/agent/skywalking-agent.jar -Dserver.port=8082 -jar boot-1.0-SNAPSHOT.jar
apm-springmvc-annotation-3.x-plugin-8.7.0.jar apm-springmvc-annotation-4.x-plugin-8.7.0.jar apm-springmvc-annotation-5.x-plugin-8.7.0.jar
Elasticsearch security features have been automatically configured!
✅ Authentication is enabled and cluster connections are encrypted.
ℹ️ Password for the elastic user (reset with bin/elasticsearch-reset-password -u elastic
):
Kk2Egns*6_XAlljbp_P2
ℹ️ HTTP CA certificate SHA-256 fingerprint:
02d2a9a6170a641a8f6916b713b84026c43d9ee26b8a06d86ab286f13980677f
ℹ️ Configure Kibana to use this cluster:
• Run Kibana and click the configuration link in the terminal when Kibana starts.
• Copy the following enrollment token and paste it into Kibana in your browser (valid for the next 30 minutes):
eyJ2ZXIiOiI4LjYuMSIsImFkciI6WyIxOTIuMTY4LjkzLjE0NTo5MjAwIl0sImZnciI6IjAyZDJhOWE2MTcwYTY0MWE4ZjY5MTZiNzEzYjg0MDI2YzQzZDllZTI2YjhhMDZkODZhYjI4NmYxMzk4MDY3N2YiLCJrZXkiOiIwZU9fa0ljQjl6YnpmTG1GcE9pbDo0V1N2MENwQVNHbU40UHNyXzRBTklRIn0=
ℹ️ Configure other nodes to join this cluster:
• Copy the following enrollment token and start new Elasticsearch nodes with bin/elasticsearch --enrollment-token <token>
(valid for the next 30 minutes):
eyJ2ZXIiOiI4LjYuMSIsImFkciI6WyIxOTIuMTY4LjkzLjE0NTo5MjAwIl0sImZnciI6IjAyZDJhOWE2MTcwYTY0MWE4ZjY5MTZiNzEzYjg0MDI2YzQzZDllZTI2YjhhMDZkODZhYjI4NmYxMzk4MDY3N2YiLCJrZXkiOiIwLU9fa0ljQjl6YnpmTG1GcE9qTzphV3ZVcWg4SFN5bXY1c0FZbnBNWXFnIn0=
If you’re running in Docker, copy the enrollment token and run:
docker run -e "ENROLLMENT_TOKEN=<token>" docker.elastic.co/elasticsearch/elasticsearch:8.6.1
http://www.codebaoku.com/jdk/jdk-oracle-jdk1-8.html
tar -xzvf apache-skywalking-apm-9.3.0.tar.gz
liunx jdk的配置:https://blog.csdn.net/qq_50660509/article/details/129007756
linux senCos:https://pan.baidu.com/s/1NJi6g7RWrOxdK-gdCDh05w 密码6bjo