Cấu hình proftpd
Cập nhật hệ thống. Cài đặt proftpd Chuyển đến thư mục cấu hình proftpd Thêm tài khoản ftp Cấu hình file config Restart lại Chúc các bạn thành công
Lập Trình C# C++ Java Python Perl Javascript Leaflet Map UML PMP Project Analysis
Cập nhật hệ thống. Cài đặt proftpd Chuyển đến thư mục cấu hình proftpd Thêm tài khoản ftp Cấu hình file config Restart lại Chúc các bạn thành công
Insertion sortÝ tưởng của insertion sort như sếp bài nếu số phía sau nhỏ hơn phía trước thì cho thì cho nó lên trên.
1 2 3 4 5 6 7 8 9 10 |
Tư tưởng của thuật toán là i, j để chỉ vị trí, ví dụ j=2 tức là vị trí thứ 2 INSERTION-SORT.A/ for j = 2 to A:length key = A[j] // Insert A[j] into the sorted sequence A[1.. j - 1]. i = j - 1 while i > 0 and A[i] > key A[i + 1] = A[i] i = i - 1 A[i + 1] = key |
Cách thực hiện như sau
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
void insertionSort(int arr[], int n) { int i, key, j; for (i = 1; i < n; i++) { key = arr[i]; j = i - 1; /* Move elements of arr[0..i-1], that are greater than key, to one position ahead of their current position */ while (j >= 0 && arr[j] > key) { arr[j + 1] = arr[j]; j = j - 1; } arr[j + 1] = key; } } |
Các bạn sau khi đã cài đặt Mautic trên server nhưng nếu bạn chưa thiết lập crontab thì bạn không thể chạy các campaign và segment.
1 2 3 4 5 6 7 8 9 |
5,35 * * * * /path/to/php /path/to/mautic/app/console mautic:segments:update */10 * * * * /path/to/php /path/to/mautic/app/console mautic:campaigns:rebuild */5 * * * * /path/to/php /path/to/mautic/app/console mautic:campaigns:trigger */5 * * * * /path/to/php /path/to/mautic/app/console mautic:emails:send */5 * * * * /path/to/php /path/to/mautic/app/console mautic:email:fetch */5 * * * * /path/to/php /path/to/mautic/app/console mautic:social:monitoring */5 * * * * /path/to/php /path/to/mautic/app/console mautic:webhooks:process */5 * * * * /path/to/php /path/to/mautic/app/console mautic:iplookup:download */5 * * * * /path/to/php /path/to/mautic/app/console mautic:maintenance:cleanup --days-old=365 --dry-run |
Lỗi:
1 |
PHP Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 134217736 bytes) - in file /var/www/prod/vendor/symfony/intl/Data/Bundle/Reader/BundleEntryReader.php |
Fix
1 |
curl -o ./vendor/symfony/intl/Locale.php https://raw.githubusercontent.com/symfony/symfony/2f73c2f66b54b376647b605ebd4fbd7f399b0ff9/src/Symfony/Component/Intl/Locale.php |
Cập nhật hệ thống và cài đặt Apache2, nếu bạn nào đã cài apache2 trước đó rồi thì có thể bỏ qua dòng thứ 2(update system and install Apache2, if …
Read More “Cài đặt SVN trên Amazon Ubuntu(Install SVN on Amazon Ubuntu)”