没有合适的资源?快使用搜索试试~ 我知道了~
首页Linux安装nginx/mysql/php/zabbix
资源详情
资源评论
资源推荐

nginx:nginx1.14.0.tar.gz
启动nginx服务
/opt/platform/nginx/sbin/nginx&
防火墙
安装nginx
yum‐yinstallwgetopenssl*gccgcc‐c++autoconflibjpeg
libjpeg‐devellibpnglibpng‐develfreetypefreetype‐devellibxml2
libxml2‐develzlibzlib‐develglibcglibc‐develglib2glib2‐devel
bzip2bzip2‐develncursesncurses‐develcurlcurl‐devele2fsprogs
e2fsprogs‐develkrb5krb5‐devellibidnlibeventlibmcryptlibidn‐
developensslopenssl‐developenldapopenldap‐develnss_ldap
openldap‐clientsopenldap‐serversmakegdgd2gd‐develgd2‐devel
libxsltlibxslt‐devellibaiolibaio‐devellibicu‐develnet‐tools
vimlrzszntp
groupaddnginx
useradd‐s/sbin/nologin‐gnginxnginx
tarzxvfnginx‐1.14.0.tar.gz
cdzxvfnginx‐1.14.0
./configure‐‐user=nginx‐‐group=nginx‐‐
prefix=/opt/platform/nginx‐‐with‐http_stub_status_module‐‐with‐
http_ssl_module‐‐with‐http_v2_module‐‐with‐
http_gzip_static_module‐‐with‐http_sub_module‐‐with‐pcre‐‐
with‐stream‐‐with‐stream_ssl_module
make
makeinstall
1
2
1
2
3
4
5
6
7
8
9
10
11

mysql:mysql5.7.22linuxglibc2.12x86_64.tar.gz
编辑配置文件
安装mysql
开启80端口
#firewall‐cmd‐‐zone=public‐‐add‐port=80/tcp‐‐permanent
#firewall‐cmd‐‐reload
tarzxvfmysql‐5.7.22‐linux‐glibc2.12‐x86_64.tar.gz
mvmysql‐5.7.22‐linux‐glibc2.12‐x86_64/opt/platform/mysql
groupaddmysql
useradd‐gmysqlmysql
mkdir/opt/platform/data
chown‐Rmysql./opt/platform/data
vi/etc/my.cnf
[mysqld]
datadir=/opt/platform/data/mysql
socket=/tmp/mysql.sock
character_set_server=utf8
symbolic‐links=0
language=/opt/platform/mysql/share/english/
server_id=1
port=3306
log‐bin=mysql‐bin
#connection
interactive_timeout=1800
wait_timeout=1800
lock_wait_timeout=1800
skip_name_resolve=1
max_connections=1000
max_connect_errors=100000
1
2
3
1
2
3
4
5
6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

初始化安装
修改/etc/init.d/mysql种的路径
servicemysqlstart
servicemysqlstop
servicemysqlrestart
编辑环境变量
#log_settings
log_error=error.log
slow_query_log=1
slow_query_log_file=slow.log
long_query_time=5
/opt/platform/mysql/bin/mysqld‐‐initialize‐insecure‐‐
datadir=/opt/platform/data/mysql
cp/opt/platform/mysql/support‐files/mysql.server
/etc/init.d/mysql
......
basedir=/opt/platform/mysql
datadir=/opt/platform/data/mysql
......
vi/etc/profile
exportMYSQL_HOME=/opt/platform/mysql
exportPATH=$PATH:$MYSQL_HOME/bin
21
22
23
24
25
26
27
28
1
2
1
2
3
4
5
1
2
3
4
5
剩余15页未读,继续阅读

















灶门瓢把子
- 粉丝: 2
- 资源: 1
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
安全验证
文档复制为VIP权益,开通VIP直接复制

评论1