1.安装apache [root@admin-pc mnt]# yum -y install httpd* 2.创建默认index.html页面(默认没有index.html页面) [root@admin-pc mnt]# vi /var/www/html/index.html <html><bod ...
分类:
其他好文 时间:
2020-02-18 18:34:23
阅读次数:
86
vim 中一个tab的宽度太大,debian系统,没改之前是宽度是8个字符,想改成4,如下: vim ~/.vimrc 添加如下几行:(括号中的不是,是我添加的) :wq 保存退出。 source ~/.vimrc (使配置文件生效) ...
分类:
系统相关 时间:
2020-02-18 14:58:20
阅读次数:
89
将之前的CentOS-Base.repo文件里的内容换成如下内容 vi /etc/yum.repos.d/CentOS-Base.repo # CentOS-Base.repo## The mirror system uses the connecting IP address of the cli ...
分类:
其他好文 时间:
2020-02-18 12:57:40
阅读次数:
87
5分钟入门ntpntp最原始的时间服务器ntpinstallyuminstallntpntpdatesystemctlenablentpd&&systemctlrestartntpdntpconfigserver#vi/etc/ntp.confservercn.pool.ntp.orgpreferrestrict192.168.1.1mask255.255.255.0nomodif
分类:
其他好文 时间:
2020-02-17 09:29:38
阅读次数:
79
禁用邮件通知:vi/etc/profile在末尾添加#禁止邮件提示unsetMAILCHECK数据库部署及引擎管理数据库简介数据库技术构成1.数据库系统DBSA.数据库管理系统(DataBaseManagementSystem,DBMS):SQL(RDS):ORACLE、OracleMySQL、MariaDB、Perconaserver、DB2NoSQL:Redis、MongoDB、Memcach
分类:
数据库 时间:
2020-02-17 09:23:48
阅读次数:
99
1小时入门tigervncForrhel6#installyuminstall-ytigervnctigervnc-serverchkconfigtigervncon/etc/init.d/tigervncstart#vi/etc/sysconfig/vncserversVNCSERVERS="1:usera2:userb"VNCSERVERARGS[1]="-geometry1440x1080-
分类:
其他好文 时间:
2020-02-17 09:19:49
阅读次数:
78
5分钟入门dnsmasqDnsmasq提供DNS缓存和DHCP服务功能dnsmasqinstallyuminstall-ydnsmasqsystemctlenableddnsmasqconfig#vi/etc/dnsmasq.conflisten-address=192.168.1.132,127.0.0.1##转发域名解析server=/cn/114.114.114.114server=/tao
分类:
其他好文 时间:
2020-02-17 09:17:20
阅读次数:
72
5分钟入门ntpntp最原始的时间服务器ntpinstallyuminstallntpntpdatesystemctlenablentpd&&systemctlrestartntpdntpconfigserver#vi/etc/ntp.confservercn.pool.ntp.orgpreferrestrict192.168.1.1mask255.255.255.0nomodif
分类:
其他好文 时间:
2020-02-17 09:16:46
阅读次数:
59
5分钟入门chronychrony是ntp在替代品,使用上比ntp更简单installchronyyuminstallchrony#rpm-qlchrony/etc/chrony.conf/usr/bin/chronyc/usr/sbin/chronydchronyserverconfig#vi/etc/chrony.confservercn.pool.ntp.orgiburstservertw.
分类:
其他好文 时间:
2020-02-16 17:54:07
阅读次数:
112
sed基本用法:sed全称: Stream EDitor行编辑器 (全屏编辑器: vi)sed: 模式空间默认不编辑原文件,仅对模式空间中的数据做处理;而后,处理结束后,将模式空间打印至屏幕; sed [options] 'AddressCommand' file ...-n: 静默模式,不再默认显 ...
分类:
系统相关 时间:
2020-02-15 20:26:14
阅读次数:
124