ZTI Server configuration
Click Here
Click Here
Create FreeStyle project. In Source Code Management select Git and insert Repository URL, Credential. Buildselect mvn and add maven command Post Build Actionadd ‘Deploy war/ear to container’add information below.* Tomcat URL :http://<domain_name_or_ip_address>:<port>(Don’t forget add tomcat deployment credential) Build and test
Setup SSH Server in Manage Jenkins > Configure System Checked Use password authentication, or use a different keythen type password or key. Create FreeStyle project. In Source Code Management select Git and insert Repository URL, Credential. Build steps.1. Add Execute shell and put below commandnpm installnpm run build2. Add Send files or execute commands over […]
Install Jenkins using Dockersudo docker run –restart always -p 8081:8080 –name=jenkins -d \ -v /var/www/html:/var/www/html \ –env JAVA_OPTS=”-Xmx4092m” –env JENKINS_OPTS=”–prefix=/jenkins” jenkins/jenkins Get password from tail logs command.docker logs –tail 100 -f <container_name> Install Jenkins Recommend plugin. Install ZTI’s Recommend plugin.Manage Jenkins > Plugin Manager > Available Tab Gitlab Deploy to container Maven Integration Publish over […]
ตามหัวข้อเลยครับ จากที่เจอมาคือ ในช่วงปี 2022 ทาง google ได้มีการ เปลี่ยน policy เกี่ยวกับการใช้งาน smtp Less Secure Apps feature on some Google accounts from May 30th, 2022 ซึ่งส่งผลให้ หน่วยงานหรือโครงการที่ใช้ smtp Gmail ไม่สามารถใช้งานได้ หากยังไม่ได้ทำการ อัพเดตตามเงื่อนไขใหม่ (เมลบริษัท ที่เป้นของ Gmail ยังไม่พบปัญหา) วิธีการแก้ปัญหามีดังนี้ แก้ไขประมาณนี้ ก็จะสามารถ ส่งเมลได้เป็นปรกติแล้วครับ
First, you have to install docker into your server.Here is the configuration file. Setup Tomcat & MariaDB docker. Setup ZTI Tomcat docker.docker run –name zti_demo –restart always -v /usr/local/tomcat/webapps:/usr/local/tomcat/webapps -v /usr/local/tomcat/webapps/ROOT:/usr/local/tomcat/webapps/ROOT -v /usr/local/tomcat/logs:/usr/local/tomcat/logs -v /data:/data -p 8080:8080 -p 8443:8443 –env JAVA_OPTS=”-Djava.security.egd=file:/dev/./urandom” -d zealtech/tomcat:8.5.37 Setup MariaDB docker.docker run –name=zti_maria_demo –restart always -e MYSQL_ROOT_PASSWORD=’****’ -e MYSQL_DATABASE=zti -v […]
Download and install Nginx at: http://nginx.org/en/download.html Download win-acme at: https://github.com/win-acme/win-acme/releases/select: win-acme.v2.1.21.1218.x64.pluggable.zip unzip and open wacs.exe choose M [Create certificate(full options)] choose 2 [Manual input], then enter your domain ,[such as : win.ztidev.com] , then press enter next. choose 6 . verify domain with dns choose 2. RSA choose 2. nginx container . then enter your […]
If you develop web app with HTML, Java or PHP languages and want to test on https://ztidev.com/<project_name>, or https://<domain_name>/ztidev.com, please follow this instruction. 1. Config Jenkins based on your project.Example in PHP: to move file after build to /var/www/html/<project_name>cp -rf <jenkins_project_name>/* /var/www/html/<project_name> 2. Remote to ZTI server.https://blog.zealtechinter.com/connect-to-linux-by-using-putty/ 3. Config path in NGINXvi /etc/nginx/conf.d/domain.confor vi /etc/nginx/conf.d/<domain_name>.conf […]
เราสามารถใช้เครื่องมือ SQL Developer เพื่อตรวจสอบ Database Sessions ของการทำงาน Application ในปัจุบันได้ โดยสามารถตรวจสอบได้ว่าการทำงานของ Application หรือการ Query ใดที่ใช้ทรัพยากรของเครื่องมาก ซึ่งเราสามารถ Kill Sessions หรือปิดการทำงานดังกล่าวได้ วิธีการดู Sessions 1. เปิดโปรแกรม SQL Developer จากนั้นได้ที่เมนู Tools แล้วเลือก Monitoring Sessions 2. เลือก Database connection ที่ต้องการ จากนั้นกด OK 3. ระบบข้อมูล Sessions ทั้งหมด ซึ่งเราสามารถกรองดู Seconds in Wait ได้ว่า Sessions ไหนที่มีการทำงานค้างอยู่ 4. หากต้องการ Kill Sessions หรือปิดการทำงานดังกล่าว ให้เลือกรายการที่ต้องการ จากนั้นคลิกขวาแล้วเลือก Kill […]
How to setup SSL using NGINX, Certbot on our ZTI server. First, you have to learn how to remote to zti server Second, you have to know about basic Linux command line. Third, your URL ex. http://ztidev.com:8081/demo-api or http://ztidev.com:81/web 1. Config NGINX Configuration file. Remote to ZTI Dev. server and edit NGINX config file with […]