luandly / thinkcmf Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Last login: Tue Jul 2 17:11:32 2019 from 10.5.45.247
[root@localhost ~]# history
1 lsblk
2 free -m
3 nmtui
4 ifconfig
5 yum install net-tools -y
6 ip addr
7 vi /etc/resolv.conf
8 ping 8.8.8.8
9 systemctl stop firewalld
10 systemctl disable firewalld
11 ping 8.8.8.8
12 vi /etc/sysconfig/selinux
13 reboot
14 ping 8.8.8.8
15 reboot
17 free
18 clear
19 iptables -L
20 getenforce
22 cat /etc/selinux/config
24 init 0
25 ping 8.8.8.8
26 vi /etc/resolv.conf
27 ping 8.8.8.8
28 systemctl restart network
29 ping 8.8.8.8
30 nmtui
31 yum install net-tools -y
32 ls
33 passwd root
34 ls
35 clear
36 ls
37 yum install epel-release
38 rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
39 yum install httpd
40 yum search php | grep 71
41 yum install mod_php71w php71w-cli php71w-mcrypt php71w-mysql php71w-mysqlnd php71w-pdo php71w-gd php71w-bcmath
42 yum install mod_php71w php71w-cli php71w-mcrypt php71w-mysqlnd php71w-pdo php71w-gd php71w-bcmath
43 yum search mariadb
44 yum install mariadb-server mariadb
45 mysql
46 systemctl start mariadb
47 mysql
48 mysql -u root -p
49 ls
50 yum install unzip -y
51 ls
52 unzip newtopup.zip
53 ls
54 mv newtopup /var/www/html/
69 vim database.php
70 yum install vim -y
71 ls
72 vim database.php
73 systemctl start httpd
74 ls
75 pwd
76 cd ..
77 ls
78 cd ..
79 ls
80 cd think
81 ll
82 cd app/
83 ls
84 ll
85 vim database.php
86 ls
87 vim config.php
109 cd gatewayWorker/
110 ls
111 php start.php start
112 yum search php | grep posix
113 yum search php | grep process
114 yum install php71w-process
115 php start.php start
116 php start.php start -d
117 clear
130 cd newtopup/
131 ls
132 cd public/
133 ls
134 ll
135 pwd
136 cd /var/www/html/
137 ls
138 cd newtopup/
139 ls
140 cd /etc/httpd/conf.d/
141 ls
142 cd ..
143 ls
144 cd conf
145 ls
146 vim httpd.conf
147 systemctl restart httpd
148 ls
149 cd /var/www/
150 ls
151 cd html/
152 ls
153 ll
154 chonw -R apache:apache newtopup
155 chown -R apache:apache newtopup
156 cd /etc/httpd/
157 ls
158 cd conf
159 ls
160 vim httpd.conf
161 systemctl restart httpd
162 ls
163 vim httpd.conf
164 yum search httpd | grep rewrite
165 ls
166 vim httpd.conf
167 systemctl restart httpd
168 systemctl status httpd
169 vim httpd.conf
170 systemctl restart httpd
171 cd /var/www/html/
172 ls
173 cd newtopup/
174 ls
175 ll
176 grep 10.5.45 -r .
177 cd /var/www/html/
178 ls
179 cd newtopup/
180 ls
181 ll
182 cd simplewind/vendor/gatewayWorker/
183 php start.php start -d
184 php start.php restart -d
185 iptables -L
186 netstat -anpl | more
187 date
188 php start.php start -d
189 pwd
190 cd /www/html
191 cd /www
192 cd /var/www/html/newtopup/
193 cd cd simplewind/vendor/gatewayWorker/
194 cd simplewind/vendor/gatewayWorker/
195 php start.php start -d
196 php start.php stop
197 pwd
198 quit
199 yum search pcntl | grep php
200 yum search event | grep php
201 yum search event | grep php71
202 curl -Ss http://www.workerman.net/check.php | php
215 php start.php connections
216 ls
217 cd /usr/local/
218 ls
219 cd etc/
220 ls
221 cd ..
222 whereis php
223 vim /etc/php.ini
224 ls
225 ps aux | grep php
226 netstat -anpl | grep 8282
227 cd
228 ls
229 unzip thinkcmf-master.zip
230 ls
231 cd thinkcmf-master
232 ls
233 ll
234 cd simplewind/
241 mv /var/www/html/
242 mv thinkcmf-master /var/www/html/newtopup/
248 mv thinkcmf-master ../
249 cd ..
250 ls
251 cd thinkcmf-master/
254 pwd
255 cd /etc/httpd/conf
256 ls
257 vim httpd.conf
258 systemctl restart httpd
259 cd /var/www/html/
260 ls
261 chown -R apache:apache thinkcmf-master
262 yum search mbstring | grep php
263 yum install php71w-mbstring
264 systemctl restart httpd
265 ls
266 cd /etc/httpd/conf
267 ls
268 vim httpd.conf
269 systemctl restart httpd
270 cd /var/www/html/
292 cd simplewind/
293 ls
294 cd vendor/
295 ls
296 ll
297 mv ~/GatewayWorker.zip .
298 ls
299 unzip GatewayWorker.zip
300 LS
301 ls
302 ps aux | grep php
303 kill -9 12267
304 ps aux | grep php
305 ks
306 ls
307 cd GatewayWorker
308 ls
309 php start.php start -d
310 cd ..
311 ls
312 cd gatewayWorker/
313 ls
314 php start.php stop
315 netstat -anpl
316 netstat -anpl | grep 8282
317 ps -ef | grep php
318 kill -9 12272
319 ps -ef | grep php
320 netstat -anpl | grep 8282
321 kill -9 12273
322 ps -ef | grep php
323 netstat -anpl | grep 8282
324 ps aux | grep WorkerMan
325 pkill -9 WorkerMan
326 ps aux | grep WorkerMan
327 pkill -9 WorkerMan
328 ll
329 kill -9 12268
330 kill -9 12269
331 kill -9 12270
332 kill -9 12271
333 kill -9 12274
334 kill -9 12275
335 kill -9 12276
336 ps aux | grep WorkerMan
337 netstat -anpl | grep 8282
343 php start.php start -d
344 exit
345 cd /var/www/html/newtopup/
346 cd simplewind/vendor/gatewayWorker/
347 cd ..
348 ls
349 cd GatewayWorker
350 php start.php start -d
351 php start.php restart -d
352 php start.php stop
353 php start.php start
354 exit
355 cd /var/www/html/newtopup/
356 cd simplewind/vendor/gatewayWorker/
363 cd GatewayWorker
364 pwd
365 php start.php start
366 php start.php stop
367 php start.php start
368 cd /var/www/html/newtopup/simplewind/vendor/GatewayWorker
369 php start.php start
370 php start.php stop
371 php start.php start
372 exit
373 cd /var/www/html/newtopup/simplewind/vendor/GatewayWorker
374 php start.php start
375 mysql -uroot -p
376 pwd
377 chmod 777 /var/www/html/newtopup
378 sudo chmod -R 777 /var/www/html/newtopup
379 quit;
380 exit;
381 cd /var/www/html/newtopup/simplewind/vendor/GatewayWorker
382 php start.php start
383 exit;
384 mysql -uroot -p
385 sudo chmod -R 777 /var/www/html/newtopup
386 mysql -uroot -p
387 exit;
388 cd /var/www/html/newtopup/simplewind/vendor/GatewayWorker
406 mysqldump -uroot -p123456 jpmeitu >/var/html/newtopup/jpmeit.sql;
407 mysqldump -uroot -p123456 jpmeitu >/root/jpmeit.sql;
408 mysql -uroot -p
409 mysqldump -uroot -p123456 jpmeitu >/root/jpmeit9.sql;
410 mysql -uroot -p
411 quit;
412 exit;
413 ls
414 cd /var/www/html/
415 ls
416 cd newtopup1/
417 ls
418 pwd
419 ls
420 cd /w
421 ls
422 cd /var/www/
423 ls
424 cd html/
425 ls
426 cd newtopup
427 ls
428 cd /var/log/
429 ls
430 ll
431 ps aux | grep http
432 ls
433 cd httpd/
434 ls
435 ll
436 tail -f access_log
437 ls
438 cd /var/www/
439 ls
440 cd html/
441 ll
442 cd newtopup1/
443 ls
444 cd ..
445 ls
446 cd newtopup
447 ls
448 cd public/
449 ls
450 ll
451 cd ..
452 ls
453 cd ..
454 ls
455 cd /var/www/html/
456 ls
457 cd /var/log/
458 ls
459 cd httpd/
460 ls
461 tail -f access_log
462 ls
463 cd /var/www/html/
464 ls
465 ll
466 ls
467 cd /etc/httpd/
468 ls
469 cd conf.d/
470 ls
471 vim m.conf
472 mkdir /var/log/httpd/ll
473 systemctl restart httpd
474 ls
475 vim m.conf
476 systemctl restart httpd
477 ls
478 cat m.conf
479 ls
480 cd ..
481 ls
482 cd conf
483 ls
484 vim httpd.conf
485 ls
486 cd ..
487 ls
488 cd conf.d/
489 ls
490 cat m.conf
491 cd /var/www/html/
492 ls
493 cd newtopup
494 ls
495 ll
496 cd data/
497 ls
498 cdconf
499 cd conf/
500 ls
501 vim database.php
502 pwd
503 cd ..
504 cd newtopup1/
505 cd data/conf/
506 ls
507 vim database
508 vim database.php
509 mysql -u root -p123456
510 ls
511 cd /etc/httpd/conf.d/
512 ls
513 vim m.conf
514 systemctl restart httpd
515 vim m.conf
516 systemctl restart httpd
517 vim m.conf
518 systemctl restart httpd
519 history
[root@localhost ~]#
show full fields from meitu_daily;
| ###6bf115431153bf6884369667d6c5da3f | admin |
| ###1d1ad385effeed2f29d23c58e74673d5 | Rockyi |
update meitu_user set user_pass='###6bf115431153bf6884369667d6c5da3f' where user_login='admin';
update meitu_user set user_pass='###1d1ad385effeed2f29d23c58e74673d5' where user_login='Rockyi';
订单模块 订单审核页面 交易渠道下拉复选框
style="background: #5cb85c; color: #fff;"
清除Bash历史
要清除Linux上的Bash历史记录,请使用以下3个命令的组合:
cat /dev/null > ~/.bash_history && history -c && exit
这些命令做什么?
'cat'命令清空当前登录用户的.bash_history文件。
'history -c'命令清除当前用户会话的历史记录。
'exit'命令退出当前会话
去官网下载phpstorm linux版:
tar -zxf PhpStorm-8.0.1.tar.gz
mv phpstorm_dirctory /usr/local/phpstorm
cd /usr/local/phpstorm/bin
chmod 777 phpstorm.sh
./phpstorm.sh
————————————————
如果不想每次都进入安装文件夹来启动就做一个软连接:
ln -s /root/user/PhpStorm/bin/phpstorm.sh /usr/local/bin/phpstorm
//前部分是自己文件路径
启动的时候在终端直接输入 phpstorm 回车 就可以启动了,如果需要在后台运行,不让其占用终端,在后面加上空格连接符。 phpstorm & 即:phpstorm &
————————————————
GitLab社区版部署
1、安准基础依赖(后续的sudo 要看看当前用户是不是root用户)
#安装技术依赖
sudo yum install -y curl policycoreutils-python openssh-server
#启动ssh服务&设置为开机启动
sudo systemctl enable sshd
sudo systemctl start sshd
2、开放ssh以及http服务(80端口)
#开放ssh、http服务
sudo firewall-cmd --add-service=ssh --permanent
sudo firewall-cmd --add-service=http --permanent
#重载防火墙规则
sudo firewall-cmd --reload
本次我们部署的是社区版:gitlab-ce,如果要部署商业版可以把关键字替换为:gitlab-ee
1、Yum安装GitLab
添加GitLab社区版Package
1、Yum安装GitLab
添加GitLab社区版Package
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
安装GitLab社区版
sudo yum install -y gitlab-ce
安装成功后会看到gitlab-ce打印了一个图形
2、配置GitLab站点Url
GitLab默认的配置文件路径是/etc/gitlab/gitlab.rb
默认的站点Url配置项是:
external_url 'http://gitlab.example.com'
这里我将GitLab站点Url修改为http://git.ken.io
也可以用IP代替域名,这里根据自己需求来即可
#修改配置文件
sudo vi /etc/gitlab/gitlab.rb
#配置首页地址(大约在第15行) 注意这里 我用的是9090端口
external_url 'http://10.5.45.190:9090'
3、启动并访问GitLab
启动GitLab
#重新配置并启动
sudo gitlab-ctl reconfigure
#完成后将会看到如下输出
Running handlers:
Running handlers complete
Chef Client finished, 508/1328 resources updated in 02 minutes 49 seconds
gitlab Reconfigured!
访问GitLab
将设置的域名DNS解析到服务器IP,或者修改本地host将域名指向服务器IP。
成功后,进去第一次会提示你设置密码
管理员账号默认username是root。
设置完成之后即可使用root账号登录,登陆后会进入欢迎界面。
centos 下nginx日常使用通常有几个部分
查找config的路径
命令行输入:ps -ef | grep nginx
此时找到conf的路径 /usr/local/nginx/conf/nginx.conf
这个时候 命令行输入:vi /usr/local/nginx/conf/nginx.conf
创建一个 我们自定义的目录网站配置目录 mkdir -p /usr/local/nginx/conf/vhost
修改我们的配置文件 vi /usr/local/nginx/conf/nginx.conf
在底部修改 为:include /usr/local/nginx/conf/vhost/*.conf;
然后 进入我们的网站目录 cd /home/wwwroot/ 。
进入后下载相应的 phpMyAdmin-4.9.5-all-languages.tar.gz 下载phpMyAdmin安装包
wget https://files.phpmyadmin.net/phpMyAdmin/4.6.0/phpMyAdmin-4.6.0-all-languages.tar.gz
3、解压文件
tar -zxvf phpMyAdmin-4.6.0-all-languages.tar.gz
重新命名
mv phpMyAdmin-4.6.0-all-languages /home/wwwroot/phpMyAdmin
启动nginx
停止nginx
然后重启 apache, 命令如下:sudo apachectl restart
5.到 浏览器 中输入:http://localhost/,如果出现 --> It works! 说明成功配置好了 apache 的 php 服务环境。
作者:宝玉蕾蕾
链接:https://www.jianshu.com/p/068ebd084349
三、安装部署 PhpMyAdmin
要管理Mysql,如果用命令行比较麻烦,开源的 phpMyAdmin 采用C/S的模式,方便管理。
官网上下一个phpMyAdmin. 它是由 php 开发的,链接为: https://www.phpmyadmin.net
将下载下来的解压放在 /Library/WebServer/Documents/ 目录下,完整的目录为:/Library/WebServer/Documents/phpmyadmin/,那么用命令行进入这个目录:cd /Library/WebServer/Documents/phpmyadmin/
输入以下命令:
cp config.sample.inc.php config.inc.php //复制一份配置文件的模板
vim config.inc.php //进入到文件中
4. 进入文件后,按照下面进行修改:
$cfg['blowfish_secret'] = '自己定字符串'; //用于Cookie加密,随意的长字符串
$cfg['Servers'][$i]['host'] = '127.0.0.1'; //MySQL守护程序做了IP绑定
接着我们就可以在浏览器中输入URL:http://localhost/phpmyadmin/
打开页面后,输入用户名为:root,密码是MySQL的密码
,此时就可以 login 到 mysql 的管理界面啦
https://www.iteye.com/blog/javaprimary-2184270
Apache在安装之后默认只是指向一个站点(例如http://127.0.0.1/只是指向一个文件夹),如果要实现多站点(例如127.0.0.1指向aaa1目录,127.0.0.2指向aaa2目录……),配置起来也并不困难。
首先打开Apache安装目录下 conf/httpd.conf 文件,找到下面两行文字,把最前面的 # 号去掉,然后保存。目的是让Apache在启动时能加载虚拟主机模块
[AppleScript]
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
[AppleScript]
#Include conf/extra/httpd-vhosts.conf
接着找到同一文件中的 DocumentRoot 和 Directory ,改为站点目录的上一级目录
例如站点放在 E:/aaa/aaa1 和 E:/aaa/aaa2,则改为以下形式
DocumentRoot "E:/aaa"
<Directory "E:/aaa">
配置完成后即可打开Apache安装目录下 /conf/extra/httpd-vhosts.conf 虚拟主机配置文件
如果站点分别放在 E:/aaa/aaa1 和 E:/aaa/aaa2 目录下,并且使用 http://127.0.0.2/ 和 http://127.0.0.3 分别访问上述两个站点,则在 httpd-vhosts.conf 文件后面新增下面的内容
<VirtualHost *:80>
DocumentRoot "E:/aaa/aaa1"
ServerName 127.0.0.2
<VirtualHost *:80>
DocumentRoot "E:/aaa/aaa2"
ServerName 127.0.0.3
上述所有操作完成后,即可重启Apache服务,多站点配置圆满完成!
输入http://127.0.0.2/ 和 http://127.0.0.3 分别访问上述两个站点
1.配置 /etc/apache2/httpd.conf
1.1开启相应的模块
在httpd.conf中
#Include /private/etc/apache2/extra/httpd-vhosts.conf(去掉注释)
Include /private/etc/apache2/extra/httpd-vhosts.conf
#LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so (去掉注释)
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
Listen 80
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/andly/code/apache_root/oaxinhu"
ServerName 127.0.0.1
ServerAlias www.dummy-host.example.com
ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.