· .Net Kurulumu
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb<br> sudo dpkg -i packages-microsoft-prod.deb
sudo add-apt-repository universe sudo apt-get update sudo apt-get install apt-transport-https sudo apt-get update sudo apt-get install dotnet-sdk-3.0 sudo apt-get install dotnet-sdk-2.2
· Apache Kurulumu
sudo sh -c "apt-get update -y; apt-get install apache2 -y; systemctl start apache2.service"
a2enmod proxy a2enmod proxy_http a2enmod proxy_connect
sudo nano /etc/apache2/sites-enabled/000-default.conf
— dosyasına
ProxyPreserveHost On ProxyPass / http://0.0.0.0:3083/ ProxyPassReverse / http://0.0.0.0:3083/
— ekliyoruzzz..
systemctl restart apache2 systemctl reload apache2
· MySQL Server Kurulumu
sudo apt-get install mysql-server -y sudo /usr/bin/mysql_secure_installation
y , y, seçilir..!
· PHP Kurulumu
sudo apt-get install php -y sudo apt-get install -y php-{bcmath,bz2,intl,gd,mbstring,mcrypt,mysql,zip} && sudo apt-get install libapache2-mod-php -y
· Otomatik Çalışmasını sağlamak için..
sudo systemctl enable apache2.service sudo systemctl enable mysql.service systemctl restart apache2.service
/etc/mysql/mysql.conf.d/mysqld.cnf
— Dosyasındaki bind-address satını aşağıdaki gibi değiştiriyoruz..!
sudo mysql -u root -p use mysql GRANT ALL PRIVILEGES ON <em>.</em> TO 'root'@'%' IDENTIFIED BY '123465';
· Eğer Firewall Warsa
sudo ufw allow 80 sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
· MySQL de Sıkıntı yaşarsak
sudo systemctl stop mysql mkdir -p /var/run/mysqld chown mysql:mysql /var/run/mysqld sudo mysqld_safe --skip-grant-tables --skip-networking&
use mysql describe user; UPDATE mysql.user SET Password=PASSWORD('123456') WHERE User='root'; GRANT ALL PRIVILEGES ON <em>.</em> TO 'root'@'%' IDENTIFIED BY '123465'; CREATE USER 'admin'@'%' IDENTIFIED BY ''; GRANT ALL PRIVILEGES ON <em>.</em> TO 'admin'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES; alter table user add column Password VARCHAR(41) after User;
· Olduki mySQL i kaldırmak gerekti.
sudo apt-get remove --purge mysql* sudo apt-get purge mysql* sudo apt-get autoremove sudo apt-get autoclean
· Test için…!
curl -d '{"UserName":"johndoe","Password":"def@123"}' -H "Content-Type: application/json" -X POST http://localhost:3083/api/auth/login