• 欢迎访问开心洋葱网站,在线教程,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站,欢迎加入开心洋葱 QQ群
  • 为方便开心洋葱网用户,开心洋葱官网已经开启复制功能!
  • 欢迎访问开心洋葱网站,手机也能访问哦~欢迎加入开心洋葱多维思维学习平台 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏开心洋葱吧~~~~~~~~~~~~~!
  • 由于近期流量激增,小站的ECS没能经的起亲们的访问,本站依然没有盈利,如果各位看如果觉着文字不错,还请看官给小站打个赏~~~~~~~~~~~~~!

ubuntu 配置nginx服务器备份脚本

Linux 开心洋葱 2242次浏览 0个评论

ubuntu 配置nginx服务器备份脚本

 

 

ifconfig
nano /etc/network/interfaces 
/etc/init.d/networking restart
nano /etc/network/interfaces 
nano /etc/resolv.conf 
/etc/init.d/networking restart
ifconfig
ping baidu.com
ping 192.168.16.1
ping baidu.com
apt-get update
apt-get install openssh-server
ifconfig
nano /etc/network/interfaces 
shutdown -h now
apt-get install apache2
apt-get install samba smbfs 
apt-get install mysql-server
apt-get install php5
apt-get install php5-mysql php5-curl php5-gd libapache2-mod-php5 libapache2-mod-auth-mysql
a2enmod rewrite php5
mkdir share
chmod 777 -R share/
nano /etc/apache2/sites-available/default
nano /etc/apache2/sites-enabled/000-default 
nano /etc/samba/smb.conf 
nano /etc/samba/smbusers
service smbd restart
nano /etc/crontab 
apache -v
apache2 -v
uname -a
apache2 -v
php -V
php -v
mysql -v
mysql -V
apt-get install nginx
/etc/init.d/apache2 stop
apt-get install nginx
ping baidu.com
nano /etc/resolv.conf 
/etc/init.d/networking restart
ping baidu.com
nano /etc/resolv.conf 
service networking restart
nano /etc/resolv.conf 
nano /etc/resolv.conf 
/etc/init.d/networking restart
ping baidu.com
nano /etc/resolv.conf 
/etc/init.d/networking restart
ping baidu.com
apt-get install nginx
nano /etc/nginx/sites-available/default 
/etc/init.d/nginx 
/etc/init.d/nginx restart
apt-get install php-fpm
apt-get install phpfpm
apt-catch search phpfpm
apt-catch search php
apt-cache search php |grep
apt-get install php5-fpm
vi default 
/etc/init.d/php5-fpm 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/nginx.conf 
cd ..
ls
cd sites-enabled/
ls
vi default 
/etc/init.d/nginx restart
vi default 
/etc/init.d/nginx restart
cd /usr/share/nginx/www/
ls
cd /etc/nginx/sites-enabled/
ls
vi default 
/etc/init.d/nginx restart
cd /usr/share/nginx/
ls
cd www/
ls
vi t.php
ls
tar xzvf cdn.tar.gz 
ls
ll
mysql -uroot -p
ls
rm cdn.222.sql 
ls
cd cdn
ls
ls -al
cd ..
chown -R 766 cdn/
chown -R 7777 cdn/
chown -R 777 cdn/
ll
chmod -R 777 cdn/
ll
chown www-data:www-data cdn
ll
cd cdn
ls
ll
tree
vi .htaccess 
mv .htaccess .htaccess.bak
ls
ll
cd webroot/
ls
ll
vi .htaccess 
mv .htaccess .htaccess.bak
tail -f /var/log/nginx/access.log 
tail -f /var/log/nginx/error.log 
cd ..
ll
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx 
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
cd /usr/share/nginx/www/
ls
cd cdn/
ls
cd webroot/
ls
cd js
ll
cd ..
ls
cd ..
cd Controller/
ls
vi AppController.php 
cd ..
vim /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vim /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vim /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
tail -f /var/log/nginx/error.log 
vim /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/nginx restart
/etc/init.d/php5-fpm restart
vi /etc/nginx/sites-enabled/default 
/etc/init.d/php5-fpm restart
/etc/init.d/nginx restart
vi nginx.sh
vi nginx.sh 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
mysql -uroot -p
ls
cd Controller/
ls
cd ..
ls
cd Config/
ls
vi routes.php 
vi bootstrap.php 
vi database.php
cd ..
ls
vi Controller/
cd View/Elements/
ls
vi sideleft.ctp 
cd ..
ls
cd /etc/nginx/
ls
cd sites-enabled/
ls
vi default 
cd ..
locate php5-fpm
whereis php5-fpm
ls
cat fastcgi_params 
vi fastcgi_params 
cd sites-enabled/
ls
vi default 
cd /usr/share/nginx/www/
ls
cd cdn/
ls
cd ..
cd /etc/nginx/
ls
cd /usr/share/nginx/
ls
cd www/
ls
cd cdn/
ls
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
tail -f /var/log/nginx/access.log 
tail -f /var/log/nginx/error.log 
vi /etc/nginx/sites-enabled/default 
vi /etc/nginx/nginx.conf 
vi /etc/nginx/sites-available/
vi /etc/nginx/sites-enabled/default 
ls
cd Config/
ls
vi routes.php 
vi bootstrap.php 
vi database.php
vi routes.php 
cd ..
ls
cd Lib/
ls
cd Cake/
ls
cd Config
ls
vi routes.php 
vi config.php 
vi /etc/nginx/sites-enabled/default 
cd ..
ls
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
cd View/Elements/
ls
vi sideleft.ctp 
pkill java
ps -aux | grep java
tail -f /var/log/php5-fpm.log 
tail -f /var/log/nginx/error.log 
tail -f /var/log/nginx/access.log 
vi /etc/nginx/sites-available/default 
cd /usr/share/nginx/www/cdn/
ls
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
vi /etc/nginx/sites-available/default 
sh ./nginx.sh 
ps -apn | grep 80
ps -anp | grep 80
ps -anp | grep 8080
ps -anp | grep 80
service nginx restart
ps -anp | grep 80
ps -anp 
netstat -anp
vi /etc/nginx/sites-enabled/default 
netstat -anp
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
mysql -uroot -p
ls
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
cd View/
cd Elements/
ls
vi sideleft.ctp 
cd ..
ls
cd Config/
ls
vi database.php
cd /etc/nginx/
ls
cd sites-enabled/
ls
scp default root@192.168.1.77:/home/happyview/share/
vi default 
sh ./nginx.sh 
cd /usr/share/nginx/www/cdn/
ls
sh ./nginx.sh 
vi default 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
mysql -uroot -p
cd /usr/local/
ls
mkdir downloadUtil
ls
java 
java
apt-get install java
apt-cache search java
apt-get install openjdk-6-jre
java
cd downloadUtil/
ls
vi loader.sh
sh ./loader.sh 
ps -aux | grep java
cd /etc/nginx/
ls
cd sites-enabled/
ls
vi default 
cd /usr/share/nginx/www/cdn/
ls
sh ./nginx.sh 
vi default 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
sh ./nginx.sh 
vi /etc/nginx/sites-enabled/default 
ls
vim index.php 
vi /etc/nginx/sites-enabled/default 
vi /etc/nginx/nginx.conf 
netstat -anp
locate php-fpm.conf
vi /etc/php5/fpm/php-fpm.conf 
vi /etc/nginx/fastcgi_params 
sh ./nginx.sh 
vi /etc/nginx/fastcgi_params 
sh ./nginx.sh 
mysql -uroot -p
cd /var/www/
ls
cd /usr/share/nginx/www/
ls
cd cdn/
ls
cd Controller/
ls
vi HotelsController.php 
ifconfig
vi /etc/rsyncd.secrets
cd /home/
ls
cd ..
ls
cd home/
ls
cd /awzsr.com
cd ..
ls
cd home/ls
cd home/
ls
mkdir awzsr.com
ls
ll
cd awzsr.com/
ls
cd awzsr.com/
ls
cd ..
ls
tree
cd awzsr.com/
ls
rsync -avz  root@192.168.1.77:/home/awzsr.com  /home/awzsr.com
ls
cd awzsr.com/
ls
cd ..
rm -R awzsr.com/
ls
cd ..
rsync -avz  root@192.168.16.222:/home/awzsr.com  /home/awzsr.com
rsync -avz  root@192.168.1.77:/home/awzsr.com  /home/awzsr.com
ls
cd awzsr.com/
ls
cd awzsr.com/
ls
cd ..
rsync -avz  root@192.168.1.77:/home/awzsr.com  /home/
ls
cd awzsr.com/
ls
rm -R awzsr.com/
ls
cd ..
rsync -avz  root@192.168.1.77:/home/awzsr.com  /home/
ls
cd awzsr.com/
ls
rsync -avz  root@192.168.1.77:/home/awzsr.com  /home/
ls
rsync -avz --password-file=/etc/rsyncd.secrets  root@192.168.1.77:/home/awzsr.com  /home/
vi /etc/rsyncd.secrets 
rsync -avz --password-file=/etc/rsyncd.secrets  root@192.168.1.77:/home/awzsr.com  /home/
/etc/init.d/rsync start
rsync
/etc/init.d/rsync start
vi /etc/default/rsync 
/etc/init.d/rsync start
vi /etc/default/rsync 
/etc/init.d/rsync start
vi /etc/rsyncd.conf
touch /etc/rsyncd.conf
/etc/init.d/rsync start
vi /etc/default/rsync 
/etc/init.d/rsync start
rsync -avz --password-file=/etc/rsyncd.secrets  root@192.168.1.77:/home/awzsr.com  /home/
/etc/init.d/rsync --damon
/etc/init.d/rsync --daemon
rsync --daemon
netstat -anp
rsync -avz --password-file=/etc/rsyncd.secrets  root@192.168.1.77:/home/awzsr.com  /home/
rsync -avz  root@192.168.1.77:/home/awzsr.com  /home/
rsync -avz  root@192.168.1.77:/var/www/cdn /var/www/
cd /var/www/
ls
cd weiyenacs/
ls
cd ..
ls
rm -R cdn/
rsync -avz  root@192.168.1.77:/var/www/cdn /usr/share/nginx/www/
cd /usr/share/nginx/www/
ls
cd cdn/
ls
cd Controller/
ls
vi HotelsController.php 
rsync -avz  root@192.168.1.77:/var/www/cdn /usr/share/nginx/www/
cd ..
ls
cd Config/
ls
vi database.php
rsync -avz  root@192.168.1.77:/var/www/cdn/Controller /usr/share/nginx/www/cdn/
rsync -avz  root@192.168.1.77:/var/www/cdn/View /usr/share/nginx/www/cdn/
rsync -avz  root@192.168.1.77:/var/www/cdn/View/Elements /usr/share/nginx/www/cdn/View/
rsync -avz  root@192.168.1.77:/var/www/cdn/Controller /usr/share/nginx/www/cdn/
vi /etc/nginx/sites-enabled/default 
history
rsync  root@192.168.1.77:/var/www/cdn/webroot/css/layout.css /usr/share/nginx/www/cdn/webroot/css/
rsync -avz root@192.168.1.77:/var/www/cdn/webroot/css/layout.css /usr/share/nginx/www/cdn/webroot/css/
mysql -uroot -p
ls
cd /usr/share/nginx/www/cdn/
ls
vi index.php 
rsync -avz root@192.168.1.77:/var/www/cdn/webroot/css/layout.css /usr/share/nginx/www/cdn/webroot/css/
rsync -avz root@192.168.1.77:/var/www/cdn/View/Notes/view.ctp /usr/share/nginx/www/cdn/View/Notes/
rsync -avz root@192.168.1.77:/var/www/cdn/View/Adtasks/index.ctp /usr/share/nginx/www/cdn/View/Notes/
rsync -avz root@192.168.1.77:/var/www/cdn/View/Adtasks/view.ctp /usr/share/nginx/www/cdn/View/Adtasks/
vi index.php 

#p#分页标题#e#

 


开心洋葱 , 版权所有丨如未注明 , 均为原创丨未经授权请勿修改 , 转载请注明ubuntu 配置nginx服务器备份脚本
喜欢 (0)

您必须 登录 才能发表评论!

加载中……