linux
FenG·
这个作者很懒,什么都没留下…
展开
-
ubuntu下解决Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
sudo vim /etc/resolv.conf添加nameserver 8.8.8.8sudo apt-get update 完事。。原创 2019-05-02 21:53:09 · 2681 阅读 · 0 评论 -
ubuntu下 安装ab(apache bench)
ab(apache bench)是apache下的一个工具,主要用于做web站点的压力测试1.安裝ab命令sudo apt-get install apache2-utils2.命令详情Usage: ab [options] [http[s]: //]hostname[:port]/pathOptions are:-n requests Number of request...原创 2019-05-02 21:55:44 · 5646 阅读 · 0 评论 -
screen命令
原文:https://www.cnblogs.com/mchina/archive/2013/01/30/2880680.html一、背景系统管理员经常需要SSH 或者telent 远程登录到Linux 服务器,经常运行一些需要很长时间才能完成的任务,比如系统备份、ftp 传输等等。通常情况下我们都是为每一个这样的任务开一个远程终端窗口,因为它们执行的时间太长了。必须等待它们执行完毕,在此期间...转载 2019-05-02 21:58:09 · 107 阅读 · 0 评论 -
Ubuntu16.04安装Nginx
原文:https://www.cnblogs.com/EasonJim/p/7806879.html转载 2019-05-16 13:02:38 · 77 阅读 · 0 评论 -
Nginx导致请求头丢失
1.Nginx代理时加上请求头信息: location / { proxy_next_upstream http_502 http_504 error timeout invalid_header; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; ...原创 2019-06-08 00:04:31 · 4129 阅读 · 0 评论 -
修改ubuntu系统编码
vi /etc/default/locale LANG="zh_CN.UTF-8"使用source /etc/default/locale 在不重启的情况下使刚才的修改生效再使用locale查看localeLANG=zh_CN.UTF-8LANGUAGE=LC_CTYPE="zh_CN.UTF-8"LC_NUMERIC="zh_CN.UTF-8"LC_TIME="zh...原创 2019-06-08 12:42:35 · 3266 阅读 · 0 评论 -
sudo报错及在linux上启动jar包时报错java.net.UnknownHostException
解决方法:vi /etc/hosts加入127.0.0.1 你的主机名使用sudo或者再次启动jar包就不会报错了。原创 2019-06-03 11:49:27 · 569 阅读 · 0 评论 -
npm install hexo-renderer-sass时报错
问题使用hexo搭建博客时,需安装hexo-renderer-sass:$ npm install hexo-renderer-sass解决改用淘宝镜像:$ npm install -g cnpm --registry=https://registry.npm.taobao.org$ npm config set registry https://registry.npm.taoba...转载 2019-07-02 11:05:34 · 1142 阅读 · 0 评论 -
nginx 启动失败
启动nginx时报错Jul 18 20:48:56 iZ7l4lsvycqnl8Z systemd[1]: Failed to start A high performance web server and a reverse proxy server.Jul 18 20:48:56 iZ7l4lsvycqnl8Z systemd[1]: nginx.service: Unit entered...原创 2019-07-18 20:52:07 · 385 阅读 · 0 评论