今天在以SSH免密方式,拉取git代码(git pull)时,报错:
WARNING:Your password has expired
今天在以SSH免密方式,拉取git代码(git pull)时,报错:
WARNING:Your password has expired
Mac/Linux 平台下,通用命令:
lsof -i:8080 (8080 为 端口号,根据需要,替换为其他端口号)
可以查看该端口被什么程序占用,并显示 pid,方便 kill 掉
在服务器站点执行 git pull 时,报错:
Your local changes to the following files would be overwritten by merge error: Your local changes to the following files would be overwritten by merge: protected/config/main.php Please, commit your changes or stash them before you can merge.
Linux下显示系统进程的命令ps,最常用的有ps -ef和ps aux。这两个到底有什么区别呢?两者没太大差别,讨论这个问题,要追溯到Unix系统中的两种风格,System V风格和BSD 风格,ps aux最初用到Unix Style中,而ps -ef被用在System V Style中,两者输出略有不同。现在的大部分Linux系统都是可以同时使用这两种方式的。
问)在当前脚本文件中调用另外一个脚本文件?
方法一: 使用 source
方法二: 使用 .
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
由于硬件的原因,机器或多或少的跟标准时间对不上,一个月的误差几秒到几分钟不等。对于服务器来说时间不准,会有很多麻烦。例如,支付的时候,无法下单,游戏无法登录等。
方法一:用 ntpdate从时间服务器更新时间
yum -y install ntp ntpdate time.nist.gov
Linux系统安装过程中需要选择系统时区,还需要选择键盘布局,往往新手在英文模式下安装Linux系统的时候容易出错,这样会给后续生产环境的系统造成不必要的困扰。以下配置以Linux RedHat系列操作系统为例修改Linux系统时区。

实现用户账号的管理,要完成的工作主要有如下几个方面:
1、查看物理CPU的个数
[root@MysqlCluster01 ~]# cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l
1
2、查看逻辑CPU的个数
[root@MysqlCluster01 ~]# cat /proc/cpuinfo |grep "processor"|wc -l
4