摘要:1.首先进入根目录,然后进入etc/yum.repos.d目录下,创建google-chrome.repo文件 cd / cd etc/yum.repos.d vim google-chrome.repo 2.在文件中添加: ESC 退出到命令模式,shift+q , x保存退出。复制代码 [goo
阅读全文
摘要:Linux下如何查看版本信息, 包括位数、版本信息以及CPU内核信息、CPU具体型号等等,整个CPU信息一目了然。 1、# uname -a (Linux查看版本当前操作系统内核信息) Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:
阅读全文
摘要:1.查看进程: 四种任选其中一种topps auxps -elfpstree -aup 2.查看某个软件是否安装:rpm -qa | grep logwatch或者 yum list installed(或者logwatch)两者都没有说明没有安装 3.查看登陆日志 last -9清除登陆系统成功的
阅读全文
摘要:在测试的时候不小心把centos的/root用rm -rf给删除了 删除/root目录,系统不会崩溃,也可以正常启动,但就是看着不爽! 解决办法: 1.直接创建/root目录;mkdir /root 2.复制/etc/skel/下的隐藏文件到/root目录下;cp /etc/skel/.bash*
阅读全文
摘要:centos7.3系统,已经关闭firewalld,但是除了22端口,其余端口无法被外界访问,本地访问正常,解决步骤: 1、先开启firewalld:systemctl start firewalld2、放通端口:firewall-cmd --zone=public --add-port=8080/
阅读全文
摘要:1.简单说明centos7系统中有不同类型的程序,一类是操作系统的服务程序,另一类是第三方程序,而redis就是第三方程序,每次关机后开机都要手工重新启动,很麻烦,那么如何把redis设置为开机自启动,以下将通过新建脚本的方式实现redis开机自启动。 2.具体步骤(1)在etc目录下新建redis
阅读全文
摘要:1、检测是否有安装redis-cli和redis-server; [root@localhost bin]# whereis redis-cli redis-cli: /usr/bin/redis-cli [root@localhost bin]# whereis redis-server redi
阅读全文
摘要:1.安装gcc yum install gcc gcc-c++ 2.下载node国内镜像(推荐) wget https://npm.taobao.org/mirrors/node/v10.14.1/node-v10.14.1-linux-x64.tar.gz 3.解压并重命名文件夹 tar -xvf
阅读全文
摘要:CentOS下安装netcat 使用zookeeper过程中,需要监控集群状态。在使用四字命令时(echo conf | nc localhost 2181),报出如下错误:-bash: netcat: command not found。我的系统是CentOS 6.6, 64位系统,默认没有安装n
阅读全文
摘要:我出错的主要原因:没有安装telnet-server 我认为容易出错的主要三点就是 1、用yum安装的时候没有安装telnet-server 2、没有重启xinetd服务 3、防火墙的端口没开 详细步骤如下: 查询一下rpm包是否有安装 [root@localhost software]# rpm
阅读全文
摘要:xinetd服务时发现xinetd服务启动不了,并出现错误提示xinetd:unrecognized service,当出现这个错误提示的时候说明系统未安装xinetd包 解决方法 只需安装xinetd包 安装包 #yum -y install xinetd 安装成功后即可 service xine
阅读全文
摘要:1、命令:"netstat -lntp" 2、没有改命令的话,需要安装 net-tools工具:"yum install net-tools"
阅读全文
摘要:1.下载redis下载目录 /usr/local/src [root@root src]# wget http://download.redis.io/releases/redis-5.0.4.tar.gz 2.解压 [root@root src]# tar -zxvf redis-5.0.4.ta
阅读全文
摘要:E388: Couldn’t find definitionvim 方向键不起作用 vim ~/.vimrc 1 添加 :set term=builtin_ansi 1
阅读全文
摘要:Centos中无法使用make,make install,命令 make: command not found 一般出现这个-bash: make: command not found提示, 是因为安装系统的时候使用的是最小化mini安装, 系统没有安装make、vim等常用命令,直接yum安装下即
阅读全文
摘要:error: C++ preprocessor "/lib/cpp" fails sanity check 问题的解决 问题的根源是缺少必要的C++库。如果是CentOS系统,运行,如下命令解决: yum install glibc-headers yum install gcc-c++ Ubunt
阅读全文
摘要:configure: error: no acceptable C compiler found in $PATH错误主要是没有C编译器. 安装C编译器: [root@localhost sipp-3.5.1]# yum -y install gcc
阅读全文
摘要:1、安装源 安装php72w,是需要配置额外的yum源地址的,否则会报错不能找到相关软件包。 php高版本的yum源地址,有两部分,其中一部分是epel-release,另外一部分来自webtatic。如果跳过epel-release的话,安装webtatic的时候,会有错误爆出。 所以,这里需要的
阅读全文
摘要:系统:centos 问题:bash: ip command not found 解决办法: yum -y install initscripts
阅读全文
摘要:apache:如果采用RPM包安装,安装路径应在 /etc/httpd目录下apache配置文件:/etc/httpd/conf/httpd.confApache模块路径:/usr/sbin/apachectlweb目录:/var/www/html如果采用源代码安装,一般默认安装在/usr/loca
阅读全文