-
Notifications
You must be signed in to change notification settings - Fork 1
shijunbo/shopping
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
增加路由规则,将网卡eth1 80端口的请求转发到8000端口: iptables -A PREROUTING -t nat -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8000 cd /etc/rc.d/init.d ./iptables save http://123.57.240.242:80/shop shop zhNhRY8DkB50G3ov3RjdwRKHg4VNfFLDQaxoDU4pEET http://203.195.175.200/shop.php sbxsh 查看端口上进程 lsof -i:80 网卡监听tcp包 tcpdump tcp -i eth0 -t -s 0 -w ./target.cap tcpdump 使用 http://www.cnblogs.com/ggjucheng/archive/2012/01/14/2322659.html apache httpd安装: tar -xvzf httpd-2.2.31.tar.gz 124 cd httpd-2.2.31 126 ./configure?--prefix=/usr/local/apache22 127 ./configure --prefix=/usr/local/apache22 128 make&&make install 130 cd /usr/local/apache22 131 cd bin/ 133 ./apachectl start 135 cd ../ 137 vim conf/httpd.conf 139 ./bin/apachectl start 140 ps -aux | grep apa mysq安装: mysql-5.1.55 user mydb; alter database mydb character set utf8; insert into mobile (brand, model, os, screen, cpu, memory, weight, shape, camera, battery, price, salerank) value ('华为','荣耀6(H60-L01)移动4G版', 'Android 4.4', '5.000英寸', '海思Kirin 920 八核', '机身内存 16GB|运行内存 3GB', '约130g(包括电池)', '直板139.6mm*69.7mm*7.5mm', '1300万像素', '3100mA(Li-Polymer 锂聚合物电池)', 1659, 1286); Query OK, 1 row affected (0.00 sec) php安装 ./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5/etc --with-apxs2=/usr/local/apache22/bin/apxs --enable-fpm && make && make install && /bin/cp -f php.ini-production /usr/local/php5/etc/php.ini nginx+lua 安装 http://haoyun.blog.51cto.com/2038762/1301257 使用 http://outofmemory.cn/code-snippet/14396/nginx-and-lua /etc/init.d/mysqld start /usr/bin/mysqladmin -u root -p shutdown 修改密码: /usr/bin/mysqladmin -u root password "new password" create database shopping
About
weixin-shopping
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published