狂欢‰一夜 发表于 2015-11-16 10:07:34

lnmp源码安装的linux历史操作记录

1ls
2cd /
3ls
4adduser eric
5passwd eric
6su eric
7reboot
8su eric
9cd /home/
10ls
11cd eric/
12ls
13cd software/
14ls
15ll
16wget http://mirrors.163.com/fedora/updates/20/x86_64/samba-4.1.6-1.fc20.x86_64.rpm
17wget http://mirrors.163.com/fedora/updates/20/x86_64/samba-client-4.1.6-1.fc20.x86_64.rpm
18wget http://mirrors.163.com/fedora/updates/20/x86_64/samba-common-4.1.6-1.fc20.x86_64.rpm
19ls
20ll
21rpm -i samba-4.1.6-1.fc20.x86_64.rpm samba-client-4.1.6-1.fc20.x86_64.rpm samba-common-4.1.6-1.fc20.x86_64.rpm
22ls
23rm -rf samba-*
24ls
25ll
26cd ..
27ls
28cd software/
29s
30ls
31mkdir lnmp
32ls
33cd lnmp/
34ls
35cd ..
36ls
37rm -rf lnmp/
38ls
39cd /
40ls
41cd data/
42ls
43cd software/
44ls
45cd ..
46ls
47ifconfig
48ps aux | grep ssh
49ps -e | grep ssh
50ifconfig
51ifconfig 192.168.22.130
52ifconfig eno16777736 192.168.22.130
53ifconfig
54service network restart
55systemctl restart network.service
56ifconfig
57ping baidu.com
58yum search yum-fastest
59yum install
60ifconfig
61ifconfig eno16777736 192.168.22.130
62ifconfig
63cd /
64ls
65cd /data/
66ls
67cd tar/
68ls
69cd ..
70rm -rf tar/
71ls
72mkdir software
73ls
74cd software/
75ls
76mkdir libs
77cd ..
78ls
79cd data/
80ls
81mkdir -p apps/libs
82cd ..
83ls
84vi /etc/yum.repos.d/fedira.repo
85vi /etc/yum.repos.d/fedora.repo
86ls
87cd /etc/yum.repos.d/
88ls
89cd /opt/
90ls
91cd tar/
92ls
93cd ..
94s
95ls
96rm -rf tar/
97ls
98cd /home/
99ls
100cd eric/
101ls
102mkdir software
103cd software
104ls
105wget http://download1.rpmfusion.org/free/fedora/releases/20/Everything/x86_64/os/rpmfusion-free-release-20-1.noarch.rpm
106wget http://download1.rpmfusion.org/nonfree/fedora/releases/20/Everything/x86_64/os/rpmfusion-nonfree-release-20-1.noarch.rpm
107yum search yum-fast
108ls
109rpm --help
110ls
111rpm -ivh rpmfusion-free-release-20-1.noarch.rpm
112rpm -ivh rpmfusion-nonfree-release-20-1.noarch.rpm
113cd /etc/yum.repos.d/
114ls
115yum search yum-fast
116yum clean all
117yum makecache
118cd /home/eric/
119ls
120cd software/
121ls
122wget http://mirrors.163.com/fedora/updates/20/x86_64/yum-plugin-fastestmirror-1.1.31-20.fc20.noarch.rpm
123ls
124rpm -ivh yum-plugin-fastestmirror-1.1.31-20.fc20.noarch.rpm
125yum search
126yum search yum-fastest
127wget http://mirrors.163.com/.help/fedora-163.repo
128ls
129mv fedora-163.repo /etc/yum.repos.d/
130cd /etc/yum.repos.d/
131ls
132wget http://mirrors.163.com/.help/fedora-updates-163.repo
133wget http://mirrors.sohu.com/help/fedora-sohu.repo
134wget http://mirrors.sohu.com/help/fedora-updates-sohu.repo
135wget http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/fedora?codeblock=0
136wget http://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/fedora?codeblock=1
137ls
138ll
139yum makecache
140ls
141rm -rf fedora\?codeblock\=
142ls
143ll
144rm -rf fedora\?codeblock\=0
145ls
146rm -rf fedora\?codeblock\=1
147ls
148yum makecache
149yum search samba
150yum install samba.x86_64
151yum install alex
152cd /
153ls
154cd /data/
155ls
156cd wwwroot/
157ls
158cd ..
159ls
160cd etc/
161ls
162cd ..
163ls
164rm -rf data/
165s
166cd opt/
167ls
168cd tar/
169ls
170cd ..
171cd ll
172cd /
173netstat -tunlp | grep 27017
174whereis mongodb
175cd /usr/
176ls
177cd local/
178ls
179cd mog
180cd mongodb/
181ls
182cd ..
183ls
184cd mongodb/
185ls
186./bin/mongod --help
187./bin/mongod --shutdown
188./bin/mongo
189./bin/mongod --help
190ps -ef | grep mongo
191ps -el | grep mongo
192ps -ef | grep mongo
193killall 2634
194kill -9 2634
195ps -ef | grep mongo
196cd ..
197ls
198cd local/
199ls
200rm -rf mongodb/
201ls
202cd /
203ls
204mkdir -p data/tar
205ls
206chmod 777 -R data/
207ls
208cd data/
209ls
210vim a.txt
211vi a.txt
212ls
213rm -rf a.txt
214ls
215cd ..
216ls
217rpm -qa samba
218yum search samba
219vim /etc/sysconfig/selinux
220vi /etc/sysconfig/selinux
221yum install yum-fastestmirror yum-downloadonly -y
222yum install yum-fastestmirror yum-downloadonly --help
223yum install yum-fastestmirror yum-downloadonly --skip-broken
224ps -ef | grep yum
225kill -9 36744
226yum install yum-fastestmirror --downloadonly --skip-broken -y
227cd /
228ls
229cd data/
230ls
231cd software/
232ls
233cd ..
234cd /
235systemctl stop firewalld.service
236systemctl disable firewalld.service
237netstat -tunpl
238yum install -y gd-devel
239cd /etc/pki/rpm-gpg/
240ls
241cp -l RPM-GPG-KEY-fedora-20-x86_64 RPM-GPG-KEY-fedora-x86_64
242ll
243yum install -y gd-devel
244rpm -qa | grep samba
245yum install samba.x86_64 -y
246ls
247cd /data/
248ls
249cd ..
250ls
251vi /etc/samba/smb.conf
252id eric
253smbpasswd -a eric
254ls
255ll
256chmod 777 -R data/
257service smb start
258service nmb start
259netstat -tunpl | grep smb
260ifconfig
261vi /etc/samba/smb.conf
262vi /etc/selinux/config
263setup
264ifconfig
265netstat -tunpl
266rpm -qa | grep samba
267vi /etc/samba/smb.conf
268service smb stop
269netstat -tunpl | grep smb
270service smb start
271ls
272chmod 777 -R data/
273iptables --help
274iptables -F
275ntsysv
276ifconfig
277ping 192.168.1.100
278shutdown -h now
279cd /
280ls
281cat /etc/issue
282cd /opt/da
283cd /opt/
284ls
285cd /
286ls
287ifconfig
288dhclient --help
289ls
290mkdir -p /data/wwwroot
291chmod 777 -R /data/
292ls
293cd /data/
294ls
295cd ..
296ls
297cd /data/wwwroot/
298ls
299cd ..
300ls
301mkdir etc
302chmod 777 -R etc/
303ls
304cd /usr/local/
305ls
306rpm -qa rzsz
307yum search rzsz
308yum install lrzsz.x86_64
309rz
310cd /opt/
311ls
312mkdir tar
313chmod 777 -R tar/
314ls
315cd tar/
316rz
317ls
318tar -zxf mongodb-linux-x86_64-2.6.1.tgz
319ls
320mv mongodb-linux-x86_64-2.6.1 /usr/local/mongodb
321cd /usr/local/mod
322cd /usr/local/mongodb/
323ls
324./bin/mongod --help
325./bin/mongod -h
326ls
327cd ..
328ls
329cd mongodb/
330ls
331mkdir data
332mkdir log
333chmod 777 -R data/ log/
334ls
335./bin/mongod --fork --dbpath data/
336./bin/mongod --fork --dbpath data/ --logpath data/mongodb.log
337ls
338cd data/
339ls
340cd ..
341ps -e | grep mongod
342ls
343cd log/
344ls
345cd ..
346ls
347cd data/
348ls
349cd ..
350ls
351ls data/
352./bin/mongod --fork --dbpath data/
353./bin/mongod --fork --dbpath data/ --logpath log/mongo.db
354ps -e | mongod
355ps -e | mongo
356ps -e
357kill 2482
358ps -e
359kill -all 2575
360kill -9 2575
361ps -e
362./bin/mongod --fork --dbpath data/ --dblog log/mongod.log
363./bin/mongod --fork --dbpath data/
364./bin/mongod --fork --dbpath data/ --logpath log/mongod.log
365ls
366./bin/mongod --help
367./bin/mongod -h
368ping baidu.com
369ping 192.168.1.104
370iptables -F
371netstat -tunpl | grep smb
372service start smb
373service start nmb
374ifconfig
375vi /etc/samba/smb.conf
376cd /
377ls
378netstat -tunpl
379systemctl stop firewall.service
380systemctl --help
381ps -ef | grep samba
382ps -ef | grep sm
383ps -ef | grep sm
384whereis samba
385rpm -ivh | grep samba
386rpm -qa | grep samba
387yum install samba
388shutdown -h now
389init 3
390ifconfig
391ping baidu.com
392init 0
393vi /etc/inittab
394init 3
395cd /data/software/php-5.5.12/
396./configure --prefix=/data/apps/php --with-config-file-path=/data/etc/ --with-freetype-dir=/data/apps/libs/ --with-jpeg-dir=/data/apps/libs/ --with-png-dir=/data/apps/libs/ --with-mcrypt=/data/apps/libs --with-mhash=/data/apps/libs --enable-bcmath --enable-fpm --enable-gd-native-ttf --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-zip --disable-rpath
397./configure --prefix=/data/apps/php --with-config-file-path=/data/etc/ --with-freetype-dir=/data/apps/libs/ --with-jpeg-dir=/data/apps/libs/ --with-png-dir=/data/apps/libs/ --with-mcrypt=/data/apps/libs --with-mhash=/data/apps/libs --enable-bcmath --enable-fpm --enable-gd-native-ttf --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-zip --disable-rpath --with-zlib --with-libxml-dir=/usr/--with-xmlrpc --with-curl --enable-maintainer-zts
398yum install -y libxml2-devel
399./configure --prefix=/data/apps/php --with-config-file-path=/data/etc/ --with-freetype-dir=/data/apps/libs/ --with-jpeg-dir=/data/apps/libs/ --with-png-dir=/data/apps/libs/ --with-mcrypt=/data/apps/libs --with-mhash=/data/apps/libs --enable-bcmath --enable-fpm --enable-gd-native-ttf --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-zip --disable-rpath --with-zlib --with-libxml-dir=/usr/--with-xmlrpc --with-curl --enable-maintainer-zts
400yum install -y libcurl
401./configure --prefix=/data/apps/php --with-config-file-path=/data/etc/ --with-freetype-dir=/data/apps/libs/ --with-jpeg-dir=/data/apps/libs/ --with-png-dir=/data/apps/libs/ --with-mcrypt=/data/apps/libs --with-mhash=/data/apps/libs --enable-bcmath --enable-fpm --enable-gd-native-ttf --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-zip --disable-rpath --with-zlib --with-libxml-dir=/usr/--with-xmlrpc --with-curl --enable-maintainer-zts --with-openssl
402./configure --prefix=/data/apps/php --with-config-file-path=/data/etc/ --with-freetype-dir=/data/apps/libs/ --with-jpeg-dir=/data/apps/libs/ --with-png-dir=/data/apps/libs/ --with-mcrypt=/data/apps/libs --with-mhash=/data/apps/libs --enable-bcmath --enable-fpm --enable-gd-native-ttf --enable-mbstring --enable-opcache --enable-pcntl --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-zip --disable-rpath --with-zlib --with-libxml-dir=/usr/--with-xmlrpc --with-curl=/data/apps/curl --enable-maintainer-zts --with-openssl
403make && make install
404mkdir -p /data/etc
405mv php.ini-development /data/etc/php.ini
406vi /data/etc/php.ini
407cd /data/apps/php/
408ls
409cd etc/
410ls
411mv php-fpm.conf.default php-fpm.conf
412vi php-fpm.conf
413cd ..
414ls
415sbin/php-fpm
416netstat -tunpl | grep php
417vi /data/apps/nginx/conf/nginx.conf
418ls
419/data/apps/nginx/sbin/nginx -s reload
420ls
421cd ..
422ls
423cd ..
424ls
425cd software/
426ls
427cd libs/
428ls
429cd mong
430tar -zxf mongo-1.5.2.tgz
431cd mog
432cd mongo-1.5.2/
433ls
434/data/apps/php/bin/phpize
435./configure --with-php-config=/data/apps/php/bin/php-config
436make && make install
437vi /data/etc/php.ini
438kill -USR2 `cat /var/run/php-fpm.pid`
439ln -s /data/apps/php/lib/php/extensions/no-debug-zts-20121212/ /data/etc/ext
440cd /data/etc/ext/
441ls
442vi /data/etc/php.ini
443kill -USR2 `cat /var/run/php-fp.pid`
444kill -USR2 `cat /var/run/php-fpm.pid`
445cd /data/
446ls
447cd /
448ls
449cd /data/
450ls
451cd wwwroot/
452ls
453vim index.php
454vi index.ph
455vi index.php
456cd ..
457ls
458cd apps/
459ls
460cd libs/
461ls
462cd ../../software/
463ls
464vi tar1.sh
465ls
466cd pcre-8.32/
467l
468ls
469./configure --prefix=/data/apps/pcre
470make && make install
471ls
472cd ..
473ls
474cd nginx-1.5.2/
475ls
476groupadd www
477useradd -g www www
478./configure --prefix=/data/apps/nginx --user=www --group=www --with-pcre=/data/software/pcre-8.32 --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_ssl_module --with-http_stub_status_module
479yum install openssl-devel openssl -y
480./configure --prefix=/data/apps/nginx --user=www --group=www --with-pcre=/data/software/pcre-8.32 --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_ssl_module --with-http_stub_status_module
481make && make install
482cd ..
483vi /data/apps/nginx/conf/nginx.conf
484/data/apps/nginx/sbin/nginx -c /data/apps/nginx/conf/nginx.conf
485netstat -tunlp | grep 80
486ls
487cd redis-2.8.9/
488ls
489cd ..
490ls
491cd libs/
492ls
493cd freetype-2.4.12/
494./configure --prefix=/data/apps/libs/
495make && make install
496cd //
497cd /data/software/libs/
498ls
499cd libpng-1.6.2/
500./configure --prefix=/data/apps/libs/
501make && make install
502cd ..
503ls
504cd jpeg-9/
505./configure --prefix=/data/apps/libs/ --enable-static --enable-shared
506make && make install
507cd ..
508ls
509cd mhash-0.9.9.9/
510./configure --prefix=/data/apps/libs/
511make && make install
512ls
513cd ..
514ls
515cd libmcrypt-2.5.8/
516./configure --prefix=/data/apps/libs/
517make && make install
518ls
519cd libltdl/
520./configure --prefix=/data/apps/libs/ --enable-ltdl-install
521make && make install
522ls
523cd ..
524vi /etc/ld.so.conf
525ldconfig
526ls
527cd ..
528ls
529cd libs/
530ls
531cd mcrypt-2.6.8/
532./configure --prefix=/data/apps/libs/ --with-libmcrypt-prefix=/data/apps/libs
533export LDFLAGS="-L/data/apps/libs/lib -L/usr/lib"
534export CFLAGS="-I/data/apps/libs/include -I/usr/include"
535./configure --prefix=/data/apps/libs/ --with-libmcrypt-prefix=/data/apps/libs
536make && make install
537ls
538cd ..
539ls
540cd ..
541ls
542cd php-5.5.12/
543./configure --help
544cd /data/software/
545ls
546cd libs/
547ls
548cd curl-7.37.0/
549ls
550./configure --prefix=/data/apps/curl
551make && make install
552init 0
553netstat -tunpl
554cd /data/
555ls
556cd sfo
557ls
558cd apps/
559ls
560cd nginx/
561ls
562cd ..
563ls
564cd software/
565ls
566ps -ef | grep smb
567ps aux | grep smb
568rpm -qa | grep samba
569vi /etc/samba/smb.conf
570ls /etc/ | grep smb*
571ls /etc/ | grep sa*
572cat /etc/passwd | more
573id lnmp
574vi /etc/samba/smb.conf
575id lnmp
576id eric
577service smb start
578service nmb start
579ps -ef | grep samba
580ps -ef | grep smb
581vi /etc/selinux/config
582iptables --status
583iptables -h
584iptables -list
585iptables --list
586ifconfig
587groupadd mysql
588useradd -g mysql mysql
589ls
590cd mysql-5.6.10-linux-glibc2.5-x86_64/
591ls
592./scripts/mysql_install_db --help
593./scripts/mysql_install_db --user=mysql
594cd ..
595ls
596cd mysql-5.6.10-linux-glibc2.5-x86_64/
597ls
598cd ..
599ls
600cd .
601cd ..
602ls
603cd my
604cd software/mysql-5.6.10-linux-glibc2.5-x86_64/
605ls
606./bin/mysqld_safe
607./bin/mysqld_safe &
608./bin/mysql
609ls
610cd data/
611ls
612cd ..
613ls
614vi /etc/samba/smb.conf
615ifconfig
616top
617top -n
618top -a
619top -hv
620top -h
621top --help
622man top
623cd /
624usl
625ls
626netstat -tunpl | grep 3306
627ls
628cd /data/
629ls
630df
631df -h
632python
633history

版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: lnmp源码安装的linux历史操作记录