码迷,mamicode.com
首页 >  
搜索关键字:etc    ( 45464个结果
centos7.3 64位 安装git
1.安装编译git时需要的包 2.删除已有的git 3.下载git源码 4.编译安装 5.检查一下版本号 ...
分类:其他好文   时间:2017-11-12 21:54:54    阅读次数:169
开机自动mount
root权限编辑:/etc/fstab vim /etc/fstab #当前系统里的唯一标志 挂载到什么地方 文件系统类型 选项 是否dump # <file system> <mount point> <type> <options> <dump> <pass># / was on /dev/sd ...
分类:其他好文   时间:2017-11-12 21:54:45    阅读次数:312
TopCoder SRM 561 Div 1 - Problem 1000 Orienteering
传送门:https://284914869.github.io/AEoj/561.html 题目简述: 题外话: 刚开始看题没看到|C|<=300。以为|C|^2能做,码了好久,但始终解决不了一棵树中多条直径去重的问题。后来才发现|C|<=300,暴力就可以了。 不知道有哪位大佬会|C|^2的做法? ...
分类:其他好文   时间:2017-11-12 21:54:08    阅读次数:278
httpd: Could not reliably determine the server's fully
Startinghttpd:httpd:Couldnotreliablydeterminetheserver‘sfullyqualifieddomainname,using192.168.229.152forServerName(2)Nosuchfileordirectory:httpd:couldnotopenerrorlogfile/etc/httpd/logs/error_log.Unabletoopenlogs第一个问题解决办法:vi/etc/httpd/conf/httpd.co..
分类:Web程序   时间:2017-11-12 20:53:52    阅读次数:241
Python小练习---导入os模块做一个统计文件夹大小的函数
import os def getdirsize(dirpath): #设置一个用于累加大小的变量 total = 0 #获取文件夹中所有文件和文件夹 allnames = os.listdir(dirpath) #遍历所有文件和文件夹,并将他们的大小累加起来 for i in allnames: ...
分类:编程语言   时间:2017-11-12 20:48:57    阅读次数:300
popwindow+动画
布局: main: pop: 代码: ...
分类:Windows程序   时间:2017-11-12 20:48:50    阅读次数:292
centos7新系统安装
1.1 从Sysvinit技术到Systemd技术Sysvinit优点: Sysvinit运行良好,概念简单清晰。依赖于shell脚本缺点: 1.并行启动,开机慢, 2.容易夯住(如webServer 挂载(/etc/inittab文件下) nfsServer(未启动),时,webServer会夯住 ...
分类:其他好文   时间:2017-11-12 19:20:28    阅读次数:311
linux操作系统--配置网卡和设置网络联网
[root@localhost 桌面]# pwd #查看当前目录 /root/桌面 [root@localhost 桌面]# cd /etc/sysconfig/network-scripts #切到这个目录下 [root@localhost network-scripts]# ll #列出文件下的 ...
分类:系统相关   时间:2017-11-12 18:41:10    阅读次数:150
RedHat 7.2配置本地yum源
红帽配置yum源1挂在ios镜像必须创建一个目录liu,把镜像挂载liu目录下[root@localhost~]#clear[root@localhost~]#mkdirliu[root@localhost~]#mount/dev/sr0liumount:/dev/sr0写保护,将以只读方式挂载[root@localhost~]#^C[root@localhost~]#2进入/etc/yum.repo/下创建一个文件..
分类:其他好文   时间:2017-11-12 18:37:44    阅读次数:451
磁盘格式化、磁盘挂载、手动增加swap空间
一、磁盘格式化cat/etc/filesystems可以查看出文件下centos7支持那些文件系统格式。centos7默认的文件系统为xfs。(/和/boot都是使用xfs格式的文件系统。)centos6一直之前版本默认使用的ext的文件系统。查看分区的文件系统可以使用命令mount。可知,sda1、sda3的文件系统类型..
分类:其他好文   时间:2017-11-12 18:37:35    阅读次数:196
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!