码迷,mamicode.com
首页 >  
搜索关键字:centos7 hostname    ( 17623个结果
CentOS7 crontab 不执行,报错 /bin/sh: root: command not found
使用CentOS7 执行定时脚本,结果提示报错: /bin/sh: root: command not found 问题在于文件 /var/spool/cron/root ,中无需再写root。 修改之后的脚本: [root@localhost cron]# crontab -l */10 * * * * perl /home/awstats/wwwroot/cgi-bin/aws...
分类:其他好文   时间:2014-10-18 21:04:48    阅读次数:1350
Linux Apache 给 awstats 创建 访问密码
CentOS7 安装最新版本 awstats ,在httpd.conf 中加入了alias,可以直接访问网址就进入 浏览。十分不安全。 给访问加上密码的方法: [root@localhost wwwroot]# htpasswd -bc /home/awstats/wwwroot/.htpasswd aaa 123456 [root@localhost wwwroot]# nano ...
分类:Web程序   时间:2014-10-18 21:01:55    阅读次数:241
rhce习题集rhel7
破密:e-->linux16rd.breakCtrl+x-->mount-oremount,rw/sysroot-->chroot/sysroot-->echoflectrag|passwd--stdinroot-->touch/.autorelabel-->Ctrl+D-->reboot修改hostname和ip地址nm-connector-editorIPADDR0-->PREFIX0-->GATEWAY0-->DNS1-->..
分类:其他好文   时间:2014-10-16 22:45:04    阅读次数:183
Centos 7 Apache解析PHP
1、源码安装[root@localhost~]#yuminstall-ygccgcc-c++httpdphp-xmlphp-pearphp-mbstringphp-cliphp-odbcphp-peclphp-pdophp-gdphp-xmlrpcphp-develphp-mysqlphp-commonphp-processphp-ldapphp-bcmathrrdtool-phpphp-soapvim-X11vim-commonvim-enhancedvim-filesystemvim-minim..
分类:Web程序   时间:2014-10-16 11:44:53    阅读次数:220
grunt默认只允许localhost和访问,如何设置外部IP地址访问
grunt server默认访问地址为127.0.0.1:9000,如果需要从外部通过IP访问需要将Gruntfile.js的connect.option.hostname改为0.0.0.0
分类:其他好文   时间:2014-10-16 01:57:51    阅读次数:470
Linux常用命令整理
系统:#uname-a#查看内核/操作系统/CPU信息#cat/etc/issue#cat/etc/redhat-release#查看操作系统版本#cat/proc/cpuinfo#查看CPU信息#hostname#查看计算机名#lspci-tv#列出所有PCI设备#lsusb-tv#列出所有USB设备#lsmod#列出加载的内核模块#env#查看环境变量资源:#free-m#查看内..
分类:系统相关   时间:2014-10-15 21:54:22    阅读次数:281
centos7网卡重命名方法以及更换网卡导致起不来网卡的解决方法
网卡重命名为Centos5代经典样式eth0方法有三步:1、vim/etc/sysconfig/grub,找到GRUB_CMDLINE_LINUX,后面有个vconsole.font=latarcyrheb-sun16,空个格,加上net.ifnames=0biosdevname=0保存退出;2、grub2-mkconfig-o/boot/grub2/grub.cfg3、重启系统后执行ipa后发现已经是eth..
分类:其他好文   时间:2014-10-15 21:13:21    阅读次数:246
linux下更改主机名方法hostname
一、永久修改 修改/etc/sysconfig/network,在里面指定主机名称HOSTNAME= 然后执行命令 hostname 主机名 这个时候可以注销一下系统,再重登录之后就行了。 或者修改/etc/hosts文件中添加 192.168.2.13??????...
分类:系统相关   时间:2014-10-15 19:05:01    阅读次数:221
阿帕奇00-default配置文件(备忘)
# The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the Ser...
分类:其他好文   时间:2014-10-15 18:19:41    阅读次数:186
Linux局域网登陆响应时间过长
在局域网中,使用ssh登陆到其他机器上时,有时会出现等待10s以上才能正常登陆的问题。原因:Linux默认使用dns解析登陆IP,但是在局域网,并没有dns服务器,而且机器上也没有添加IP与域名(hostname)的绑定,导致浪费很多时间检查主机名。解决办法:1.在/etc/hosts文件中添加IP...
分类:系统相关   时间:2014-10-15 13:55:20    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!