CentOS常用命令
cd用来进入指定的某个目录。 说cd这个命令是Linux上使用率最高的两个命令之一不为过吧(另一个当然是ls了),前两天看到了一个cd命令的小技巧是我一直都不知道的,呵呵,这里顺便记下来。 cd - ...
CentOS7 SWAP 设置 (实测 笔记)
首先查看当前的内存及swap情况(参数 -h,-m ) [root@centos ~]# free -h 查看swap信息,包括文件和分区的详细信息 [root@centos ~]# swapon -s 创建swap交换文件(最大值为2G) [root@c...
gradle老问题
问题1 What went wrong:A problem occurred configuring project ‘:XXX(这个是你的项目)’.java.io.FileNotFoundException: /AndroidManifest.xml (No such file or directory) 解决方法:rm...
Centos最新方法升级php版本到5.2.11
Centos最新方法升级php版本到5.2.11 rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy wget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo yum --ena...
Win10默认开启数字小键盘的方法
用Win10系统的用户很多都设置了开机密码,但有不少用户开机时数字小键盘的状态是关闭的。怎么设置开机默认打开数字小键盘,以方便输入密码呢?操作方法第一步、按下Win+R组合键,再出现的运行命...
装完Centos7提示Initial setup of CentOS Linux 7 (core)
在用U盘装完CentOS后,重新开机启动后显示: Initial setup of CentOS Linux 7 (core) 1) [x] Creat user 2) [!] License information (no user will be created) (license not accepted) Pleas...
Git 怎么添加多个远程仓库呢
#添加githubgit remote add origin https://github.com/xxx(仓库地址) #添加oschinagit remote add oschina https://git.oschina.net/xxxx(仓库地址) #提交到oschinagit push oschina master(分...
Centos更改为163源
1. 首先备份/etc/yum.repos.d/CentOS-Base.repo mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2. 下载对应版本repo文件, 放入/etc/yum.repos.d/(操作前请做...
CentOS查看开启端口
安装nmap yum install nmap #输入y安装 使用nmap nmap localhost #查看主机当前开放的端口 nmap -p 1024-65535 localhost #查看主机端口(1024-65535)中开放的端口 nmap -PS 192.168.21.163 #...
CentOS正确关机方法
关机前准备 1.观察系统使用状态 谁在线:who 联网状态:netstat -a 后台执行的程序:ps -aux 2.通知在线使用者关机时间 shutdown +2 'The machine will shutdown' # 2min 后关机,并通知在线者 关...