问题:搭建ubuntu系统后,输入命令的第一个字符+上页按键,发现不能找到历史命令,找了好久才发现是因为/etc/inputrc没有对键盘映射的上页键和下页键进行设置。 解决方法: 修改文件/etc/inputrc,添加对上页键和下页键的设置如下 # vim /etc/inputrc "\e[5~" ...
分类:
其他好文 时间:
2019-11-12 13:25:29
阅读次数:
137
一、ubuntu系统安装nginx服务 # apt-get install nginx 二、nginx.config配置文件详解 配置文件结构: 全局块(全局变量) events{ } http{ http全局变量 # upstream模块不是必须的结构 # upstream{ # } server ...
分类:
其他好文 时间:
2019-11-12 13:21:07
阅读次数:
76
1. 查看时区的命令: timedatectl 2. 修改时区命令: dpkg-reconfigure tzdata 然后根据需求选择地区,我这里选的是Asia(亚洲) 时区选的是 shanghai(上海): ...
分类:
系统相关 时间:
2019-11-12 13:07:06
阅读次数:
102
创建软链接 ln -fs /lib/systemd/system/rc-local.service /etc/systemd/system/rc-local.service 编辑配置文件 vim /etc/systemd/system/rc-local.service # SPDX-License- ...
分类:
系统相关 时间:
2019-11-12 13:06:14
阅读次数:
106
安装samba服务 # apt-get install samba 创建一个samba服务的分享目录 # mkdir /share 创建一个samba服务限制的用户及组 #useradd public 一直按Enter键就可以创建好了 查看是否用户是否创建成功 # ls -al /home drwx ...
分类:
系统相关 时间:
2019-11-12 13:01:18
阅读次数:
97
一、系统环境 ubuntu6.4系统 nginx 版本: nginx/1.10.3 (Ubuntu)。 二、打开目录浏览功能Nginx默认是不允许列出整个目录的。如需此功能,编辑虚拟主机配置文件,在location server 或 http段中加入autoindex on;另外两个参数最好也加上去 ...
分类:
其他好文 时间:
2019-11-12 12:56:35
阅读次数:
111
参考教程:https://linux.cn/article-5444-1.html 1.假设你有一台主机A(ip:111.111.111.111),用户名为server123,想无密码登陆到主机B(188.188.188.188)上,用户名为ubuntu 2.在主机A上使用ssh-keygen生成一 ...
分类:
其他好文 时间:
2019-11-12 11:22:04
阅读次数:
94
本文首发于个人博客 "https://kezunlin.me/post/36e618e7/" ,欢迎阅读! mysql user guide on ubuntu 16.04 and windows 10 Part 1: Ubuntu install sudo apt get install mysq ...
分类:
数据库 时间:
2019-11-12 10:48:15
阅读次数:
87
日常开发中,环境的搭建是我们开发的基础,这里介绍几种快速搭建PHP开发环境的方式。 1)lnmp一键安装包【https://lnmp.org】 LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RHEL/Fedora/Aliyun/Amazon、Debian/Ubuntu/R ...
分类:
Web程序 时间:
2019-11-12 01:18:12
阅读次数:
104
https://linuxize.com/post/how-to-install-gcc-compiler-on-ubuntu-18-04/ sudo apt install software-properties-common sudo add-apt-repository ppa:ubuntu- ...
分类:
系统相关 时间:
2019-11-12 01:15:58
阅读次数:
109