系统

CentOs7,最小安装,使用 Ext4,/ ,/boot,/swap 使用标准分区,另一个分区做为数据分区,使用 LVM.

查看版本:lsb_release -a

更新:

163 镜像: http://mirrors.163.com/.help/centos.html

阿里云镜像:https://mirrors.aliyun.com/centos/

 yum update

修改计算机名

http://www.centoscn.com/CentOS/config/2014/1031/4039.html

hostnamectl set-hostname <host-name>

重启:shutdown -r now

关机: shutdown -h now

RPM

安装: rpm -ivh rpm文件

更新: rpm -Uvh rpm文件

卸载:rpm -e 软件名

Yum

安装:yum install xxx

卸载:yum remove xxx

命令:http://www.centoscn.com/CentOS/help/2013/1019/1906.html

防火墙

安装后,没有启用网卡: http://www.cnblogs.com/hwd-cnblogs/p/4003607.html

防火墙添加端口号

   firewall-cmd --zone=public --add-port=/tcp --permanent

   firewall-cmd --reload

如果添加Http端口,则:

firewall-cmd --permanent --zone=public --add-service=http

关闭防言墙

centos 7:
systemctl stop firewalld.service #停止
systemctl disable firewalld.service #禁用
之前的版本:
service iptables stop #停止
chkconfig iptables off #禁用

开放端口

iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT   #允许3306数据库端口通过防火墙

service iptables save

cat /etc/sysconfig/iptables

service iptables restart

http://www.cnblogs.com/meetrice/p/5309666.html

关闭端口

  1. 列规则 /sbin/iptables -L -n –line-number

  2. iptables -D INPUT $num    ($num为上一个命令列出的数字)

查看网络

使用 netstat,ifconfig,需要:  yum install net-tools

设置静态IP,编辑: vim /etc/sysconfig/network-scripts/ifcfg-em1

TYPE=Ethernet
BOOTPROTO=dhcp
#IPADDR=192.168.16.123
#NETMASK=255.255.255.0
#NETWORK=192.168.16.1
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
IPV6_FAILURE_FATAL=no
NAME=em1
UUID=ec1fcc2a-522e---93d6c7935bfb
DEVICE=em1
ONBOOT=yes

修改静态IP:

BootPROTO=Static

把下面的三行注释去除。即可。

但是可能上不了网。

设置时区:

https://www.cnblogs.com/st-jun/p/7737188.html

timedatectl set-timezone Asia/Shanghai

软件

安装Mariadb

Mariadb.org 官方安装教程:https://downloads.mariadb.org/mariadb/repositories/#mirror=opencas&distro=CentOS&distro_release=centos7-amd64--centos7&version=10.0

/etc/yum.repos.d/mariadb.repo

# MariaDB 10.0 CentOS repository list - created -- : UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=

sudo yum install MariaDB-server MariaDB-client

看状态:service mysql status

启动:service mysql start

安装Mono

http://www.mono-project.com/docs/getting-started/install/linux/#centos-7-fedora-19-and-later-and-derivatives

需要安装 yum-utils 才能使用 yum-config-manager

yum -y install yum-utils

http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=mono-opt

cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/home:tpokorra:mono/CentOS_CentOS-7/home:tpokorra:mono.repo
yum install mono-opt

http://www.centoscn.com/image-text/install/2015/0522/5508.html

jexus

http://www.jexus.org/

ActiveMq

http://www.cnblogs.com/newsea/p/4740834.html

安装 Jexus

https://jexus.codeplex.com/

安装 Htop

http://elearning.wsldp.com/pcmagazine/centos-install-htop/

