ubuntu
文章平均质量分 63
「已注销」
努力工作,佛系生活
展开
-
-bash: ls: No such file or directory 错误的原因及解决办法
ubuntu出现如下错误:{Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-42-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: h...原创 2018-12-10 10:07:46 · 25917 阅读 · 0 评论 -
ubuntu系统搭建samba服务
安装samba服务 # apt-get install samba创建一个samba服务的分享目录 # mkdir /share创建一个samba服务限制的用户及组 #useradd public 一直按Enter键就可以创建好了查看是否用户是否创建成功 # ls -al /homedrwx-----...原创 2018-12-29 15:32:04 · 160 阅读 · 0 评论 -
inputrc命令
问题:搭建ubuntu系统后,输入命令的第一个字符+上页按键,发现不能找到历史命令,找了好久才发现是因为/etc/inputrc没有对键盘映射的上页键和下页键进行设置。 解决方法:修改文件/etc/inputrc,添加对上页键和下页键的设置如下# vim /etc/inputrc "\e[5~": history-search-backward"\e[6~": h...原创 2018-12-29 15:54:39 · 2264 阅读 · 0 评论 -
nginx服务学习第二章
nginx.config文件中字符串不显示高亮 nginx服务搭建完成后,查看nginx.config的时候发现没有高亮字符,要想配置文件出现高亮方便观看,需要修改一些配置文件,修改步骤如下:# mkdir -p /root/.vim/syntax # cd /root/.vim/syntax从公网下载nginx.vim# wget https:/...原创 2018-12-29 17:43:34 · 269 阅读 · 0 评论 -
nginx服务学习第三章
一、系统环境ubuntu6.4系统nginx 版本: nginx/1.10.3 (Ubuntu)。 二、打开目录浏览功能Nginx默认是不允许列出整个目录的。如需此功能,编辑虚拟主机配置文件,在location server 或 http段中加入autoindex on;另外两个参数最好也加上去:autoindex_exact_size off;默认为on,显示出文件的确切...原创 2019-01-07 15:56:47 · 167 阅读 · 0 评论 -
nginx服务学习第一章
一、ubuntu系统安装nginx服务# apt-get install nginx二、nginx.config配置文件详解配置文件结构: 全局块(全局变量)events{}http{ http全局变量 # upstream模块不是必须的结构 # upstream{ # } server{ s...原创 2019-01-07 16:11:51 · 150 阅读 · 0 评论