Proxmox如何删除locked VM
Proxmox找半天没找到怎么删除VM的地方,中文搜索结果里面竟然没有人跟我有一样的疑问,突然发现在控制栏启动关闭VM那排后面大大的Remove -_-!。 但是问题来了之前clone没有完成的VM删除报错VM is locked(clone). 解决办法很简单,进入服务器终端执行以下命令解锁后再进行删除搞定。 qm unlock VMID
关于Linux的正确读音,Linux怎么发音才是正确的
网上关于Linux的正确读音众说纷纭,让我们来看看 Linux创始人 Linus Torvalds 在采访中怎么读Linux的吧,原本以前我自己的读法是正确的后来被谁更正了下结果倒错了。 https://youtu.be/5IfHm6R5le0
vscode不能自动补全HTML代码怎么配置
在用vscode的时候已经安装好 HTML Snippets 插件但是自动补全代码的功能还是没有生效,需要在配置文件里面添加以下代码 "files.associations": { "*.ejs":"html", "*.js":"html", "*.vue":"html" }, "emmet.triggerExpansionOnTab": true, "emmet.includeLanguages":{ "vue-html":"html", "vue":"html" } 具体的添加位置在文件-首选项-设置(File-Preferences-Settings)中,搜索files.associations,然后点击在setting.json中编辑。
卸载阿里云盾(安骑士)监控&屏蔽云盾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…)
PHP显示500错误详细信息一句话方法
在页面中加入以下代码即可显示错误,无需修改php.ini register_shutdown_function(function(){ var_dump(error_get_last()); });
Debian下Python错误No module named MySQLdb
1、安装pip 2、pip install mysql-python 3、如果是debian的话就会再报错fails with EnvironmentError: mysql_config not found 先安装apt-get install libmysqlclient-dev 再安装mysql-python就可以搞定了