linux
FarryNiu
farry
展开
-
Linux报错Could not resolve host: mirrors.cloud.aliyuncs.com
解决vim /etc/resolv.conf添加nameserver 223.5.5.5nameserver 223.6.6.6nameserver 8.8.8.8nameserver 8.8.4.4nameserver 114.114.114.114然后apt-get update原创 2021-12-19 14:06:41 · 1257 阅读 · 0 评论 -
linux常用命令
常用命令网络测试某ip的端口是否开放关闭防火墙查看公网ip查看局域网ip查看当前开放的端口cpu管理查看当前线程网络测试某ip的端口是否开放telnet ip port如果出现则说明端口已开放退出telnet:先ctrl+] ,然后输入quit关闭防火墙firewall:firewall-cmd --state //查看防火墙状态systemctl status firewalld //查看防火墙状态systemctl stop firewalld //关闭防火墙systemct原创 2021-12-07 20:54:52 · 416 阅读 · 1 评论 -
ubuntu搭建SRS服务器实现RTMP拉流推流
安装安装gitapt install git从git下载源码git clone https://github.com/ossrs/srs编译cd srs/trunk./configure --full && make配置可以不修改,可以修改端口号、推流地址./conf/srs.conf启动在srs目录下./objs/srs -c conf/srs.conf关闭:./scripts/stop.sh推流启动后,向rtmp://服务器ip:1935/live/li原创 2021-12-07 20:25:04 · 1573 阅读 · 0 评论 -
linux查看本机ssh地址ip
互联网ssh连接ip(公网ip)方法 curl cip.cc局域网内ssh连接ip(局域网ip)方法ifconfig原创 2021-11-26 14:27:48 · 8746 阅读 · 0 评论 -
Linux Ubuntu查看某程序所在位置
方法witch xxx例如witch python原创 2021-03-20 15:45:31 · 255 阅读 · 0 评论 -
Linux Ubuntu添加环境变量
方法打开文件bashrcgedit ~/.bashrc在文件末尾添加如下语句,xxxxxx为想添加的路径export PATH="/xxxxxx:$PATH"改写保存后使其更新生效source ~/.bashrc原创 2021-03-20 15:39:50 · 2076 阅读 · 0 评论 -
Linux Ubuntu用gedit打开一个文件
指令gedit xxx原创 2021-03-20 15:35:09 · 2319 阅读 · 0 评论 -
ubuntu16.04安装无线网卡驱动
驱动我使用的腾达Tenda网卡,使用rtl8821CU驱动,驱动文件地址:https://github.com/whitebatman2/rtl8821CU安装cd定位到驱动所在目录在终端中键入:make在终端中键入:sudo make install在终端中键入:sudo modprobe 8821cu至此安装完毕,已经可以搜索到无线网络...原创 2020-12-07 23:03:03 · 1219 阅读 · 0 评论 -
Linux开机时卡在/dev/sda:clean..files..blocks
原因我在修改了一个etc下的,更改系统分辨率的配置文件后重启无法进入解决按 Ctrl + Alt + F3 进入文本模式,输入用户名和密码,登录无界面模式,改掉之前的操作后重启恢复了原创 2020-12-07 22:58:16 · 7779 阅读 · 0 评论