最新 人气 评论

centOS系统时间查看与设置

1、查看当前日期,使用date命令回车即可查看当前时间:2、使用%F格式化查看系统时间3、手动设置系统日期,设置日期如下:4、手动设置系统时间,设置时间如下:5、格式化查看系统日期:6、格式化查看系统时间:

Centos 7 开启端口

CentOS 7 默认没有使用iptables,所以通过编辑iptables的配置文件来开启80端口是不可以的CentOS 7 采用了 firewalld 防火墙如要查询是否开启80端口则:[root@joe-pc~]#firewall-cmd--query-port=80/tcp no显然80端口没有开启下面我们开启80端口:[root@joe-pc~]#

Linux源码包安装卸载教程 以apache httpd源码包安装为教程(APR not found

Linux源码包安装过程我们这里以安装apache httpd源码包为例1、安装准备安装c语言编辑器gcc使用yum -y install gcc即可安装下载源码包httpd源码包下载地址,我这里选择的版本是httpd-2.2.9.tar.gzhttp://mirror.bit.edu.cn/apache/httpd/2、安装注意事项源码包安装位置:/usr

Centos7搭建Git及安装使用

一、Centos7.2 下 Git的安装1、查看是否安装了gitrpm-qa|grepgit若已经安装,需要先卸载。卸载命令如下:rpm-e--nodepsgit或者rpm-egit2、安装Gityuminstallgit输入y,并回车再使用 rpm -qa|grep git 来查看是否已经安装好了Git。3、创建Git仓库mkdirsix_git//创建文

[Linux] Git: push 出错的解决 master -> master (branc

在使用Git Push代码到数据仓库时,提示如下错误:[remoterejected]master->master(branchiscurrentlycheckedout) remote:error:refusingtoupdatecheckedoutbranch:refs/heads/master remote:error:Bydefault,updati

git在push的时候出现insufficient permission for adding an

错误信息:Countingobjects:9,done. Deltacompressionusingupto2threads. Compressingobjects:100%(5/5),done. Writingobjects:100%(5/5),506bytes,done. Total5(delta2),reused0(delta0) error:insu

Linux中修改密码出现it is based on a dictionary word解决方法

用passwd修改用户密码,常常提示"BAD PASSWORD: it is based on a dictionary word"。实际上linux要求的密码验证机制是在/etc/login.defs中规定最小密码字符数;同时还要受到/etc/pam.d/passwd的限定。如果是在root用户下怎么设置都可以,可以不受验证机制的约束,即便出来"BAD P

Linux下查看用户列表

cat /etc/passwd 可以查看所有用户的列表w 可以查看当前活跃的用户列表cat /etc/group 查看用户组但是这样出来的结果一大堆,看起来嘿负责,于是继续google找到个简明的layout命令cat/etc/passwd|grep-vnologin|grep-vhalt|grep-vshutdown|awk-F":"'{print
返回顶部 留言