Как собрать Консольный Сhat на Java на VPS
1) Ставим на VPS Java
2) Качаем исходники https://github.com/zhanggang807/Netty-Chat
3) Запускам скриптом https://github.com/albfan/mvnexec
Модератор: t800
wget -r --no-parent https://devstudio.jboss.com/updates/requirements/gwt/2.5.0.v201112160242-rel-r37/
wget -r --no-parent https://devstudio.jboss.com/updates/requirements/gwt/3.0.1.v201206290132-rel-r42/
#!/bin/bash
url="t800.kvkozyrev.org"
date=`date +%Y-%m-%d`
freq="weekly"
prio="0.5"
cd /root/scripts/
rm sitemap.xml
list=`wget -r --delete-after $url --reject=.rss,.gif,.png,.jpg,.css,.js,.txt,.ico, 2>&1 |grep "\-\-" |grep http | sed -e 's/&/&/g' |awk '{ print $3 }'`
array=($list)
echo ${#array[@]} "pages detected for $url"
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<urlset
xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">" > sitemap.xml;
for ((i=0;i<${#array[*]};i++)); do
echo "<url>
<loc>${array[$i]:0}</loc>
<priority>$prio</priority>
<lastmod>$date</lastmod>
<changefreq>$freq</changefreq>
</url>" >> sitemap.xml;
done
echo "</urlset>" >> sitemap.xml;
#notify google
#wget -q --delete-after http://www.google.com/webmasters/tools/ping?sitemap=http://$url/sitemap.xml
cp sitemap.xml /var/www/t800/
rm -r ${url}
exit 0
sudo certbot --apache -d nash-novyi-domen.com
nano /etc/apache2/httpd-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost 192.109.220.127:443>
ServerName nash-old-domen.com
DocumentRoot /var/www/nash-old-domen.com
SSLCertificateFile /etc/letsencrypt/live/nash-old-domen.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nash-old-domen.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/nash-old-domen.com/chain.pem
</VirtualHost>
</IfModule>
<IfModule mod_ssl.c>
<VirtualHost 192.109.220.127:443>
ServerName nash-new-domen.com
SSLCertificateFile /etc/letsencrypt/live/nash-new-domen.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/nash-new-domen.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/nash-new-domen.com/chain.pem
</VirtualHost>
</IfModule>
nano /etc/apache2/httpd.conf
<VirtualHost 192.109.220.127:80>
ServerName nash-new-domen.com
DocumentRoot /var/www/nash-new-domen.com
RewriteEngine on
RewriteCond %{SERVER_NAME} =nash-new-domen.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
sudo certbot renew --dry-run
certbot revoke --cert-path /etc/letsencrypt/live/nash-old-domen.com/cert.pem
certbot revoke --cert-path /etc/letsencrypt/live/nash-new-domen.com/cert.pem
sudo certbot --apache -d nash-old-domen.com
export ANDROID_HOME=/home/danya/Android/Sdk
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
sudo su
adb devices
adb reboot bootloader
fastboot flashing unlock
fastboot reboot
adb reboot recovery
error: no devices/emulators found
/system/recovery-from-boot.bak
/system/etc/recovery-resourse.dat
/system/bin/install-recovery.sh
Вернуться в Технические вопросы
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3