CentOs笔记的更多相关文章

  1. CentOS 笔记

    对安装CentOS安装使用过程中的问题做一个笔记,第一次安装,安装的是7.0版本,最小化安装. 安装环境 :Windows 2012 R2 Standard,Hyper-V Virstual Mach ...

  2. Linux/Centos笔记目录

        Linux介绍 Linux入门--个人感想 Google怎么用linux 初入Linux Windows XP硬盘安装Ubuntu 12.04双系统图文详解 实例讲解虚拟机3种网络模式(桥接. ...

  3. centos笔记记录

    1. mac链接远程centos系统的时候,出现的问题: ssh 10.1**.4*.**:36** 会出现ssh: Could not resolve hostname 10.1**.4*.**:3 ...

  4. CentOS笔记-yum

    yum( Yellow dog Updater, Modified)是一个在Fedora和RedHat以及SUSE中的Shell前端软件包管理器. yum [options] [command] [p ...

  5. CentOS笔记-其他杂记

    1.忘记密码时,可以用single模式来修改密码,为了安全,可以禁用single模式,参考网址如下 Centos服务器禁止单用户模式(single)来增强系统安全 2.远程登录:ssh root@xx ...

  6. CentOS笔记-系统概述

    Linux系统的启动过程并不是大家想象中的那么复杂,其过程可以分为5个阶段: 内核的引导. 当计算机打开电源后,首先是BIOS开机自检,按照BIOS中设置的启动设备(通常是硬盘)来启动. 操作系统接管 ...

  7. CentOS 笔记(三) 目录结构

    理解CentOS 目录结构 首次登录进入,应该是进入了,run文件夹 通过  cd  ../ 进入了,最根节点 通过 ls  显示全部文件夹 通过 pwd 查看当前目录 参考: https://www ...

  8. CentOS笔记——配置DNS服务器

    前话 咳咳,这次Linux系统的DNS服务器搭建我不得不记下来.,这错误真的太蛋疼了,我整整弄了两天才解决问题(抱歉我很蠢). 也许有人会和我犯同样的错误,给大家分享一下经验. 首先总结一下知识点: ...

  9. 虚拟机centos笔记整理,持续更新~~

    远程拷贝文件:scp -r 文件名 主机名:完整路径名(冒号不能少)拷贝当前windows系统的文件到当前目录:rz -y 查找文件:updatedb 修改数据库locate 文件名 即可查找文件

随机推荐

  1. NOIp蒟蒻的爆零记——HA-0132

    考前: 从十一月开始的听课集训,连考六场:考前的最后两天写(da)着(zhe)各种各样的奇(C)葩(S)模板:一周的疯狂,已经过去: 考前的一晚:第二批高二的六个人聚在一起(还有滑稽大师),愉快的玩( ...

  2. AngularJs自定义指令详解(6) - controller、require

    在前面文章中提到一旦声明了require,则链接函数具有第四个参数:controller. 可见require和controller是配合使用的. 在自定义指令中使用controller,目的往往是要 ...

  3. POJ 2135 Farm Tour 最小费用流

    两条路不能有重边,既每条边的容量是1.求流量为2的最小费用即可. //#pragma comment(linker, "/STACK:1024000000,1024000000") ...

  4. linux下不同服务器间数据传输(rcp,scp,rsync,ftp,sftp,lftp,wget,curl)(zz)

    linux下不同服务器间数据传输(rcp,scp,rsync,ftp,sftp,lftp,wget,curl) 分类: linux2011-10-10 13:21 8773人阅读 评论(1) 收藏 举 ...

  5. JS获得URL超链接的参数值

    /** * 获取指定URL的参数值 * @param url  指定的URL地址 * @param name 参数名称 * @return 参数值 */ function getUrlParam(ur ...

  6. 关于swfupload,客户端中文乱码解决方案!

    公司做了个邮箱系统,上传附件用到了swfupload控件,测试成功上线后hr找我说上传附件中文乱码. 奇怪了,就只有她的电脑出问题,我找了好几台电脑,虚拟机也跑了怎么就找不到问题. 后来网上查了好久, ...

  7. matlab资源

    百度网盘  链接:http://pan.baidu.com/s/1c06ikEW 密码:9dpt包含matlab6.5,7,7.01,7.04,7.1,Matlab2006b(7.3),Matlab  ...

  8. [UCSD白板题] Majority Element

    Problem Introduction An element of a sequence of length \(n\) is called a majority element if it app ...

  9. 黑马程序员-nil Nil NULL NSNull 野指针和空指针

    空指针1.空指针指不含有任何内存地址的指针.在没有具体初始化之前,其被符值为0Dog * dog = nil;Dog * dog = NULL;都为空指针2.野指针指指向的内存为垃圾内存,导致其值不确 ...

  10. java轻量级Http Server

    lighttpd 官方主页:www.lighttpd.netLighttpd是一个德国人领导的开源软件,其根本的目的是提供一个专门针对高性能网站,安全.快速.兼容性好并且灵活的web server环境 ...