lnmp

前端之家收集整理的这篇文章主要介绍了lnmp前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
                                            <table class="text"&gt;<tbody><tr class="li1"&gt;

<td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176

用户配置 groupadd web useradd Nginx -g web useradd PHP -g web useradd MysqL -g web useradd memcached -g web useradd fam520 -g web   # 编译安装GIT # wget https://www.kernel.org/pub/software/scm/git/git-2.3.0.tar.gz yum -y remove git tar -zxvf git-2.3.0.tar.gz cd git-2.3.0 ./configure prefix=/usr/local/git # 出现报错可以忽略 make && make install && cd .. ln /usr/local/git/bin/git /usr/bin/ # 配置GIT账号 git config --global user.name 'Hismer' git config --global user.email 'odaytudio@gmail.com'   # 配置SSH ssh-keygen -t rsa -C "odaytudio@gmail.com" cd ~/.ssh   # 编译安装Nginx tar -zxvf Nginx-1.4.2.tar.gz cd Nginx-1.4.2 ./configure --with-http_ssl_module make && make install && cd .. cp -f init.d/Nginx /etc/init.d/Nginx chmod 755 /etc/init.d/Nginx ln /usr/local/Nginx/conf/Nginx.conf /etc/Nginx.conf   # Yum安装MysqL yum -y install MysqL-server service MysqLd start # 设置初始密码 MysqLadmin -u root password 123456 # 添加远程登录 MysqL -uroot -p123456 use MysqL; GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; exit; service MysqLd restart # 添加开机自动启动 # chkconfig --add MysqLd   # 安装Memcached服务 # wget http://www.memcached.org/files/memcached-1.4.20.tar.gz tar -zxvf memcached-1.4.20.tar.gz cd memcached-1.4.20 make && make install && cd .. cp -f init.d/memcached /etc/init.d/memcached chmod 755 /etc/init.d/memcached   # 安装Redis服务 # wget http://download.redis.io/releases/redis-3.0.7.tar.gz tar -zxvf redis-3.0.7.tar.gz cd redis-3.0.7 make && make install && cd .. cp -f etc/redis.conf /etc/redis.conf cp -f init.d/redis /etc/init.d/redis chmod 755 /etc/init.d/redis   # 编译安装PHP tar -jxvf PHP-5.5.10.tar.bz2 cd PHP-5.5.10 ./configure --enable-fpm --enable-MysqLnd make && make install && cd .. cp -f init.d/PHP-fpm /etc/init.d/PHP-fpm cp -f etc/PHP-fpm.conf /usr/local/etc/PHP-fpm.conf cp -f etc/PHP.ini /usr/local/lib/PHP.ini ln /usr/local/lib/PHP.ini /etc/PHP.ini ln /usr/local/etc/PHP-fpm.conf /etc/PHP-fpm.conf chmod 755 /etc/init.d/PHP-fpm   # PHP-GD安装 yum -y install libjpeg-turbo-devel yum -y install freetype-devel cd PHP-5.5.10/ext/gd/ /usr/local/bin/PHPize ./configure --with-PHP-config=/usr/local/bin/PHP-config --with-jpeg-dir=/usr/include/ --with-freetype-dir=/usr/include/freetype2/freetype/ --with-png-dir=/usr/local/libpng/ make && make install && cd ../../..   # PHP-MysqL安装 cd PHP-5.5.10/ext/MysqL/ /usr/local/bin/PHPize ./configure --with-PHP-config=/usr/local/bin/PHP-config --with-MysqL=MysqLnd make && make install && cd ../../..   # PHP-MysqLi安装 cd PHP-5.5.10/ext/MysqLi/ /usr/local/bin/PHPize ./configure --with-PHP-config=/usr/local/bin/PHP-config --with-MysqLi=MysqLnd make && make install && cd ../../..   # PHP-Pdo_MysqL安装 cd PHP-5.5.10/ext/pdo_MysqL/ /usr/local/bin/PHPize ./configure --with-PHP-config=/usr/local/bin/PHP-config --with-pdo-MysqL=MysqLnd make && make install && cd ../../..   # PHP-Curl安装 cd PHP-5.5.10/ext/curl/ /usr/local/bin/PHPize ./configure --with-PHP-config=/usr/local/bin/PHP-config make && make install && cd ../../..   # PHP-Zlib安装 cd PHP-5.5.10/ext/zlib/ mv config0.m4 config.m4 /usr/local/bin/PHPize ./configure --with-PHP-config=/usr/local/bin/PHP-config make && make install && cd ../../..   # PHP-Zip安装 cd PHP-5.5.10/ext/zip/ /usr/local/bin/PHPize ./configure --with-PHP-config=/usr/local/bin/PHP-config make && make install && cd ../../..   # PHP-Mbstring安装 cd PHP-5.5.10/ext/mbstring/ /usr/local/bin/PHPize ./configure --with-PHP-config=/usr/local/bin/PHP-config make && make install && cd ../../..   # PHP-Memcached安装 #wget https://launchpad.net/libmemcached/1.0/1.0.9/+download/libmemcached-1.0.9.tar.gz tar -zxvf libmemcached-1.0.9.tar.gz cd libmemcached-1.0.9 ./configure make && make install && cd .. tar -zxvf memcached-2.2.0.tgz cd memcached-2.2.0 /usr/local/bin/PHPize ./configure --with-PHP-config=/usr/local/bin/PHP-config --disable-memcached-sasl make && make install && cd ../../..   # PHP-Redis安装 git clone https://github.com/nicolasff/PHPredis cd PHPredis/ /usr/local/bin/PHPize ./configure --with-PHP-config=/usr/local/bin/PHP-config make && make install && cd ..   # 配置演示站点 cp -f etc/iptables /etc/sysconfig/iptables cp -rf Test/ /srv/Test service iptables restart service Nginx start service PHP-fpm start 原文链接:https://www.f2er.com/note/421309.html

猜你在找的程序笔记相关文章