https://confluence.atlassian.com/display/CONF42/Hierarchical+File+System+Attachment+Storage
https://confluence.atlassian.com/confkb/how-to-rebuild-the-content-indexes-from-scratch-on-confluence-server-110035351.html
https://confluence.atlassian.com/confkb/how-to-clear-confluence-plugins-cache-297664846.html
https://askubuntu.com/questions/80115/how-to-remove-a-user-from-a-group
https://helpx.adobe.com/fonts/using/font-licensing.html
2020年7月27日 星期一
2020年7月21日 星期二
rep
I would start by questioning why you think you want to do this. A well maintained computer system will run for months, stopping only for upgrades or other changes. I've seen a Confluence with an uptime approaching 18 months (Although I wouldn't recommend that, because the server running it really really should have been upgraded past a point where it needed a restart)
After you've solved the underlying problems, and come up with a good reason for a regular restart, I'd go with a crontab that simply does "systemctl stop confluence" and then the same with a start 5 minutes later during the quietest hour for your people. (4am on a Sunday is a good option, although as a support person, 9pm on a Friday actually works better - gives us a weekend to fix it if it fails)
2020年7月20日 星期一
code
for i in /var/example/attachments/ver003/112/24 /var/example/attachments/ver003/10/13/12 /var/example/attachments/ver003/119/12; do
du $i -sh | awk -v p=$i '{print p,":",$1;}'
done
2020年7月19日 星期日
2020年7月16日 星期四
2020年7月15日 星期三
postgresql
https://stackoverflow.com/questions/2732474/restore-a-postgres-backup-file-using-the-command-line
https://www.arthurtoday.com/2013/12/ubuntu-ufw-add-firewall-rules.html
https://ithelp.ithome.com.tw/questions/10183649
https://stackoverflow.com/questions/2732474/restore-a-postgres-backup-file-using-the-command-line
https://www.arthurtoday.com/2013/12/ubuntu-ufw-add-firewall-rules.html
https://ithelp.ithome.com.tw/questions/10183649
https://stackoverflow.com/questions/2732474/restore-a-postgres-backup-file-using-the-command-line
2020年7月14日 星期二
attachment
https://confluence.atlassian.com/display/CONF42/Hierarchical+File+System+Attachment+Storage
2020年7月13日 星期一
connection
Imports System.Data
Imports System.Data.SqlClient
Partial Class vendor_ListCheck
Inherits System.Web.UI.Page
Dim con As New SqlConnection(Udf.WKConnectionString)
Dim dt As New DataTable
Sub bindata()
Dim ad As New SqlDataAdapter("select * from dbo.ListData", con)
ad.Fill(dt)
With GridView1
.DataSource = dt
.DataBind()
End With
End Sub
Imports Microsoft.VisualBasic
Imports System.Data
Imports System.Data.SqlClient
Partial Public Class Udf
Public Shared Function WKConnectionString() As String
'資料庫連線字串
Dim connString As String = ConfigurationManager.ConnectionStrings("WorkOrderConnectionString").ConnectionString
Return connString
End Function
Public Shared Function Get_us(ByVal st1 As String) As String
Dim DB As String
DB = ""
Dim connStr As String
connStr = "Password=123;Persist Security Info=True;User ID=jea22s;Initial Catalog=222r;Data Source=12222"
Dim conn As New SqlConnection(connStr)
conn.Open()
Dim SQLStr As String
SQLStr = "SELECT unit.name_ FROM unit INNER JOIN us ON unit.unid = us.unit WHERE (us.uid = '" & st1 & "')"
Dim cmd As New SqlCommand(SQLStr, conn)
Dim reader As SqlDataReader = cmd.ExecuteReader()
If reader.Read() Then
DB = reader.Item(0)
End If
reader.Close()
conn.Close()
conn = Nothing
Return DB
End Function
Imports System.Data.SqlClient
Partial Class vendor_ListCheck
Inherits System.Web.UI.Page
Dim con As New SqlConnection(Udf.WKConnectionString)
Dim dt As New DataTable
Sub bindata()
Dim ad As New SqlDataAdapter("select * from dbo.ListData", con)
ad.Fill(dt)
With GridView1
.DataSource = dt
.DataBind()
End With
End Sub
Imports Microsoft.VisualBasic
Imports System.Data
Imports System.Data.SqlClient
Partial Public Class Udf
Public Shared Function WKConnectionString() As String
'資料庫連線字串
Dim connString As String = ConfigurationManager.ConnectionStrings("WorkOrderConnectionString").ConnectionString
Return connString
End Function
Public Shared Function Get_us(ByVal st1 As String) As String
Dim DB As String
DB = ""
Dim connStr As String
connStr = "Password=123;Persist Security Info=True;User ID=jea22s;Initial Catalog=222r;Data Source=12222"
Dim conn As New SqlConnection(connStr)
conn.Open()
Dim SQLStr As String
SQLStr = "SELECT unit.name_ FROM unit INNER JOIN us ON unit.unid = us.unit WHERE (us.uid = '" & st1 & "')"
Dim cmd As New SqlCommand(SQLStr, conn)
Dim reader As SqlDataReader = cmd.ExecuteReader()
If reader.Read() Then
DB = reader.Item(0)
End If
reader.Close()
conn.Close()
conn = Nothing
Return DB
End Function
2020年7月12日 星期日
2020年7月9日 星期四
ubuntu
https://eticket.coa.gov.tw/Coupon/Application?fbclid=IwAR23QXhMCuMnK5lKWM7j76QzHZd-P_Q6vy7mIJdnb3MWiwUhmZB8J8CKHc0
https://eticket.coa.gov.tw/Coupon/Application?fbclid=IwAR0R0Ro7FBTDmg_oAsvb8bGEr9rGc4pKskMC6fSiaz8I0CnKDcmEX6bZbTE
https://askubuntu.com/questions/56683/where-is-the-cron-crontab-log
https://coder.tw/?p=7284
https://eticket.coa.gov.tw/Coupon/Application?fbclid=IwAR0R0Ro7FBTDmg_oAsvb8bGEr9rGc4pKskMC6fSiaz8I0CnKDcmEX6bZbTE
https://askubuntu.com/questions/56683/where-is-the-cron-crontab-log
https://coder.tw/?p=7284
/var/log/syslog
grep CRON /var/log/syslog
/etc/rsyslog.d/50-default.conf
/var/log/cron.log
2020年7月7日 星期二
tra
https://bitbucket.org/scmenthusiast/confluence-purge-recyclebin-plugin/issues/4/confluence-purge-recyclebin-plugin
https://jira.atlassian.com/browse/CONFSERVER-14507?error=login_required&error_description=Login+required&state=9c8c2dca-4189-4fc3-a44a-11238d94f34c
https://community.atlassian.com/t5/Confluence-articles/How-to-clean-programmatically-old-drafts-and-purge-trash-with/ba-p/876791
https://community.atlassian.com/t5/Confluence-questions/Trash-Purge-all-across-spaces/qaq-p/303048#U1425688
https://jira.atlassian.com/browse/CONFSERVER-14507?error=login_required&error_description=Login+required&state=9c8c2dca-4189-4fc3-a44a-11238d94f34c
https://community.atlassian.com/t5/Confluence-articles/How-to-clean-programmatically-old-drafts-and-purge-trash-with/ba-p/876791
https://community.atlassian.com/t5/Confluence-questions/Trash-Purge-all-across-spaces/qaq-p/303048#U1425688
訂閱:
文章 (Atom)