1、安装字体管理工具
yum install -y fontconfig mkfontscale
2、下载自己想要的字体, 将字体放入对应的服务器目录,没有则新建
mkdir -pv /usr/share/fonts/chinese
3.建立字体缓存
cd /usr/share/fonts/chinese/
mkfontscale
mkfontdir
fc-cache -fv
重起生效
4、查看字体
fc-list | grep times.ttf
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum update
sudo yum install ntfs-3g
yum groupinstall KDE Plasma Workspaces
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或者
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache 生成缓存
yum info epel-release
yum install epel-release
yum clean all && yum makecache
yum -y update
yum -y install wget
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
yum -y install nodejs
yum install gcc-c++
yum install -y pcre pcre-devel
yum install -y zlib zlib-devel
yum install -y openssl openssl-devel
wget http://nginx.org/download/nginx-1.12.2.tar.gz
tar -zxvf nginx-1.12.0.tar.gz
cd nginx-1.12.0
./configure
命令:make && make install
cd /usr/local/nginx/sbin/
./nginx # 启动
./nginx -s reload # 重新载入配置文件
./nginx -s reopen # 重启 Nginx
./nginx -s stop # 停止 Nginx
配置软链接
sudo ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx
开机启动
nginx官方提供了开机启动脚本:https://www.nginx.com/resources/wiki/start/topics/examples/redhatnginxinit/
Nginx添加nginx-rtmp-module
git clone https://github.com/arut/nginx-rtmp-module.git
wget http://nginx.org/download/nginx-x.x.x.tar.gz
tar -zxvf nginx-x.x.x.tar.gz
cd nginx-x.x.x
./configure --prefix=/usr/local/nginx --add-module=../nginx-rtmp-module --with-http_ssl_module
make && make install
1、配置yum管理包
1)、在路径/etc/yum.repos.d/下创建文件mongodb-org-3.4.repo
vim /etc/yum.repos.d/mongodb-org-3.4.repo
2)、在文件mongodb-org-3.4.repo中写入如下内容:
[mongodb-org]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
gpgcheck=1
enable=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc
2、安装mongodb(会安装mongodb-org包及其依赖包mongodb-org-server、mongodb-org-mongos、mongodb-org-shell、mongodb-org-tools)
/var/lib/mongo 数据库实例默认
/var/log/mongodb 日志默认
也可以通过修改/etc/mongod.conf文件的storage.dbPath和systemLog.path配置
yum install -y mongodb-org
mongod --dbpath=/data/db
3、开启mongodb服务
service mongod start
4、通过查看日志方式,验证服务开启成功,其中有一行为:[thread1] waiting for connections on port 27017
cat /var/log/mongodb/mongod.log
5、设置开机启动
chkconfig mongod on
6、停止mongodb服务
service mongod stop
7、重启mongodb服务
service mongod restart
8、停止服务
service mongod stop
9、删除安装的包
yum erase $(rpm -qa | grep mongodb)
10、删除数据及日志
rm -r /var/log/mongodb
rm -r /var/lib/mongo
yum -y install google-chrome
cd /etc/yum.repos.d/
vim google-chrome.repo
---------------------------------
[google-chrome]
name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
---------------------
yum -y install google-chrome-stable --nogpgcheck
wget https://download.teamviewer.com/download/teamviewer.i686.rpm
yum install /home/kris/Downloads/teamviewer_12.0.71510.i686.rpm
# wget https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm # yum install teamviewer.x86_64.rpm
ll /etc/sysconfig/network-scripts/ifcfg*
找到配置文件,其中的ONBOOT=no 改作ONBOOT=yes,保存并退出
source /etc/sysconfig/network-scripts/(配置文件名)
修改 /etc/profile 文件,在文件末尾加上如下两行代码
PATH=$PATH:/usr/local/nginx/sbin
export PATH
最后执行命令 source /etc/profile 或执行点命令 ./profile 使其修改生效
https://blog.csdn.net/a419419/article/details/78831869
pm2创建配置文件pm2 ecosystem
pm2查看进程状态和输出 pm2 monit