centOS 相关操作

systemctl restart network 报错  【Failed to start LSB: Bring up/down  

可以配置静态ip解决  【centOS 网络不通,配置ip  https://www.cnblogs.com/yhongji/p/9336247.html

 

查看内核版本:

[test@localhost ~]$ uname -a

[test@localhost ~]$ cat /etc/redhat-release

Centos7修改yum源

http://t.zoukankan.com/yyxianren-p-10772577.html

 设置sudo 权限 

https://blog.csdn.net/weixin_42082277/article/details/80863552

 

red hat 7.4 替换yum源: https://blog.csdn.net/u011284073/article/details/79859439  (7.xxx 修改为 7)

[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7

[extras]
name=CentOS-$releasever - Extras
baseurl=http://mirrors.163.com/centos/7/extras//$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7

[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://mirrors.163.com/centos/7/centosplus//$basearch/
gpgcheck=1
enabled=0

 

桥接模式之VMware设置:

https://www.cnblogs.com/weizaiyes/p/9911200.html 

 

scp 命令

scp root@host1:/tmp/test1 /tmp

https://www.cnblogs.com/meditator/p/5760718.html

 

安装mysql5.7

https://www.cnblogs.com/cuianbing/p/13730439.html

https://blog.csdn.net/EB_NUM/article/details/105425622

防火墙:

https://blog.csdn.net/weixin_46517229/article/details/104795708

 

nginx 配置代理:

   upstream nacos {
        server 172.16.63.222:8848;
        server 172.16.63.220:8848;
        server 172.16.63.221:8848;
    }
    server {
        listen 8848;
        # server_name  127.0.0.1;
        location / {
                proxy_pass http://nacos;
        }
    }

nginx 开机自启动  https://blog.csdn.net/Eknaij/article/details/97777317
https://blog.csdn.net/Eknaij/article/details/97777317




java 启动命令
nohup java -jar a.jar  --server.port=22000 >map.log 2>&1 &

yum 安装时保存rpm包 

http://www.bubuko.com/infodetail-2165630.html

提取和替换sed

https://juejin.cn/post/6844903926756704269

https://www.cnblogs.com/bugutian/p/13224325.html

Tail/8/3/3/255_255.png
find Tail | sed -r 's/Tail\/(.*)\/(.*)\/(.*)\/(.*)_(.*)\..*/\1,\4,\5/g' > Tile_zxy.cvs

删除以...结尾

sed '/txt$/d' Tile_zxy.cvs

删除空行

sed '/^$/d' Tile_zxy.cvs

统计文件行数

wc -l Tile_zxy.cvs

 

posted @ 2021-07-15 16:42  星回中道  阅读(30)  评论(0编辑  收藏  举报