Linux
67 篇文章
linux
开源iptables Web管理系统
这套iptables的管理系统用了挺长时间了,简单好用,比敲命令来得方便。 是我再github上找到的,作者已经3年多没更新过了,目前我只在Proxmox5中使用过,理论上来说CentOS、Debian、Ubuntu这些系统也适用。 (more…)
iptables查看NAT链命令
平时更多使用的iptables -L只能查看filter链 当需要看nat链的时候加什么参数呢 iptables -L -n -t nat 如上 加上-t nat就可以了
关于Linux的正确读音,Linux怎么发音才是正确的
网上关于Linux的正确读音众说纷纭,让我们来看看 Linux创始人 Linus Torvalds 在采访中怎么读Linux的吧,原本以前我自己的读法是正确的后来被谁更正了下结果倒错了。 https://youtu.be/5IfHm6R5le0
卸载阿里云盾(安骑士)监控&屏蔽云盾IP
阿里云默认开通后系统后台会有监控进程,自动监控系统后台进程,查杀病毒,检测系统漏洞等功能,同时也暴露了我们的隐私,所以有需要的话可以将其卸载掉. (more…)
CentOS删除文件/bin/rm: argument list too long错误处理
单个目录下文件数量过多的时候rm -rf *会出现/bin/rm: argument list too long错误 可用以下命令删除 ls | xargs -n 10 rm -fr ls find /wwwroot/cache/ -name "*" -exec rm {} \;
CentOS更新不升级内核设置
修改yum的配置文件 vim /etc/yum.conf,在 [main] 的最后添加 exclude=kernel*
Linode新KVM架构VPS更换内核以安装锐速BBR等程序
安装Grub 安装过程中可能会询问安装位置,不需要安装到MBR Arch Linux pacman -S linux grub CentOS 7 yum install kernel grub2 Debian apt-get install linux-image-amd64 grub2 Fedora 22 dnf install kernel-core grub2 Ubuntu apt-get install linux-image-virtual grub2 Gentoo (more…)
Supervisor守护Python进程
Debian下使用supervisor进程守护的方法 安装supervisor apt-get install supervisor 配置supervisor进程守护 在目录/etc/supervisor/conf.d/下, 新建一个文件,名字:yourpython.conf 在yourpython.conf文件里编辑添加: [program:yourpython] directory=/root/yourpython command=python server.py -c /root/yourpython/user-config.json user=root autostart = true autoresart = true stderr_logfile = /var/log/yourpython.log stdout_logfile = /var/log/yourpython.log stderr_logfile_maxbytes=4MB stderr_logfile_backups=10 startsecs=3 command就是ss的运行命令; user是执行命令的用户; autostart和autoresart指自动启动和自动重启; stdout_logfile重定向程序输出到此文件; stderr_logfile重定向程序错误到此文件; 修改以下文件 /etc/profile /etc/default/supervisor (more…)
CentOS7安装Gnome桌面及VNC远程方便挂机
第一步安装桌面 yum groupinstall "GNOME Desktop" 第二步安装VNC服务器及配置 yum install tigervnc-server 复制配置文件 (more…)
CentOS7\Ubuntu安装VMware Workstation 12
1、更新系统源 # yum update [On RedHat Systems] # apt-get update && apt-get upgrade [On Debian Systems] 2、VMware官网下载并增加执行权限 # chmod +x VMware-Workstation-Full-12.5.0-4352439.x86_64.bundle (more…)