User Tools

Site Tools


linux常见问题与解决

This is an old revision of the document!


# Ubuntu设置强密码

https://help.ubuntu.com/community/StrongPasswords

# Linux端口被占用

参考[StackOverflow](https://stackoverflow.com/questions/20239232/error-that-port-is-already-in-use)

执行命令`sudo lsof -t -i tcp:<port_number>`查看被占用的端口号对应的进程id,然后kill相应进程,或者直接执行`sudo lsof -t -i tcp:<port_number> | xargs kill -9`或`sudo fuser -k <port_number>/tcp`kill占用端口的进程。

# 停用系统服务

```bash # 例如:sudo systemctl disable tomcat8 sudo systemctl disable <service_name> ```

# 触摸板双指操作在休眠后失效

编辑`/etc/default/grub`文件,添加`psmouse.synaptics_intertouch=0`到`GRUB_CMDLINE_LINUX_DEFAULT`的最后,例如:`GRUB_CMDLINE_LINUX_DEFAULT="quiet splash psmouse.synaptics_intertouch=0"`

linux常见问题与解决.1531114967.txt.gz · Last modified: 2021/02/10 21:29 (external edit)