Use following command for jenkins installtion sudo apt updatesudo apt install openjdk-8-jdkapt install openjdk-8-jdk -ywget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'apt-get update-sudo apt-get install jenkins -ysystemctl status jenkinssudo ufw allow 8080give sudo permisssion to jenkins user < /br> vi /etc/sudoers and add below entry jenkins ALL=(ALL) NOPASSWD: ALL …
How to use Apache Solr on windows 10
First download solr zip package from URL: https://solr.apache.org/downloads.html Download this zip - https://dlcdn.apache.org/lucene/solr/8.10.1/solr-8.10.1.zip Then extract it on C:/ drive. Open CMD tool as administrator. and use following command to start solr. #solr start solr will start on 8983 port.
keepass auto type for all target window
If you wanted to use saved passwords and choose between password then use keepass auto-type functionality. This is the setting which we need to do if we want to use keepass globally. Global auto-type key is (CTTL + ALT + A) Internal setting
Solved Error executing DDL “alter table events drop foreign key
While running spring boot application I got following error 2021-10-22 13:38:59.732[0;39m [33m WARN[0;39m [35m700[0;39m [2m---[0;39m [2m[ restartedMain][0;39m [36mo.h.t.s.i.ExceptionHandlerLoggedImpl [0;39m [2m:[0;39m GenerationTarget encountered exception accepting command : Error executing DDL "alter table users_roles add constraint FKt4v0rrweyk393bdgt107vdx0x foreign key (role_id) references role (id)" via JDBC Statement org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "alter table users_roles add constraint FKt4v0rrweyk393bdgt107vdx0x foreign …
Continue reading "Solved Error executing DDL “alter table events drop foreign key"
Spring and Gradle – adding to the project WebJars Bootstrap
If you wanted to add bootstrap UI CSS and JS files in thymeleaf then you can use following code: <link th:href="@{/webjars/bootstrap/5.0.0/css/bootstrap.min.css}" rel="stylesheet" media="screen" /><script th:src="@{/webjars/bootstrap/5.0.0/js/bootstrap.min.js}"></script> If those styles are still not loading then refresh project and if you are using spring security then you need to add following code in your extended class of WebSecurityConfigurerAdapter …
Continue reading "Spring and Gradle – adding to the project WebJars Bootstrap"
auto renew letsencrypt ssl apache on linux
For auto renew SSL certificate I added following code in crontab. 0 0 */10 * * certbot renew >> /logs/certbot-cron.log 2>&1 Log of certbot renew command. [root@vps147238 ep]# certbot renew Saving debug log to /var/log/letsencrypt/letsencrypt.log Processing /etc/letsencrypt/renewal/purabtech.com.conf - - - - - - - - - - - - - - - - - - …
Continue reading "auto renew letsencrypt ssl apache on linux"
how to get free ssl certificate from letsencrypt
For getting a free SSL certificate you need SSH access to your server where you installed your application code. Then follow commands and articles which will guide you to install the necessary application. https://certbot.eff.org/lets-encrypt/centosrhel7-apache After installing certbot to your machine. you need to run following command to generate SSL certificate. certbot --apache certonly --cert-name purabtech.com …
Continue reading "how to get free ssl certificate from letsencrypt"
Open 443 and 80 port on linux VM
If your apache or Nginx or tomcat server is configured properly still your site is not opening then check firewall and port is opened on the internet. Check the status of your firewall. use this command firewall-cmd --state running Check which zones are active [root@vps147238 purab]# firewall-cmd --get-active-zonespublicinterfaces: eth0 Open port 80 and port 443 …
Solved: letsencrypt certbot KeyError: ‘Directory field not found’
While running certbot command I got following error: [root@vps147238 letsencrypt]# certbot --apache certonly --cert-name purabtech.com -d purabtech.inSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator apache, Installer apacheEnter email address (used for urgent renewal and security notices) (Enter 'c' tocancel): purab@test.inStarting new HTTPS connection (1): acme-v02.api.letsencrypt.orgAn unexpected error occurred:KeyError: 'Directory field not found'Please see the logfiles in …
Continue reading "Solved: letsencrypt certbot KeyError: ‘Directory field not found’"
CentOS Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org An unexpected error occurred:
While running certonly command I got following error:[root@vps147238 letsencrypt]# certbot --apache certonly --cert-name purabtech.com -d purabtech.inSaving debug log to /var/log/letsencrypt/letsencrypt.logPlugins selected: Authenticator apache, Installer apacheStarting new HTTPS connection (1): acme-v01.api.letsencrypt.orgAn unexpected error occurred:ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))Please see the logfiles in /var/log/letsencrypt for more details. I solved this issue by doing …