linux bug
一枚小爪哇
开启爪哇撸代码之旅
展开
-
【linux普通用户上传文件失败-完美解决】
- 如果没有root账号,那就只能给普通用户授权某个目录的上传文件权限;- 给需要上传文件的目录授权,例如,你需要将本地文件上传到/opt/projects/目录下,你的普通户用户账号是ops,- 在linux中输入如下命令sudo chown -R ops:ops /opt/projects/...原创 2022-07-23 14:41:10 · 7436 阅读 · 0 评论 -
解决[ClientAbortException: java.io.IOException: Broken pipe]
解决[ClientAbortException: java.io.IOException: Broken pipe]nginx解决反向代理超时# 修改Nginx配置文件cd /etc/nginxvim nginx.conflocation /api { proxy_pass http://localhost:8080; proxy_connect_timeout 60s; # proxy_send_timeout 180s; proxy_原创 2021-12-22 15:18:10 · 5328 阅读 · 2 评论 -
/usr/bin/xauth: file /home/wj/.Xauthority does not exist
解决【/usr/bin/xauth: file /home/wj/.Xauthority does not exist】xshell登录Ubuntu远程ip报错错误原因:是因为添加用户时没有授权对应的目录,仅仅执行了useradd user而没有授权对应的目录,直接解决办法如下(执行如下命令,以后就登录到终端上就不会出现上面的错误信息)chown username:username -R /home/user_dir我的目录是/home/wjusername是wj执行命令后再次登录就原创 2021-08-09 15:27:37 · 2518 阅读 · 0 评论 -
Failed to connect to https://changelogs.ubuntu.com/meta-release. Check your Internet connection or p
解决【Failed to connect to https://changelogs.ubuntu.com/meta-release. Check your Internet connection or proxy settings】xshell连接Ubuntu远程ip报错将账户切换到root账户输入命令,切换到root账户:su rootcat /var/lib/ubuntu-release-upgrader/release-upgrade-available执行【rm /var/l原创 2021-08-09 15:22:41 · 7973 阅读 · 2 评论