24.02.2020 - 28.02.2020 arası işler
Dotnet core projenizi belirli bir porttan çalıştırma Link
Dotnet core SDK ve runtime update
Ubuntu üzerinde dotnet sdk update için önce bu sayfadaki
https://docs.microsoft.com/en-us/dotnet/core/install/how-to-detect-installed-versions?pivots=os-linux komutları çalıştırın sonra bu sayfadaki ayarları yapacağız
https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
https://docs.microsoft.com/tr-tr/dotnet/core/install/linux-package-manager-ubuntu-1604
Linux root giriş
Bazı firmalar linux sunucularına ssh üzerinde root kullaıcısı ile erişim izini vermezler. Bu işlemi etkin kılmak için makinenize giriş yapıp root kullanıcısına geçtikten sonra bu komut satırını çalıştırın.

Burada bulmanız gereken parametre "PermitRootLogin no" satırıdır. Buradaki no'yu yes ile değiştirdikten sonra
derseniz yaptığınız değişiklik yansıyacaktır. Servisi yeniden çalıştırmazsanız servis ssh ile root girişe izin vermeyecektir. Bu ayarın açık olması önerilmez ama bazen hızlı çözümler için bu ayarı açabiliriz.
Ubuntu sunucuya deployment sırasında oluşan hatalar
28000: no pg_hba.conf entry for host "XXX.XXX.XXX.XXX", user " ", database " ", SSL off
https://confluence.atlassian.com/jirakb/error-connecting-to-database-fatal-no-pg_hba-conf-entry-for-host-x-x-x-x-user-jiradbuser-database-jiradb-ssl-off-950801726.html
Postgreyi restart etmek için
sudo service postgresql restart
https://stackoverflow.com/questions/16515723/postgres-ubuntu-how-to-restart-service-on-startup-get-stuck-on-clustering-afte
An exception has been raised that is likely due to a transient failure.
Npgsql.NpgsqlException (0x80004005): Exception while connecting
Bu hatanın sebebide pg_hba yapılandırma hatası yüzünden geliyormuş, düzeltince sorun kalktı.
Dotnet core üzerinde servis tanımlama
https://blog.bobbyallen.me/2017/05/01/deploying-and-hosting-asp-net-core-applications-on-ubuntu-linux/
https://docs.microsoft.com/tr-tr/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-2.1&tabs=aspnetcore2x
Buradaki tanımlamalar yaptım.
Directory ve ilgili dosyaları silmek için kullanılacak komut
https://askubuntu.com/questions/217893/how-to-delete-a-non-empty-directory-in-terminal
Pm2
Node js projelerini kontrol etmek için pm2 ile projeleri yönetin
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04
Apache sunucusunu durdurup başlatmak için kullanılacak komut
https://www.cyberciti.biz/faq/star-stop-restart-apache2-webserver/
Ubuntu üzerinde sınırlı kullanıcı ekleme
https://www.linode.com/docs/security/securing-your-server/#add-a-limited-user-account
Ubuntu üzerinde dosyaları ve içeriğini kopyalamak için
https://askubuntu.com/questions/844876/how-do-you-copy-a-directory-and-its-contents-to-a-new-location-under-a-new-direc
Linode üzerinde hesapları sınırlama
https://www.linode.com/docs/platform/create-limited-developer-account/#ssh-logins
https://github.com/mhelvacikoylu/twino/blob/master/src/Samples/Sample.WebSocket.Server/twino.json
https://stackoverflow.com/questions/48300288/signalr-in-asp-net-core-behind-nginx
https://medium.com/@alm.ozdmr/deployment-of-signalr-with-nginx-daf392cf2b93
https://kimsereyblog.blogspot.com/2018/07/signalr-with-asp-net-core.htmls
Ubuntu işletim sisteminde Mongo db servis olarak çalıştırmak
https://stackoverflow.com/questions/37014186/running-mongodb-on-ubuntu-16-04-lts
Nginx konfigürasyon dosyası
https://gist.github.com/vbguard/e4dc2d1fd7796efe201d75315b42595e
Systemctl kullanımı
https://www.tecmint.com/list-all-running-services-under-systemd-in-linux/
https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units
nginx subdomain conflict resolve
https://serverfault.com/questions/708598/nginx-conflicting-server-name-for-subdomain
https://www.linode.com/community/questions/17826/400-bad-request-the-plain-http-request-was-sent-to-https-port-nginx
https://www.tecmint.com/fix-400-bad-request-in-nginx/
dotnecore https nginx implementation bu keywordler ile yukarıdaki 3 makaleyi arattım.
buna bak
https://kimsereyblog.blogspot.com/2018/07/https-with-ssl-for-nginx-kestrel-and.html
bunada bak
https://dev.to/ianknighton/hosting-a-net-core-app-with-nginx-and-let-s-encrypt-1m50
https://blog.tonysneed.com/2019/10/13/enable-ssl-with-asp-net-core-using-nginx-and-docker/
C# Func önceden tanımlanmış delege türü
http://www.bayramucuncu.com/c-func-onceden-tanimlanmis-delege-turu/
Güncel thread id'yi al
https://stackoverflow.com/questions/1679243/getting-the-thread-id-from-a-thread
Api'ye etkili post etme işlemi
https://johnthiriet.com/efficient-post-calls/
https://johnthiriet.com/efficient-api-calls/
Background Queue Servis çalıştırma
https://docs.microsoft.com/tr-tr/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-3.1&tabs=visual-studio
Dotnet core SDK ve runtime update
Ubuntu üzerinde dotnet sdk update için önce bu sayfadaki
https://docs.microsoft.com/en-us/dotnet/core/install/how-to-detect-installed-versions?pivots=os-linux komutları çalıştırın sonra bu sayfadaki ayarları yapacağız
https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
https://docs.microsoft.com/tr-tr/dotnet/core/install/linux-package-manager-ubuntu-1604
Linux root giriş
Bazı firmalar linux sunucularına ssh üzerinde root kullaıcısı ile erişim izini vermezler. Bu işlemi etkin kılmak için makinenize giriş yapıp root kullanıcısına geçtikten sonra bu komut satırını çalıştırın.
Burada bulmanız gereken parametre "PermitRootLogin no" satırıdır. Buradaki no'yu yes ile değiştirdikten sonra
sudo service sshd restart Link
derseniz yaptığınız değişiklik yansıyacaktır. Servisi yeniden çalıştırmazsanız servis ssh ile root girişe izin vermeyecektir. Bu ayarın açık olması önerilmez ama bazen hızlı çözümler için bu ayarı açabiliriz.
Ubuntu sunucuya deployment sırasında oluşan hatalar
28000: no pg_hba.conf entry for host "XXX.XXX.XXX.XXX", user " ", database " ", SSL off
https://confluence.atlassian.com/jirakb/error-connecting-to-database-fatal-no-pg_hba-conf-entry-for-host-x-x-x-x-user-jiradbuser-database-jiradb-ssl-off-950801726.html
Postgreyi restart etmek için
sudo service postgresql restart
https://stackoverflow.com/questions/16515723/postgres-ubuntu-how-to-restart-service-on-startup-get-stuck-on-clustering-afte
An exception has been raised that is likely due to a transient failure.
Npgsql.NpgsqlException (0x80004005): Exception while connecting
Bu hatanın sebebide pg_hba yapılandırma hatası yüzünden geliyormuş, düzeltince sorun kalktı.
Dotnet core üzerinde servis tanımlama
https://blog.bobbyallen.me/2017/05/01/deploying-and-hosting-asp-net-core-applications-on-ubuntu-linux/
https://docs.microsoft.com/tr-tr/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-2.1&tabs=aspnetcore2x
Buradaki tanımlamalar yaptım.
Directory ve ilgili dosyaları silmek için kullanılacak komut
https://askubuntu.com/questions/217893/how-to-delete-a-non-empty-directory-in-terminal
Pm2
Node js projelerini kontrol etmek için pm2 ile projeleri yönetin
https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04
Apache sunucusunu durdurup başlatmak için kullanılacak komut
https://www.cyberciti.biz/faq/star-stop-restart-apache2-webserver/
Ubuntu üzerinde sınırlı kullanıcı ekleme
https://www.linode.com/docs/security/securing-your-server/#add-a-limited-user-account
Ubuntu üzerinde dosyaları ve içeriğini kopyalamak için
https://askubuntu.com/questions/844876/how-do-you-copy-a-directory-and-its-contents-to-a-new-location-under-a-new-direc
Linode üzerinde hesapları sınırlama
https://www.linode.com/docs/platform/create-limited-developer-account/#ssh-logins
https://github.com/mhelvacikoylu/twino/blob/master/src/Samples/Sample.WebSocket.Server/twino.json
https://stackoverflow.com/questions/48300288/signalr-in-asp-net-core-behind-nginx
https://medium.com/@alm.ozdmr/deployment-of-signalr-with-nginx-daf392cf2b93
https://kimsereyblog.blogspot.com/2018/07/signalr-with-asp-net-core.htmls
Ubuntu işletim sisteminde Mongo db servis olarak çalıştırmak
https://stackoverflow.com/questions/37014186/running-mongodb-on-ubuntu-16-04-lts
Nginx konfigürasyon dosyası
https://gist.github.com/vbguard/e4dc2d1fd7796efe201d75315b42595e
Systemctl kullanımı
https://www.tecmint.com/list-all-running-services-under-systemd-in-linux/
https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units
nginx subdomain conflict resolve
https://serverfault.com/questions/708598/nginx-conflicting-server-name-for-subdomain
https://www.linode.com/community/questions/17826/400-bad-request-the-plain-http-request-was-sent-to-https-port-nginx
https://www.tecmint.com/fix-400-bad-request-in-nginx/
dotnecore https nginx implementation bu keywordler ile yukarıdaki 3 makaleyi arattım.
buna bak
https://kimsereyblog.blogspot.com/2018/07/https-with-ssl-for-nginx-kestrel-and.html
bunada bak
https://dev.to/ianknighton/hosting-a-net-core-app-with-nginx-and-let-s-encrypt-1m50
https://blog.tonysneed.com/2019/10/13/enable-ssl-with-asp-net-core-using-nginx-and-docker/
C# Func önceden tanımlanmış delege türü
http://www.bayramucuncu.com/c-func-onceden-tanimlanmis-delege-turu/
Güncel thread id'yi al
https://stackoverflow.com/questions/1679243/getting-the-thread-id-from-a-thread
Api'ye etkili post etme işlemi
https://johnthiriet.com/efficient-post-calls/
https://johnthiriet.com/efficient-api-calls/
Background Queue Servis çalıştırma
https://docs.microsoft.com/tr-tr/aspnet/core/fundamentals/host/hosted-services?view=aspnetcore-3.1&tabs=visual-studio
Yorumlar
Yorum Gönder