新主机配置清单

栏目: 服务器 · Nginx · 发布时间: 8年前

内容简介:新主机配置清单

openresty

官网:https://openresty.org/cn/linux-packages.html

vim /etc/yum.repos.d/OpenResty.repo:

[openresty]
name=Official OpenResty Repository
baseurl=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/epel-$releasever-$basearch/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/pubkey.gpg
enabled=1
enabled_metadata=1

yum install openresty

Vim

插件管理工具: https://github.com/VundleVim/Vundle.vim

MySQL:

yum install mariadb-server mariadb -y yum install mysql-devel systemctl enable mariadb

vim /etc/my.conf:

[mysqld]
# 省略其他,增加下面一行配置
character-set-server = utf8

[mysql]
# 省略其他,增加下面一行配置
default-character-set = utf8

systemctl start mariadb /usr/bin/mysqladmin -u root password 'new-password' mysql -uroot -p 'new-password'

create database myblog;
GRANT ALL PRIVILEGES ON myblog.* TO 'the5fire'@'localhost' IDENTIFIED BY '123456';

导入数据: mysql -uthe5fire -p '123456'

> user myblog
> source myblog.sql

Python

yum install python-devel yum install python-setuptools easy_install pip pip install virtualenv

Redis

yum install redis

no root user

useradd the5fire passwd 'suibianshishenmeba'

su - the5fire
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

----EOF-----

扫码关注,或者搜索微信公众号:码农悟凡

新主机配置清单

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

数据结构与算法分析

数据结构与算法分析

张琨、张宏、朱保平 / 人民邮电出版社 / 2016-2-1 / 45

本书共分10章,主要包括第1章绪论,第2章线性表,第3章栈和队列,第4章串,第5章数组和广义表,第6章 树和二叉树,第7章图,第8章查找,第9章内部排序,第10章算法分析。其内容模块涵盖了课堂教学、习题课教学、实验教学、自学辅导、综合训练等。立体化教材的使用在提高教学效率、增强教学效果、加大教学信息量、培养学生的应用与实践能力。 作者简介一起来看看 《数据结构与算法分析》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试